Matomo Vitepress Plugin
Allows Matomo access tracking on Vitepress. It requires access to Vitepress router
and was developed on Vitepress 1.0.0-alpha.65
.
This project takes many ideas from vuepress-plugin-matomo and vitepress-plugin-google-analytics, but for Vitepress and Matomo.
Installation
npm install --save vitepress-plugin-matomo
npm install --save-dev vitepress-plugin-matomo
Usage
import DefaultTheme from "vitepress/theme";
import matomo from "vitepress-plugin-matomo";
export default {
...DefaultTheme,
enhanceApp: (ctx) => {
matomo({
router: ctx.router,
siteID: 123,
trackerUrl: "http***"
})
}
};
Docs
See the documentation for details about the parameters.