Skip to content

Commit

Permalink
Adding GA tracking code on site and blog (#192)
Browse files Browse the repository at this point in the history
* adding GA tracking code on site and blog

* Update config.js with Uber GA code

* Update config.js with Uber GA code
  • Loading branch information
ibarrajo authored Sep 16, 2024
1 parent 4a96012 commit 29ba224
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ module.exports = {
],
head: [
['link', { rel: 'icon', href: `/img/favicon.ico` }],
['script', {
async: true,
src: 'https://www.googletagmanager.com/gtag/js?id=G-W63QD8QE6E'
}],
['script', {}, `window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-W63QD8QE6E');`],
],
themeConfig: {
...themeConfig,
Expand All @@ -43,7 +48,7 @@ module.exports = {
{
title: 'Get Started',
path: '/docs/01-get-started',
children:[
children: [
'01-get-started/',
'01-get-started/01-server-installation',
'01-get-started/02-java-hello-world',
Expand Down
7 changes: 7 additions & 0 deletions src/blog/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,11 @@ module.exports = {
},
summaryLength: 1000,
},
head: [
['script', {
async: true,
src: 'https://www.googletagmanager.com/gtag/js?id=G-W63QD8QE6E'
}],
['script', {}, `window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-W63QD8QE6E');`],
],
}

0 comments on commit 29ba224

Please sign in to comment.