Skip to content

Commit 10a6842

Browse files
authored
Merge pull request #316 from iitzIrFan/googleanalyticsfix
Fix Google Analytics issue
2 parents 8b5811a + 7146328 commit 10a6842

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docusaurus.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ const config: Config = {
6767
theme: {
6868
customCss: require.resolve("./src/css/custom.css"),
6969
},
70+
gtag: {
71+
trackingID: 'G-W02Z2VJYCR',
72+
anonymizeIP: false,
73+
},
7074
} satisfies Preset.Options,
7175
],
7276
],

static/gtag-init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ console.log('✅ gtag-init.js loaded');
33
window.dataLayer = window.dataLayer || [];
44
function gtag() { dataLayer.push(arguments); }
55
gtag('js', new Date());
6-
gtag('config', 'G-W02ZZ2VJYCR', {
6+
gtag('config', 'G-W02Z2VJYCR', {
77
debug_mode: location.hostname === 'localhost' ? 'true' : 'false'
88
});

0 commit comments

Comments
 (0)