Users
identifyAnonymous()
Identify anonymous users with automatically generated IDs
The identifyAnonymous()
method works similarly to usertour.identify(), but automatically generates and manages a unique ID for anonymous users. This ID is stored in the user’s localStorage and persists across page reloads.
Important: Only use this method for unauthenticated users. For signed-in users, use usertour.identify() with their actual user ID.
Parameters
User attributes to update. See Attributes for details. These attributes can be used in flow content and conditions to personalize the user experience.
Returns
A Promise
that resolves when the identification is complete.
Example
Notes
- The generated ID persists in localStorage until cleared
- Use this method only for public pages where users aren’t logged in