Skip to content

Commit dd70916

Browse files
add google analytics docusaurus plugin
1 parent b437b43 commit dd70916

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

website/docusaurus.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ module.exports = {
135135
theme: {
136136
customCss: require.resolve('./src/css/custom.css'),
137137
},
138+
gtag: {
139+
trackingID: "G-BV8KZH4G0M",
140+
anonymizeIP: true,
141+
}
138142
},
139143
],
140144
],

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"dependencies": {
1313
"@docusaurus/core": "^3.0.0",
1414
"@docusaurus/preset-classic": "^3.0.0",
15+
"@docusaurus/plugin-google-gtag": "^3.0.0",
1516
"axios": "^1.7.2",
1617
"classnames": "^2.2.6",
1718
"clsx": "^2.0.0",

0 commit comments

Comments
 (0)