Identify authenticated users with their unique ID and attributes
identify()
method registers the current user with Usertour. Call this method once on each page load where a user is signed in.
When you provide attributes
, they will be merged with the user’s existing attributes in Usertour. Attributes not included in the call will retain their current values.
Note: Only theIf the user has any active flows, they will be displayed. New flows may start if the user matches their start conditions.userId
parameter is required. We recommend includingname
,signed_up_at
attributes to help identify users in Usertour and support flow conditions. Do not send sensitive data such as passwords.
Promise
that resolves when the identification is complete.
userId
must be unique within your system