From 77931c3c1ec40d4403dcc79edb46cb2a705fa9f1 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 27 Jun 2026 15:41:08 +0800 Subject: [PATCH] docs(docs): add google analytics tracking tag to head config --- docs/.vitepress/config.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 1299dec1..c75a5267 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -29,7 +29,16 @@ export default defineConfig({ ['meta', { name: 'theme-color', content: '#10b981' }], ['meta', { property: 'og:type', content: 'website' }], ['meta', { property: 'og:site_name', content: 'OpenFlare' }], - ['meta', { property: 'og:url', content: 'https://openflare.io/' }] + ['meta', { property: 'og:url', content: 'https://openflare.io/' }], + ['script', { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-TBZPQFMLFH' }], + [ + 'script', + {}, + `window.dataLayer = window.dataLayer || []; +function gtag(){dataLayer.push(arguments);} +gtag('js', new Date()); +gtag('config', 'G-TBZPQFMLFH');` + ] ], themeConfig: {