🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@lukemnet/vuepress-plugin-matomo

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@lukemnet/vuepress-plugin-matomo

Matomo plugin for VuePress

1.0.3
unpublished
latest
68

Supply Chain Security

100

Vulnerability

85

Quality

76

Maintenance

100

License

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created

@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.

FAQs

Package last updated on 08 Oct 2022

Did you know?

Socket

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