1.0.4-1 • Published 2 years ago

@conciergerie.dev/vitepress-plugin-matomo v1.0.4-1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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.

1.0.4-1

2 years ago

1.0.4-0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.1-0

2 years ago

1.0.0

2 years ago