feat: Add Fathom analytics (#22)

* remove Google Analytics

* add Fathom analytics plugin
This commit is contained in:
Filip Pajic 2025-02-14 09:16:02 +01:00 committed by GitHub
parent 0bee754eba
commit bff5bfe421
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2825 additions and 62 deletions

View File

@ -54,10 +54,6 @@ const config: Config = {
ignorePatterns: ['/tags/**'],
filename: 'sitemap.xml',
},
gtag: {
trackingID: 'G-4GHNHQDPG2',
anonymizeIP: true,
},
} satisfies Preset.Options,
],
],
@ -172,6 +168,17 @@ const config: Config = {
contextualSearch: true,
},
},
plugins: [
[
'@acid-info/docusaurus-fathom',
{
siteId: 'SMSOL',
scriptUrl: 'https://fathom.bi.status.im/tracker.js',
hostnames: ['docs.status.network'],
},
]
]
} satisfies Config;
export default config;

View File

@ -15,6 +15,7 @@
"typecheck": "tsc"
},
"dependencies": {
"@acid-info/docusaurus-fathom": "^1.0.0-alpha.111",
"@docusaurus/core": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@mdx-js/react": "^3.0.0",
@ -43,5 +44,6 @@
},
"engines": {
"node": ">=18.0"
}
},
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
}

2868
yarn.lock

File diff suppressed because it is too large Load Diff