docs(docs): add google analytics tracking tag to head config

This commit is contained in:
ryan
2026-06-27 15:41:08 +08:00
parent a97d87acf5
commit 77931c3c1e
+10 -1
View File
@@ -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: {