Identifying Users (Simplified)
Gertrude Kasper 於 1 周之前 修改了此頁面


The information on this page is for tasks on the Simplified ID Merge API. The knowledge on this web page is for initiatives using the Simplified ID Merge API. You'll be able to test your Identity Merge API by navigating to your venture settings. For projects using Original ID Merge API, please consult with this documentation here. Learn extra in regards to the totally different ID Merge APIs here. Mixpanel helps stitching consumer habits pre-login (eg: site visitors out of your webpage, docs, blog) and post-login (once the user has signed up). What % of site visitors end up signing up? How much of my Purchase revenue can I attribute to a specific campaign? This system is called ID Merge. In this information, we walk by means of how you can determine customers in tasks utilizing the Simplified ID Merge API and precisely how it really works under the hood. Mixpanel uses to determine the uniqueness of your users. SDK and ItagPro then connected to all of the user’s occasions.


ID for iTagPro technology the person. ’s events moving forward. ID cluster will probably be attributed again to the same user 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 least one event after the .identify() call. Learn extra about the merge mechanism above. 3. Call .reset() when a user logs out. Any events prior to calling .establish() are considered nameless occasions. Under the hood, Mixpanel will stitch the event streams of these users together. This works even when a consumer has a number of nameless periods (eg: on desktop and mobile). So long as you at all times call .determine when the consumer logs in, all of that activity will be stitched collectively. It is suggested to call .reset when a consumer logout or occasions out of an authenticated session to prevent the unintentional merging of multiple customers sharing one machine.


Let’s stroll by way of a few person flows where ID Merge is beneficial, and when to call .determine() and .reset() to use ID Merge properly. 1. A person lands in your product on a new machine and interacts along with your product before signing up. 2. The user returns later and indicators up in your product. 1. The user from the previous move returns, iTagPro technology but is on a new machine and has not logged in but. 2. The user logs in. 1. A primary consumer begins utilizing a brand iTagPro technology new gadget. 2. The person logs in. 3. The user logs out. In case you don’t know the user’s identification on the time the occasion is tracked, then they’re an anonymous consumer. This ID will persist on all events tracked by that person on that machine, till you call identify() or reset(). If you’re monitoring from servers, you’ll have to generate and handle the IDs your self.


The secret's to have an ID that is exclusive to every consumer and iTagPro technology persists throughout that user’s session. We advocate producing a UUID and storing that worth in a cookie. All widespread server frameworks provide a easy approach to set and retrieve cookies per request. Once the person logs in, you recognize their true ID, you need to leverage the new ID for the user. IDs collectively. This is essential to trace pre-login and post-login behavior accurately. Here’s a pseudocode instance utilizing Django’s cookies and authentication. By calling .establish() at these specific factors in person journeys, you'd be capable to link the pre and post-login events to the same consumer on Mixpanel. Besides, calling .establish when the customers re-open the app in a logged-in state ensures that each one events in the session are tracked with the user’s identifier similar to consumer id. You can track the user’s distinctive identifier as a brilliant property by way of .register() and user property by way of .folks.set() as soon because it is available in the app i.e. on a successful signal-up / login or when an app is re-opened in a logged in state. In the instances when ID Merge will not be carried out properly, you can depend on these properties for troubleshooting purposes.