what is the best way to manage identity for a project that is already in production, has time and thousands of users and wants to implement mixpanel? We are starting with the implementation with the php libraries for the backend and js for the front, but we have the following doubts:
1. in the live view the column "distinctive id" is being placed my email currently attached capture
but I see the tutorial https://help.mixpanel.com/hc/en-us/articles/360021749032#adding-tracking-code and he recommend handling it with the distinct id that automatically generates the js library the login event I have it as follows
$ mixPanel-> createAlias ($ current_distinct_id, $ user-> email);
$ mixPanel-> identify ($ user-> email);
The identify with the email as recommended by the tutorial but then I read this https://help.mixpanel.com/hc/en-us/articles/360001355466-Server-Side-Identity-Management and here it recommends $ mixPanel-> identify ($ current_distinct_id) so what is the best option? I want to track events before and after authentication
2. Since there are users already registered in my project, I think that I have to put the properties people set, create alias, etc. in the Login event also no? because if I put it only in the account creation (like the tutorial) my users never will be registered in the mixpanel right?
I’ll appreciate your help