Question

I want to allow multiple users to signup using same device

  • 4 November 2019
  • 1 reply
  • 89 views

Badge

I want to allow multiple users to signup using same device. And I reset mixpanel after user signup. But mixpanel.reset works before it creates an alias. Here is my tracking code.

            mixpanel.alias(email);
mixpanel.people.set({
"$email": email,
"$name": name,
});
mixpanel.track("Send User Data");
            mixpanel.reset();

Can anyone suggest a better way to do this ?



1 reply

Userlevel 3
Badge

Hey yo @isuruab

I believe you want to call mixpanel.rest() when you user logs off. For example, if you have a device and UserA uses it to create an account and then logs out, the mixpanel.reset() call after log-out will clear the data attached to that user. Then when a new user(UserB) uses the same device to sign-up, it will give them a clear start, and create a new profile with a new distinct ID.


Reply