Skip to content

Commit 8523a79

Browse files
authored
Added Google Analytics to Docusaurus config (#28)
1 parent 57a6e77 commit 8523a79

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docusaurus.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ const config: Config = {
6363
theme: {
6464
customCss: "./src/css/custom.css",
6565
},
66+
gtag: {
67+
trackingID: 'G-LV5VBTDSV8',
68+
anonymizeIP: true,
69+
},
6670
} satisfies Preset.Options,
6771
],
6872
],
@@ -101,7 +105,7 @@ const config: Config = {
101105
},
102106

103107
themes: ['docusaurus-theme-openapi-docs', '@docusaurus/theme-mermaid'],
104-
/*
108+
/*
105109
headTags: [
106110
{
107111
tagName: 'meta',
@@ -184,8 +188,6 @@ const config: Config = {
184188
],
185189
},
186190
],
187-
// copyright: "Developed by Shopify",
188-
189191
},
190192
prism: {
191193
theme: prismThemes.github,

0 commit comments

Comments
 (0)