react-native-mixpanel icon indicating copy to clipboard operation
react-native-mixpanel copied to clipboard

Explore analytics (Mixpanel.set) not working

Open jokaslokas opened this issue 6 years ago • 1 comments

So I am trying to use the Explore section on Mixpanel but I need to identify and set user properties. The problem is my users are anonymouse so I just want access to the explore tab via users' disctinct ID.

I am calling identify and set but it is not working:

Mixpanel.identify(); Mixpanel.set({"emailtest":"emailtest"});

I have also tried to call set without any parameters but it still doesn't work. I still get this message on Mixpanel: "You haven't sent us any user profiles yet. Don't worry: it's easy to get set up."

Everything else works fine. Any help will be appreciated :D

jokaslokas avatar Apr 02 '19 19:04 jokaslokas

Try something like this:

Mixpanel.getDistinctId((id) => {
  Mixpanel.identify(id);
 Mixpanel.set({"emailtest":"emailtest"});
});

lorenc-tomasz avatar Apr 23 '19 17:04 lorenc-tomasz