@aayushgarg14/expo-mixpanel-analytics 中文文档教程
Expo Mixpanel Analytics
Mixpanel 集成,用于与基于 Expo 构建的 React Native 应用程序一起使用。
Installation
npm install --save @aayushgarg14/expo-mixpanel-analytics
Import
您的 React Native 应用程序的屏幕分辨率、应用程序名称、应用程序 ID、应用程序版本、设备信息和多个其他参数将自动解析并随每个事件一起发送。
import ExpoMixpanelAnalytics from 'expo-mixpanel-analytics';
Usage
const analytics = new ExpoMixpanelAnalytics(MIXPANEL_TOKEN);
analytics.alias(UNIQUE_ID);
analytics.identify(UNIQUE_ID);
analytics.track("Signed Up", { "Referred By": "Friend" });
analytics.people_set({ "$first_name": "Joe", "$last_name": "Doe", "$email": "joe.doe@example.com", "$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
Expo Mixpanel Analytics
Mixpanel integration for use with React Native apps built on Expo.
Installation
npm install --save @aayushgarg14/expo-mixpanel-analytics
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(MIXPANEL_TOKEN);
analytics.alias(UNIQUE_ID);
analytics.identify(UNIQUE_ID);
analytics.track("Signed Up", { "Referred By": "Friend" });
analytics.people_set({ "$first_name": "Joe", "$last_name": "Doe", "$email": "joe.doe@example.com", "$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
更多
你可能也喜欢
- @1001-digital/erc721-extensions 中文文档教程
- @100mslive/hmsimagetouchup 中文文档教程
- @128technology/darsain-tooltip 中文文档教程
- @36node/http-status 中文文档教程
- @3rdvision/epir-processor-api 中文文档教程
- @4th-law/typings-public 中文文档教程
- @540deg/react-scripts 中文文档教程
- @7bytes/draco 中文文档教程
- @_nu/css-acss 中文文档教程
- @a11ywatch/website-source-builder 中文文档教程