Jump to content

Identifying Users Simplified

From The Stars Are Right
Revision as of 02:05, 17 November 2025 by SoniaZ30323 (talk | contribs) (Created page with "<br>The information on this web page is for tasks on the Simplified ID Merge API. The data on this web page is for initiatives utilizing the Simplified ID Merge API. You can examine your Identity Merge API by navigating to your venture settings. For initiatives using Original ID Merge API, ItagPro please refer to this documentation right here. Learn more in regards to the different ID Merge APIs right here. Mixpanel supports stitching user habits pre-login (eg: traffic...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


The information on this web page is for tasks on the Simplified ID Merge API. The data on this web page is for initiatives utilizing the Simplified ID Merge API. You can examine your Identity Merge API by navigating to your venture settings. For initiatives using Original ID Merge API, ItagPro please refer to this documentation right here. Learn more in regards to the different ID Merge APIs right here. Mixpanel supports stitching user habits pre-login (eg: traffic from your webpage, docs, weblog) and put up-login (as soon as the person has signed up). What % of site visitors end up signing up? How a lot of my Purchase income can I attribute to a selected campaign? This system known as ID Merge. On this guide, we walk via easy methods to identify users in tasks utilizing the Simplified ID Merge API and precisely how it works under the hood. Mixpanel uses to determine the uniqueness of your customers. SDK after which connected to all the user’s occasions.



ID for the consumer. ’s occasions moving ahead. ID cluster might be attributed back to the identical person in Mixpanel. 1. Call .establish() when a user indicators up or logs in, passing in the user’s identified identifier (eg: their ID out of your database). 2. Send at the very least one occasion after the .establish() call. Learn extra about the merge mechanism above. 3. Call .reset() when a consumer logs out. Any events previous to calling .identify() are considered anonymous events. Under the hood, Mixpanel will stitch the event streams of those customers collectively. This works even if a user has multiple nameless sessions (eg: on desktop and cell). So long as you all the time name .establish when the user logs in, all of that exercise will probably be stitched together. It is recommended to name .reset when a person logout or times out of an authenticated session to stop the unintentional merging of multiple users sharing one system.



Let’s stroll through just a few person flows the place ID Merge is beneficial, and when to name .determine() and .reset() to make use of ID Merge properly. 1. A user lands in your product on a new machine and interacts together with your product earlier than signing up. 2. The user returns later and indicators up in your product. 1. The consumer from the earlier circulate returns, however is on a new machine and has not logged in but. 2. The consumer logs in. 1. A first consumer begins using a brand new system. 2. The consumer logs in. 3. The person logs out. If you happen to don’t know the user’s identity on the time the event is tracked, ItagPro then they’re an nameless user. This ID will persist on all occasions tracked by that consumer on that system, until you name determine() or reset(). If you’re tracking from servers, ItagPro you’ll have to generate and ItagPro handle the IDs your self.



The hot button is to have an ID that is unique to each person and persists throughout that user’s session. We suggest producing a UUID and storing that value in a cookie. All common server frameworks provide a simple way to set and retrieve cookies per request. Once the user logs in, you recognize their true ID, you must leverage the new ID for the user. IDs collectively. This is important to trace pre-login and publish-login behavior precisely. Here’s a pseudocode example using Django’s cookies and authentication. By calling .determine() at these specific points in user journeys, you'll be capable of link the pre and publish-login occasions to the same person on Mixpanel. Besides, calling .determine when the users re-open the app in a logged-in state ensures that every one events within the session are tracked with the user’s identifier similar to person id. You'll be able to observe the user’s distinctive identifier as a brilliant property by way of .register() and person property by way of .individuals.set() as quickly as it is obtainable in the app i.e. on a profitable sign-up / login or when an app is re-opened in a logged in state. Within the cases when ID Merge isn't implemented correctly, you possibly can rely on these properties for troubleshooting purposes.