Socket
Socket
Sign inDemoInstall

@lukemnet/vuepress-plugin-matomo

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @lukemnet/vuepress-plugin-matomo

Matomo plugin for VuePress


Version published
Maintainers
1
Created

Readme

Source

@lukemnet/vuepress-plugin-matomo

Allows Matomo access tracking on VuePress.

This project is an independently maintained fork of vuepress-plugin-matomo intended to keep compatibility with future VuePress versions.

This project takes many ideas from vue-matomo, but tries to make them SSR friendly for vuepress usage.

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: [
    // ... other plugins...
    [
      "vuepress-plugin-matomo":
      {
        'siteId': 1,
        'trackerUrl': "https://my.matomo.url.here/"
      }
    ],
    // ... more plugins...
  ]
// ...

Also see vuepress' plugin page. This plugin uses babel-style options for configuration.

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.

Keywords

FAQs

Last updated on 08 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc