vue-mixpanel-browser
A vue plugin for mixpanel-browser
10,247
2
| Install | |
|---|---|
npm install vue-mixpanel-browser |
|
| Latest Version: | 0.0.6 |
| Vue: | 2 |
| License: | ISC |
| Last Updated: | Jun 21, 2021 |
| Links: | GitHub · npm |
Maintainer: chriswoodle
vue-mixpanel-browser
A vue plugin for Mixpanel Browser
Installation
yarn add vue-mixpanel-browser
From you main file.
import Vue from 'vue';
import VueMixpanelBrowser from 'vue-mixpanel-browser';
Vue.use(VueMixpanelBrowser, {
token: YOUR_TOKEN,
config: {...}
});
Usage
From your vue components you can now access Mixpanel Browser via $mixpanel
this.$mixpanel.track('sign up');
Passing mixpanel options
Available config for mixpanel can be found here;
import Vue from 'vue';
import VueMixpanelBrowser from 'vue-mixpanel-browser';
import { MixpanelPluginOptions } from 'vue-mixpanel-browser';
const options: MixpanelPluginOptions = {
token: YOUR_TOKEN,
config: {...} // Mixpanel config
Vue.use(VueMixpanelBrowser, options);
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.6 | ^2.6.12 | ISC | |
| 0.0.5 | ^2.6.12 | ISC | |
| 0.0.4 | ^2.6.12 | ISC | |
| 0.0.3 | ^2.6.12 | ISC | |
| 0.0.2 | ^2.6.12 | ISC | |
| 0.0.1 | ^2.6.12 | ISC |
