Skip to content

Commit

Permalink
add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
TamimEhsan committed Aug 13, 2024
1 parent 7f9288a commit f622625
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ export default defineConfig({
search: {
provider: 'local'
},
lastUpdated: true
lastUpdated: true,
head: [
[
'script',
{ async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-P6ZVQMX05B' }
],
[
'script',
{},
`window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-P6ZVQMX05B');`
]
]
}
})

0 comments on commit f622625

Please sign in to comment.