You should call mixpanel.people.identify() every time a user logs in. You can even call it every time the page loads in the login state if you want.
identify sets some data in the cookie that the distinct_id library should use when sending data to people.
If you called mixpanel.identify with the same distinct_id as mixpanel.people.identify , the events you send (with mixpanel.track ) will be displayed in the user profile on the Clients tab. In order for the user to be displayed at all, you will need to call mixpanel.people.set (or .add ) at least once.
EDIT: mixpanel.people.identify no longer required; you can just call mixpanel.identify and it will install both.
source share