Skip to content

Commit 504cb94

Browse files
committed
chore(website): add back google analytics
1 parent e760663 commit 504cb94

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

website/.vitepress/config.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,22 @@ export default defineConfig({
7777
['meta', { property: 'og:url', content: ogUrl }],
7878
['meta', { property: 'twitter:card', content: 'summary_large_image' }],
7979
['meta', { property: 'twitter:title', content: taskName }],
80-
['meta', { property: 'twitter:description', content: taskDescription }]
80+
['meta', { property: 'twitter:description', content: taskDescription }],
81+
[
82+
'script',
83+
{
84+
async: '',
85+
src: 'https://www.googletagmanager.com/gtag/js?id=G-4RT25NXQ7N'
86+
}
87+
],
88+
[
89+
'script',
90+
{},
91+
`window.dataLayer = window.dataLayer || [];
92+
function gtag(){dataLayer.push(arguments);}
93+
gtag("js", new Date());
94+
gtag("config", "G-4RT25NXQ7N");`
95+
]
8196
],
8297
srcDir: 'src',
8398
cleanUrls: true,

0 commit comments

Comments
 (0)