1.1.1 • Published 5 years ago

vue-tracker-teko v1.1.1

Weekly downloads
7
License
MIT
Repository
-
Last release
5 years ago

VueTrackerTeko

npm vue2

Installation

npm install --save vue-tracker-teko

Usage

Bundler (Webpack, Rollup)

import Vue from "vue";
import VueTrackerTeko from "vue-tracker-teko";

Vue.use(VueTrackerTeko, {
  // Configure your tracker server and site by providing
  host: "https://dev-tracking.teko.vn",
  urlServeJsFile: "https://dev-tracking.teko.vn/track/libs/tracker-v1.0.0.full.min.js",
  appId: "chat-tool"

  // Enables automatically registering pageviews on the router
  router: router,

  // Whether or not to log debug information
  // Default: false
  debug: false
});

// or
window.track();

Add more meta data for site

{
  path: '/page-2',
  name: 'Page2',
  component: Page2,
  meta: {
    addMetaPageview: (route) => {
      // do something to get add props
      return {
        contentType: "others",
        skuId: "skuId",
        skuName: "product name",
        screenName: "screenName",
      }
    }
  }
}

Ignoring routes

It is possible to ignore routes using the route meta:

{
  path: '/page-2',
  name: 'Page2',
  component: Page2,
  meta: {
    analyticsIgnore: true
  }
}

License

MIT

2.0.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago