From 504cb94e8b843d7c42c87a81e5f2483066441b5c Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Tue, 12 Aug 2025 17:58:44 -0300 Subject: [PATCH] chore(website): add back google analytics --- website/.vitepress/config.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/website/.vitepress/config.ts b/website/.vitepress/config.ts index 996d4846..e00b686a 100644 --- a/website/.vitepress/config.ts +++ b/website/.vitepress/config.ts @@ -77,7 +77,22 @@ export default defineConfig({ ['meta', { property: 'og:url', content: ogUrl }], ['meta', { property: 'twitter:card', content: 'summary_large_image' }], ['meta', { property: 'twitter:title', content: taskName }], - ['meta', { property: 'twitter:description', content: taskDescription }] + ['meta', { property: 'twitter:description', content: taskDescription }], + [ + 'script', + { + async: '', + src: 'https://www.googletagmanager.com/gtag/js?id=G-4RT25NXQ7N' + } + ], + [ + 'script', + {}, + `window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag("js", new Date()); + gtag("config", "G-4RT25NXQ7N");` + ] ], srcDir: 'src', cleanUrls: true,