Skip to content

Commit 3aaa199

Browse files
delchevclaude
andcommitted
chore: add Google Analytics (gtag.js G-RFXCE7HRB2)
Injects the gtag.js loader + init snippet site-wide via VitePress head config. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 0b2c14b commit 3aaa199

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

docs/.vitepress/config.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ export default defineConfig({
8181
plugins: [escapeMdAngleBrackets()],
8282
},
8383
head: [
84+
// Google Analytics (gtag.js)
85+
['script', { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-RFXCE7HRB2' }],
86+
[
87+
'script',
88+
{},
89+
"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-RFXCE7HRB2');",
90+
],
8491
['meta', { name: 'theme-color', content: '#6d5efc' }],
8592
['meta', { property: 'og:type', content: 'website' }],
8693
['meta', { property: 'og:title', content: 'The Intent File Specification' }],

0 commit comments

Comments
 (0)