Skip to content

Commit

Permalink
Update vitepress and add Google Analytics
Browse files Browse the repository at this point in the history
Signed-off-by: Rem01Gaming <[email protected]>
  • Loading branch information
Rem01Gaming committed Feb 9, 2025
1 parent bf64575 commit 1f0b36f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions website/docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ export default defineConfig({
sitemap: {
hostname: 'https://encore.rem01gaming.dev'
},

head: [
[
'script',
{ async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-1962PRCX05' }
],
[
'script',
{},
`window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-1962PRCX05');`
]
],

transformPageData(pageData) {
const canonicalUrl = `${this.sitemap.hostname}/${pageData.relativePath}`
Expand Down

0 comments on commit 1f0b36f

Please sign in to comment.