New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

vue-mixpanel-browser

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-mixpanel-browser

A vue plugin for mixpanel-browser

latest
Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
232
79.84%
Maintainers
1
Weekly downloads
 
Created
Source

vue-mixpanel-browser

NPM

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);

Keywords

vue

FAQs

Package last updated on 01 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts