Skip to content

Commit c0f190c

Browse files
authored
fix:gtag-configuration (#396)
2 parents a461c25 + 3193d0f commit c0f190c

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

website/docusaurus.config.ts

+12-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import redirects from "./redirects";
1515
import { admonitionsConfig } from "./admonitionsConfig";
1616
import socialProfiles from './social';
1717

18-
require('@dotenvx/dotenvx').config({ path: '.env.local' });
18+
// require('@dotenvx/dotenvx').config({ path: '.env.local' });
1919

2020

2121
const copyright = `Copyright © ${new Date().getFullYear()} <a href='/me' target='_blank'>Keith Tan </a> <br>· The SpaceHub Project · `;
@@ -140,13 +140,18 @@ const config: Config = {
140140
filename: "sitemap.xml",
141141
},
142142

143-
gtag: process.env.GTAG_ID
144-
? {
145-
trackingID: process.env.GTAG_ID,
146-
anonymizeIP: true,
147-
}
148-
: undefined,
143+
// gtag: process.env.GTAG_ID
144+
// ? {
145+
// trackingID: process.env.GTAG_ID,
146+
// anonymizeIP: true,
147+
// }
148+
// : undefined,
149149

150+
gtag: {
151+
trackingID: 'G-YYZ6V070LQ',
152+
anonymizeIP: true,
153+
},
154+
150155

151156
} satisfies Preset.Options,
152157
],

0 commit comments

Comments
 (0)