npm i -S vue-amplitude-plugin
Vue.use(VueAmplitude, {
apiKey,
userId
});
apiKey : Required provided by Amplitude on a per project basis userId : Optional used to define custom user identifier
Vue.prototype.$logEvent('YOUR_EVENT', {
// OPTIONAL EVENT PROPERTIES
});
Fork this repository and make a pull request
npm run test