A Docusaurus plugin for Plausible analytics. Inspired by gatsby-plugin-plausible.
- Install
docusaurus-plugin-plausible
npm install --save docusaurus-plugin-plausible
- Add plugin to
docusaurus.config.js
module.exports = {
...
plugins: [
[
'docusaurus-plugin-plausible',
{
domain: 'your-website.com',
},
]
],
};
domain
(required) - The domain added in PlausiblecustomDomain
- A custom domain if configured in PlausibleexcludePaths
- An array of paths to exclude when sending page view events