vue-amplitude-plugin

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i vue-amplitude-plugin

Weekly Downloads

9

Version

1.0.0

License

ISC

Unpacked Size

88.8 kB

Total Files

4

Last publish

Collaborators

  • bradyperry