@polymetis-apps/pirsch-docusaurus
v0.6.2
Published
Pirsch Analytics plugin for Docusaurus v2
Downloads
7
Readme
Pirsch plugin for Docusaurus v2
An easy to use plugin to use Pirsch Analytics with Docusaurus v2 sites.
Installing the plugin
yarn add @polymetis-apps/pirsch-docusaurus
or
npm install @polymetis-apps/pirsch-docusaurus --save
Configuring the plugin
After installing the plugin, simply add it to your docusaurus config. It only takes one parameter, your identification code.
// docusaurus.config.js
module.exports = {
plugins: [
['@polymetis-apps/pirsch-docusaurus', {
code: "XXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}],
]
};
And that is it! You should be ready to go immediately. Please note that Pirsch ignores requests made from localhost, so your local tests should not show up in your dashboard.