Skip to content

Commit 5f86b1f

Browse files
committed
Add google-analytics
1 parent 210a055 commit 5f86b1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.vitepress/config.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ export default defineConfig({
1414
["link", { rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
1515
["link", { rel: "stylesheet", href: "/css/fancybox.css" }],
1616
["script", { src: "/js/fancybox.umd.js" }],
17+
["script", { async: '', src: "https://www.googletagmanager.com/gtag/js?id=G-R7Y0434QHZ"}],
18+
["script", {}, "window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-R7Y0434QHZ');"]
1719
],
1820
markdown: {
1921
theme: {

0 commit comments

Comments
 (0)