Link your Tracker installation. Compatible with vue 2.x and 3.x.
npm install --save lz-tracker
<!-- Include after Vue -->
<!-- Local files -->
<script src="lz-tracker/dist/ty-tracker.js"></script>
<!-- From CDN -->
<script src="https://unpkg.com/ty-tracker"></script>
import Vue from 'vue'
import TY_TRACKER from 'ty-tracker'
Vue.use(TY_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,
});
// Or...
## License