docusaurus-plugin-fathom
v1.2.0
Published
Fathom analytics plugin for Docusaurus
Downloads
326
Maintainers
Readme
docusaurus-plugin-fathom
Fathom analytics plugin for Docusaurus v2 and v3.
🔥 Fathom is a privacy-focused website analytics. Get 10$ off to try it with this link https://usefathom.com/ref/ZB4OSQ. 🔥
Installation
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
Configuration
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