Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@prestashopcorp/segment-vue

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prestashopcorp/segment-vue - npm Package Compare versions

Comparing version 1.1.3 to 1.2.0

dist/@prestashopcorp/segment-vue.js

2

package.json
{
"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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc