2.0.3 • Published 5 years ago

nativescript-mixpanel v2.0.3

Weekly downloads
139
License
Apache-2.0
Repository
-
Last release
5 years ago

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
2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

8 years ago