lz-piwik
v0.0.139
Published
上传lz-piwik
Downloads
56
Readme
lz-tracker
Link your Tracker installation. Compatible with vue 2.x and 3.x.
Installation
npm install --save lz-tracker
Browser
<!-- Include after Vue -->
<!-- Local files -->
<script src="lz-tracker/dist/lz-tracker.js"></script>
<!-- From CDN -->
<script src="https://unpkg.com/lz-tracker"></script>
Usage
Bundler (Webpack, Rollup)
import Vue from 'vue'
import LZ_TRACKER from 'lz-tracker'
Vue.use(LZ_TRACKER, {
// Configure your matomo server and site by providing
host: 'https://matomo.example.com',
siteId: 5,
activity_id: 'matomo',
// Enables automatically registering pageviews on the router
router: router,
});
Note on async loading
Note on external link tracking
// Or...
Nuxt
## License