Skip to content

Commit 0ff730a

Browse files
committed
updated google analytics
1 parent 9baf403 commit 0ff730a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

docs/.vitepress/config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,18 @@ export default {
2121
"script",
2222
{
2323
async: true,
24-
src: "https://www.googletagmanager.com/gtag/js?id=G-GKNMVN5QK0",
24+
src: "https://www.googletagmanager.com/gtag/js?id=G-C8ZWJ3ZZEY",
2525
},
2626
],
2727
[
2828
"script",
2929
{},
30-
"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-GKNMVN5QK0');",
30+
[
31+
"window.dataLayer = window.dataLayer || [];",
32+
"function gtag(){dataLayer.push(arguments);}",
33+
"gtag('js', new Date());",
34+
"gtag('config', 'G-C8ZWJ3ZZEY');"
35+
].join('\n'),
3136
],
3237
],
3338
themeConfig: {

0 commit comments

Comments
 (0)