Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

spacelephantlabs/vuepress-plugin-matomo-spacelephant

 
 

Repository files navigation

Matomo Vuepress Plugin for Space Elephant projects

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

This project is a fork of https://github.com/qdot/vuepress-plugin-matomo, specialized for Space Elephant's projects.

Installation

yarn add vuepress-plugin-matomo-spacelephant

Vuepress Setup

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

// ...
  plugins: [
    // ... other plugins...
    [
      "vuepress-plugin-matomo-spacelephant":
      {
        'siteId': 1,
      }
    ],
    // ... more plugins...
  ]
// ...

Plugin Options

  • siteID (number, Required)
    • Matomo numeric site ID of the site you want to track
  • trackerUrl (string, Optional)
    • URL where the matomo.php/matomo.js files can be found. Already configured for all Space Elephant's projects
  • trackerJsFile (string, defaults to js/, Optional)
    • Name of the js file to call on the matomo server
  • trackerPhpFile (string, defaults to r.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.

About

Matomo plugin for vuepress >= 1.0 for all Space Elephant projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%