Skip to content

Mixpanel integration for use with React Native apps built on Expo.

Notifications You must be signed in to change notification settings

reservamos/expo-mixpanel-analytics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expo Mixpanel Analytics

Mixpanel integration for use with React Native apps built on Expo.

Installation

npm install expo-mixpanel-analytics --save

Import

Your React Native app's screen resolution, app name, app ID, app version, device information and multiple other parameters will be automatically resolved and sent with each event.

import ExpoMixpanelAnalytics from 'expo-mixpanel-analytics';

Usage

const analytics = new ExpoMixpanelAnalytics("5224da5bbbed3fdeaad0911820f1bf2x");

analytics.identify("13793");

analytics.track("Signed Up", { "Referred By": "Friend" });

analytics.people_set({ "$first_name": "Joe", "$last_name": "Doe", "$email": "[email protected]", "$created": "2013-04-01T13:20:00", "$phone": "4805551212", "Address": "1313 Mockingbird Lane", "Birthday": "1948-01-01" });

analytics.people_set_once({ "First login date": "2013-04-01T13:20:00" });

analytics.people_unset([ "Days Overdue" ]);

analytics.people_increment({ "Coins Gathered": 12 });

analytics.people_append({ "Power Ups": "Bubble Lead" });

analytics.people_union({ "Items purchased": ["socks", "shirts"] });

analytics.people_delete_user();

analytics.reset();

References

https://mixpanel.com/help/reference/http

About

Mixpanel integration for use with React Native apps built on Expo.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%