docusaurus-plugin-plausible
v0.0.5
Published
A Docusaurus plugin for adding Plausible analytics to your Docusaurus site
Downloads
433
Maintainers
Readme
docusaurus-plugin-plausible
A Docusaurus plugin for Plausible analytics. Inspired by gatsby-plugin-plausible.
Install
- 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',
},
]
],
};
Options
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