1.0.0 • Published 4 years ago

vue-amplitude-plugin v1.0.0

Weekly downloads
16
License
ISC
Repository
github
Last release
4 years ago

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

1.0.0

4 years ago