Skip to content

BPerry24/vue-amplitude-plugin

Repository files navigation

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

About

Vue Plugin for Amplitude Javascript SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published