Skip to content

Commit

Permalink
docs: add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
fhur committed Apr 3, 2024
1 parent cfac683 commit 7ad0426
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ const config: Config = {
locales: ['en'],
},

plugins: [
[
'@docusaurus/plugin-google-gtag',
{
trackingID: 'G-EBEHLG81MW',
anonymizeIP: true, // Anonymize IP in Google Analytics data
},
],
],

presets: [
[
'classic',
Expand Down
1 change: 1 addition & 0 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.1.0",
"@docusaurus/plugin-google-gtag": "3.1.0",
"@docusaurus/tsconfig": "3.1.0",
"@docusaurus/types": "3.1.0",
"typescript": "~5.2.2"
Expand Down

0 comments on commit 7ad0426

Please sign in to comment.