An open API service indexing awesome lists of open source software.

https://github.com/pradel/docusaurus-plugin-fathom

Fathom analytics plugin for Docusaurus
https://github.com/pradel/docusaurus-plugin-fathom

docusaurus docusaurus-plugin fathom fathom-analytics

Last synced: 3 months ago
JSON representation

Fathom analytics plugin for Docusaurus

Awesome Lists containing this project

README

        

# docusaurus-plugin-fathom

[Fathom](https://usefathom.com/ref/ZB4OSQ) analytics plugin for [Docusaurus v2 and v3](https://github.com/facebook/docusaurus).

> 🔥 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. 🔥

## Installation

Run the following command to install docusaurus-plugin-fathom in your project:

```sh
# 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:

```js
// 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