2.0.0 • Published 4 years ago
docusaurus-plugin-umami v2.0.0
docusaurus-plugin-umami
This plugin enables you to use umami analytics on a docusaurus site
Install the plugin
- Add the plugin to your project.
yarn add docusaurus-plugin-umamior
npm install docusaurus-plugin-umami --save- Configure the plugin in
docusaurus.config.js
// docusaurus.config.js
module.exports = {
plugins: ["docusaurus-plugin-umami"],
themeConfig: {
umami: {
websiteid: "websiteID", // Insctructions below on how to find this
src: "script src", // Instructions below on how to find this
},
}
};How to find the configutation values for umami
- Log into Umami
- On the top right, select profile
- Select "websites"
Choose the tracking code option:
The
data-website-idvalue is the websiteID value - You can copy and paste this as it is. Just do not include the"- The value of
srcis yoursrc- You can copy and paste this as it is, just do not include the"