I read the .alias() documentation but I am still a bit confused.
Assume a user has 5 different emails. Can we call .alias() 5 times to link all those emails under the same Mixpanel user profile? or can alias() be called only once?
According to the documentation you referenced and the MixTape API docs, calling alias() more than once for a given user should only be done if you're creating a new alias.
"The best practice is to call alias() when a unique ID is first created for a user (e.g., when a user first registers for an account and provides an email address). alias() should never be called more than once for a given user, except to chain a newer ID to a previously new ID, as described above."
However, it looks like if you have the original id available you can add several aliases to the same original ID only. From the beginning of the api docs on alias...
"Multiple aliases can map to the same original ID, but not vice-versa."
Already have an account? Login
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.