vuepress-plugin-matomo

matomo plugin for vuepress >= 1.0
1,926 9
Install
npm install vuepress-plugin-matomo
Latest Version:1.0.2
License:MIT
Last Updated:Oct 8, 2022
Links: GitHub  ·  npm
Maintainer: qdot

Matomo Vuepress Plugin

Allows Matomo access tracking on vuepress >= 1.0. Does not work on Vuepress 0.x, requires 1.x alpha branch with plugin support.

Installation

npm install vuepress-plugin-matomo

or

yarn add vuepress-plugin-matomo

Vuepress Setup

Add the following block to the plugins array of your config.js file.

// ...
  plugins: [
    [
      // ...
      "vuepress-plugin-matomo",
      {
        'siteId': 1,
        'trackerUrl': "https://my.matomo.url.here/"
      },
      // ...
    ]
// ...

Plugin Options

  • trackerUrl (string, Required)
    • URL where the piwik.php/piwik.js files can be found
  • siteID (number, Required)
    • Matomo numeric site ID of the site you want to track
  • trackerJsFile (string, defaults to "piwik.js", Optional)
    • Name of the js file to call on the matomo server
  • trackerPhpFile (string, defaults to "piwik.php", Optional)
    • Name of the php file to call on the matomo server
  • enableLinkTracking (boolean, defaults to true, Optional)
    • Enable/disable link click tracking

License

MIT License, see LICENSE.txt for more info.

Related Packages

@vuepress/plugin-nprogress

nprogress plugin for vuepress

3,258,429 22,716
@vuepress/plugin-active-header-links

active-header-links plugin for vuepress

3,218,918 22,716
@vuepress/theme-default

Default theme for VuePress

3,076,688 22,716
@vuepress/plugin-search

search plugin for vuepress

2,580,346 22,716
@vuepress/plugin-register-components

register-global-components plugin for vuepress

2,557,918 22,716

Version History

Version Released License
1.0.2 MIT
1.0.1 MIT
1.0.0 MIT