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

how to alias existing user?

Open MRSEREY opened this issue 5 years ago • 3 comments

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

  • Mixpanel.set(userProps)
  • Mixpanel.createAlias(userProps.id)
  • Mixpanel.identity(userProps.id)

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

MRSEREY avatar Aug 07 '19 09:08 MRSEREY

@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.

bpfeiffer187 avatar Sep 16 '19 12:09 bpfeiffer187

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.

kyleclegg avatar Nov 15 '19 21:11 kyleclegg

HI @MRSEREY any solution for this?

vixChoo avatar Dec 14 '20 06:12 vixChoo