@prestashopcorp/segment-vue
Advanced tools
Comparing version 1.1.3 to 1.2.0
{ | ||
"name": "@prestashopcorp/segment-vue", | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"description": "plugin vue for segment", | ||
@@ -5,0 +5,0 @@ "main": "dist/segment-vue.js", |
@@ -19,5 +19,5 @@ # vue-segment | ||
import Vue from 'vue' | ||
import VueSegment from 'vue-segment' | ||
import SegmentVue from '@prestashopcorp/segment-vue' | ||
Vue.use(VueSegment, { | ||
Vue.use(SegmentVue, { | ||
id: 'XXXXX', | ||
@@ -45,3 +45,8 @@ }); | ||
handleClick(){ | ||
this.$segment.track(NAME_YOUR_TRACK) | ||
this.$segment.track(NAME_YOUR_TRACK, | ||
//optional properties | ||
{ | ||
name: "it's your track name", | ||
category: "ps_metrics", | ||
}) | ||
} | ||
@@ -52,3 +57,3 @@ ``` | ||
### Option Route track | ||
### route track option | ||
@@ -64,3 +69,3 @@ put the name attribute in each route and add your router to the vue-segment initialization | ||
Vue.use(VueSegment, { | ||
Vue.use(SegmentVue, { | ||
id: 'XXXXX', | ||
@@ -71,3 +76,3 @@ router | ||
### Option exclude route | ||
### exclude route option | ||
@@ -88,3 +93,3 @@ ```js | ||
### Option Page Category | ||
### page category option | ||
@@ -94,3 +99,3 @@ put the name attribute in each route and add your router to the vue-segment initialization | ||
```js | ||
Vue.use(VueSegment, { | ||
Vue.use(SegmentVue, { | ||
id: 'XXXXX', | ||
@@ -97,0 +102,0 @@ router, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13939
5
280
100