Proper way to use identify in an app that has both anonymous and logged in users

  • 15 December 2021
  • 1 reply

In my iOS app a user doesn't need to sign up or login to use the app.  I am calling identify in didFinishLaunchingWithOptions with a custom anonymous userId from a 3rd party SDK.  I am also calling identify after a user has signed up/logged in along with setting the email address and name (i.e. mixpanel.people.set). I am using Firebase for auth, and there really isn’t a place to call “alias” on signup.  I have Identity Merge enabled, but users are not getting merged.  

What am I doing wrong here? 


Best answer by Muffaddal Qutbuddin 20 December 2021, 21:26

View original

1 reply

Userlevel 4
Badge +2

Hello @cp522 , No need to call identity with anonymous id. Only call identity when you get the user email on signup or login. Just make sure that id that you use with identification is consistent on signup and login. Email is a good option to use as id for identification.