davide-scalzo / react-native-mixpanel

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

how to alias existing user? #191

Open MRSEREY opened 5 years ago

MRSEREY commented 5 years ago

In our app we don't have sign up screen so when user login I used:

then when user first time login it working fine and I can see all activities under that user, but when that user logout and login again my mixpanel create new user.

Any solutions to solve it?

Thanks

bpfeiffer187 commented 5 years ago

@MRSEREY i would try not using identify. only use that if u want to over write the exisitng mixpanel distict ID.

my implementation is pretty similar and that was the advice i got, however we havent started testing it yet.

kyleclegg commented 5 years ago

If you don't have a sign up process then you might not need to use alias. When is the user id created? Can you use that from the first time the user launches the app? Alias is useful when aliasing a distinct id or pre-sign up id to a real user id.

vixChoo commented 3 years ago

HI @MRSEREY any solution for this?