Identifying Users (Simplified)
Emelia Adam 于 2 天之前 修改了此页面


The knowledge on this page is for initiatives on the Simplified ID Merge API. The information on this web page is for projects utilizing the Simplified ID Merge API. You can verify your Identity Merge API by navigating to your challenge settings. For ItagPro initiatives using Original ID Merge API, please seek advice from this documentation here. Learn more about the different ID Merge APIs right here. Mixpanel helps stitching person conduct pre-login (eg: traffic from your website, docs, blog) and submit-login (as soon as the person has signed up). What % of site guests find yourself signing up? How much of my Purchase revenue can I attribute to a particular marketing campaign? This system is named ID Merge. On this information, ItagPro we walk by way of tips on how to establish customers in projects utilizing the Simplified ID Merge API and precisely how it works underneath the hood. Mixpanel uses to find out the uniqueness of your users. SDK after which attached to all of the user’s occasions.


ID for ItagPro the user. ’s occasions transferring forward. ID cluster might be attributed back to the identical consumer in Mixpanel. 1. Call .establish() when a consumer signs up or logs in, passing in the user’s recognized identifier (eg: ItagPro their ID from your database). 2. Send not less than one occasion after the .identify() call. Learn extra about the merge mechanism above. 3. Call .reset() when a person logs out. Any events previous to calling .determine() are thought of nameless events. Under the hood, Mixpanel will stitch the occasion streams of these users together. This works even if a person has a number of anonymous sessions (eg: ItagPro on desktop and cell). As long as you at all times call .establish when the user logs in, all of that activity might be stitched collectively. It is suggested to call .reset when a person logout or times out of an authenticated session to prevent the unintentional merging of a number of users sharing one gadget.


Let’s walk via a few consumer flows the place ID Merge is beneficial, and when to call .determine() and .reset() to make use of ID Merge properly. 1. A consumer lands in your product on a new gadget and interacts together with your product earlier than signing up. 2. The user returns later and indicators up to your product. 1. The user from the earlier stream returns, ItagPro however is on a brand new system and has not logged in yet. 2. The person logs in. 1. A first consumer begins using a brand new system. 2. The consumer logs in. 3. The consumer logs out. If you don’t know the user’s identification at the time the occasion is tracked, then they’re an nameless consumer. This ID will persist on all occasions tracked by that user on that device, until you call identify() or reset(). If you’re tracking from servers, you’ll need to generate and manage the IDs yourself.


The key is to have an ID that is exclusive to each consumer and persists during that user’s session. We suggest producing a UUID and storing that worth in a cookie. All frequent server frameworks provide a easy strategy to set and retrieve cookies per request. Once the consumer logs in, you realize their true ID, you must leverage the new ID for the person. IDs collectively. This is essential to track pre-login and put up-login conduct accurately. Here’s a pseudocode example utilizing Django’s cookies and authentication. By calling .determine() at these specific factors in person journeys, ItagPro you'd be capable of link the pre and post-login occasions to the identical person on Mixpanel. Besides, calling .establish when the users re-open the app in a logged-in state ensures that each one occasions within the session are tracked with the user’s identifier equivalent to person id. You possibly can monitor the user’s distinctive identifier as an excellent property by way of .register() and consumer property by way of .people.set() as soon because it is offered in the app i.e. on a profitable signal-up / login or when an app is re-opened in a logged in state. Within the circumstances when ID Merge just isn't applied properly, you can depend on these properties for ItagPro troubleshooting functions.