
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@prestashopcorp/segment-vue
Advanced tools
Vue plugin for Segment
Vue.js plugin for Segment
Segment Analytics.js Documentation
Vue ^2.0.0
npm install @prestashopcorp/segment-vue
import Vue from 'vue'
import SegmentVue from '@prestashopcorp/segment-vue'
Vue.use(SegmentVue, {
id: 'XXXXX',
});
add this on your App.vue file
created(){
this.$segment.identify({shopId}, {
name: "FullName_account",
email: "email_account",
plan: "premium_account"
})
}
add this on each method click
handleClick(){
this.$segment.track(NAME_YOUR_TRACK,
//optional properties
{
name: "it's your track name",
category: "ps_metrics",
})
}
put the name attribute in each route and add your router to the vue-segment initialization
export default {
path: "dashboard",
name: "dashboard", //Set name on each route
component: DashboardApp,
};
Vue.use(SegmentVue, {
id: 'XXXXX',
router
});
export default {
name: "activity",
path: "activity",
meta: {exclude: true}, // <= add this key in your route object, true to exclude, false to track
component: () =>
import(
/* webpackChunkName: "dashboardActivity" */ "@/core/dashboard/pages/ActivityApp"
),
redirect: "activity/revenue",
children: [RevenueRouter, OrderRouter, ConversionRouter, VisitRouter],
};
put the name attribute in each route and add your router to the vue-segment initialization
Vue.use(SegmentVue, {
id: 'XXXXX',
router,
pageCategory: "ps_metrics_"
});
FAQs
plugin vue for segment
The npm package @prestashopcorp/segment-vue receives a total of 1 weekly downloads. As such, @prestashopcorp/segment-vue popularity was classified as not popular.
We found that @prestashopcorp/segment-vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.