@zvitek/vitepress-plugin-matomo
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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
# or
npm install --save-dev vitepress-plugin-matomo

Usage

// .vitepress/theme/index.ts

import DefaultTheme from "vitepress/theme";
import matomo from "vitepress-plugin-matomo";

export default {
  ...DefaultTheme,
  enhanceApp: (ctx) => {
    matomo({
      router: ctx.router,
      siteID: 123, // Replace with your site id
      trackerUrl: "http***" // Replace with your matomo url
    })
  }
};

Docs

See the documentation for details about the parameters.

Readme

Keywords

Package Sidebar

Install

npm i @zvitek/vitepress-plugin-matomo

Weekly Downloads

335

Version

1.0.1

License

MIT

Unpacked Size

23.5 kB

Total Files

11

Last publish

Collaborators

  • zvitek