Mixpanel - Create User Profiles for Already Signed up Users

Hi Im implementing mixpanel for an existing web app with existing signed up users. The normal flow for new users is that I call alias followed by mixpanel.people.set() on sign up to create user profiles. On Login I would only call identify() to link events to an already existing profile.

The problem happens with already pre-mixpanel signed up users. They won’t sign up so mixpanel.people.set() won’t be called and hence all existing signed up users pre-mixpanel won’t have a user profile. The only way I can think of is to check upon login if the user has a user profile in mixpanel and if not call mixpanel.people.set(). Is there a way to check if a user already has a user profile in mixpanel? Alternatively is there a better way to achieve this?

2

1 Answer

I found the method that solves this: mixpanel.people.set_once - set properties if they don't exist

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest