ty-tracker

0.0.14 • Public • Published

lz-tracker

npm vue2 vue3 npm bundle-size license

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/ty-tracker.js"></script>

<!-- From CDN -->
<script src="https://unpkg.com/ty-tracker"></script>

Usage

Bundler (Webpack, Rollup)

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,

 
});

Note on async loading

Note on external link tracking

// Or...

Nuxt

## License

Readme

Keywords

none

Package Sidebar

Install

npm i ty-tracker

Weekly Downloads

6

Version

0.0.14

License

none

Unpacked Size

134 kB

Total Files

4

Last publish

Collaborators

  • 3cy1113