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-umami
or
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-id
value is the websiteID value - You can copy and paste this as it is. Just do not include the"
- The value of
src
is yoursrc
- You can copy and paste this as it is, just do not include the"