nativescript-mixpanel
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

npm npm

NativeScript Mixpanel

A NativeScript plugin to provide the ability to integrate with Mixpanel.

Installation

From your command prompt/terminal go to your app's root folder and execute:

tns plugin add nativescript-mixpanel

Usage

Angular Native (NativeScript Angular) Usage

In main.ts add the following before you bootstrap

 
import {MixpanelHelper} from "nativescript-mixpanel";
MixpanelHelper.init(YOUR_KEY_HERE);
 

API

import {MixpanelHelper} from "nativescript-mixpanel";
  • MixpanelHelper.init(token: any)
  • MixpanelHelper.track(eventName: any, props?: any)
  • MixpanelHelper.timeEvent(eventName: any)
  • MixpanelHelper.identify(id: any, extraAtributes?: any)
  • MixpanelHelper.registerSuperProperties(props: any)
  • MixpanelHelper.addPushDeviceToken(token: any)
  • MixpanelHelper.alias(alias: string)
  • MixpanelHelper.reset()
  • MixpanelHelper.flush()

Contributors

  • Antonio Cueva Urraco
  • Blake Nussey
  • Demetrio Filocamo

/nativescript-mixpanel/

    Package Sidebar

    Install

    npm i nativescript-mixpanel

    Weekly Downloads

    15

    Version

    2.0.3

    License

    Apache-2.0

    Unpacked Size

    30.6 kB

    Total Files

    18

    Last publish

    Collaborators

    • antoniocuevaurraco
    • bnussey
    • demetrio812