Skip to content

Commit 0375677

Browse files
author
Justin Kimbrell
committed
chore: added GA to docs
1 parent c1dc22f commit 0375677

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

docs/.vitepress/config.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,19 @@ export default defineConfig({
106106
md.disable('snippet');
107107
md.use(snippetPlugin as any, path.resolve(__dirname, '../'));
108108
}
109-
}
110-
});
109+
},
110+
head: [
111+
[
112+
'script',
113+
{async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-L1GWWG8KPL'}
114+
],
115+
[
116+
'script',
117+
{},
118+
`window.dataLayer = window.dataLayer || [];
119+
function gtag(){dataLayer.push(arguments);}
120+
gtag('js', new Date());
121+
gtag('config', 'G-L1GWWG8KPL');`
122+
]
123+
]
124+
});

0 commit comments

Comments
 (0)