Skip to content

Commit 46a342f

Browse files
committed
Update Docusaurus config for Google Analytics tracking
1 parent 54932bf commit 46a342f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docusaurus.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ const config: Config = {
2121
locales: ['en', 'ja'],
2222
},
2323
presets: [
24+
// [
25+
// '@docusaurus/preset-classic',
26+
// {
27+
// googleAnalytics: {
28+
// trackingID: 'G-3GJJ15ETKQ',
29+
// },
30+
// },
31+
// ],
2432
[
2533
'classic',
2634
{
@@ -48,6 +56,10 @@ const config: Config = {
4856
theme: {
4957
customCss: './src/css/custom.css',
5058
},
59+
gtag: {
60+
trackingID: 'G-3GJJ15ETKQ',
61+
anonymizeIP: true,
62+
},
5163
} satisfies Preset.Options,
5264
],
5365
],

0 commit comments

Comments
 (0)