vue-amplitude-plugin
v1.0.0
Published
A Vue.js plugin for the amplitude-js SDK
Downloads
60
Readme
Vue-Amplitude Plugin
A Vue.js plugin created to easily utilize Amplitude Javascript SDK
Installation
npm i -S vue-amplitude-plugin
Using the 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
});
Contributing
Fork this repository and make a pull request
Testing
npm run test