davide-scalzo / react-native-mixpanel

A React Native wrapper for Mixpanel tracking
MIT License
455 stars 195 forks source link

Not getting events into Mixpanel #160

Open sebastianpantin opened 6 years ago

sebastianpantin commented 6 years ago

There seems to be some problems with this library, it doesn't send all events to Mixpanel.

I initiated the Mixpanel SDK in componentDidMount of my root component as below try { await Mixpanel.sharedInstanceWithToken( Config.MIXPANEL_TOKEN ); await Promise.all([ Mixpanel.track("App Loaded") ]); } catch (err) { console.log(Error initiating Mixpanel:, err); }

This event and my other events sent with .track() are only sometimes (seemingly at random) sent to Mixpanel. Are there any steps that I am missing or what could be wrong?

React-native version: 0.54.

MaxiSantos commented 5 years ago

Try with this analyticManager proposed here https://github.com/davodesign84/react-native-mixpanel/issues/150#issuecomment-413406274

also check this other url https://github.com/davodesign84/react-native-mixpanel/pull/123