1.1.1 • Published 4 years ago

vue-tracker-teko v1.1.1

Weekly downloads
7
License
MIT
Repository
-
Last release
4 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

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago