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
object
User attributes to update. See Attributes for details. These attributes can be used in flow content and conditions to personalize the user experience.
Returns
APromise 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
- Anonymous users are exempt from Identity Verification: this method needs no identity token and keeps working with enforcement on — but anonymous users cannot be associated with a company via
group()