0.0.5 • Published 3 years ago

docusaurus-plugin-plausible v0.0.5

Weekly downloads
7
License
Apache-2.0
Repository
github
Last release
3 years ago

docusaurus-plugin-plausible

A Docusaurus plugin for Plausible analytics. Inspired by gatsby-plugin-plausible.


Install

  1. Install docusaurus-plugin-plausible

    npm install --save docusaurus-plugin-plausible

  2. Add plugin to docusaurus.config.js

    module.exports = {
      ...
      plugins: [
        [
          'docusaurus-plugin-plausible',
          {
            domain: 'your-website.com',
          },
        ]
      ],
    };

Options

  • domain (required) - The domain added in Plausible
  • customDomain - A custom domain if configured in Plausible
  • excludePaths - An array of paths to exclude when sending page view events

License

Apache License 2.0