TestFairy can automatically detect sessions recorded by the same user, however, in many cases there is some additional information that would help you generate better insights.

In order to set session level attributes associated with your user, please see the document on Session Attributes.


[TestFairy setUserId:@"<userId>"]

Where userId is a string representing an association to your backend. We recommend passing values such as email, phone number, or user id that your app may use. This value may not be nil, and is searchable via API and web search.

Example: Identify users by email address

[TestFairy setUserId:@"john@example.com"]


setUserId: may be called many times, before or after begin.

Related Articles:

Identifying users on Android
iOS session attributes