Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@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 VueSegment from 'vue-segment'
Vue.use(VueSegment, {
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)
}
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(VueSegment, {
id: 'XXXXX',
router
})
put the name attribute in each route and add your router to the vue-segment initialization
Vue.use(VueSegment, {
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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.