Skip to content

Commit bff5bfe

Browse files
authored
feat: Add Fathom analytics (#22)
* remove Google Analytics * add Fathom analytics plugin
1 parent 0bee754 commit bff5bfe

File tree

3 files changed

+2825
-62
lines changed

3 files changed

+2825
-62
lines changed

docusaurus.config.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ const config: Config = {
5454
ignorePatterns: ['/tags/**'],
5555
filename: 'sitemap.xml',
5656
},
57-
gtag: {
58-
trackingID: 'G-4GHNHQDPG2',
59-
anonymizeIP: true,
60-
},
6157
} satisfies Preset.Options,
6258
],
6359
],
@@ -172,6 +168,17 @@ const config: Config = {
172168
contextualSearch: true,
173169
},
174170
},
171+
172+
plugins: [
173+
[
174+
'@acid-info/docusaurus-fathom',
175+
{
176+
siteId: 'SMSOL',
177+
scriptUrl: 'https://fathom.bi.status.im/tracker.js',
178+
hostnames: ['docs.status.network'],
179+
},
180+
]
181+
]
175182
} satisfies Config;
176183

177184
export default config;

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"typecheck": "tsc"
1616
},
1717
"dependencies": {
18+
"@acid-info/docusaurus-fathom": "^1.0.0-alpha.111",
1819
"@docusaurus/core": "3.5.2",
1920
"@docusaurus/preset-classic": "3.5.2",
2021
"@mdx-js/react": "^3.0.0",
@@ -43,5 +44,6 @@
4344
},
4445
"engines": {
4546
"node": ">=18.0"
46-
}
47+
},
48+
"packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
4749
}

0 commit comments

Comments
 (0)