ng-mixpanel

1.0.1 • Public • Published

ngMixpanel

AngularJS Directive for Mixpanel

Functionality

  • Sending events

Installation

  • bower install ng-mixpanel
  • download src/ng-mixpanel[.min].js

Usage

  • include ng-mixpanel[.min].js in your index.html before your module definition
<script type="text/javascript" src="src/ng-mixpanel.min.js"></script>
  • add the ng-mixpanel module to your module/app dependencies
var myApp = angular.module('myApp', ['ngMixpanel']);

Directives

mixpanel-event

Sending events

Usage

<a mixpanel-event="Click A" mixpanel-on="click">A</a>

Attributes

  • mixpanel-event (required)
  • mixpanel-on (required)

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i ng-mixpanel

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • jqrgen