VuePiwik
Link your Piwik/Matomo installation
Installation
npm install --save vue-piwik
Usage
Bundler (Webpack, Rollup)
Vue // Now you can access piwik api in components throughthis$piwik // orwindow_paqpush // or throughwindowPiwikgetTracker
For available operations see the piwik api docs
Browser
<!-- Include after Vue --><!-- Local files --> <!-- From CDN -->
Build
Bundle the js and css of to the dist
folder:
npm run build