Skip to content

Commit 5783807

Browse files
committed
add google analytics
1 parent 7970f5b commit 5783807

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/.vitepress/config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,9 @@ export default {
1717
]
1818
}
1919
]
20-
}
20+
},
21+
head: [
22+
['script', {async: true, src: 'https://www.googletagmanager.com/gtag/js?id=UA-52649755-1'}],
23+
['script', {}, "window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'UA-52649755-1');"]
24+
]
2125
}

0 commit comments

Comments
 (0)