Fathom analytics plugin for Docusaurus v2 and v3.
π₯ Fathom is cookie-free, GDPR compliant, privacy-first website analytics software. Get 10γγ« off your first invoice and a 7-day free trial when you use this URL: https://usefathom.com/ref/ZB4OSQ. π₯
Run the following command to install docusaurus-plugin-fathom in your project:
# With npm npm install docusaurus-plugin-fathom --save # With yarn yarn add docusaurus-plugin-fathom # With pnpm pnpm add docusaurus-plugin-fathom
Edit the configuration in your site's docusaurus.config.js
file:
// docusaurus.config.js module.exports = { plugins: [require.resolve('docusaurus-plugin-fathom')], themeConfig: { fathomAnalytics: { siteId: 'MY_FATHOM_CODE', }, }, };
Note: tracking is enabled only on production mode