If no user ID is set, Clix will automatically treat the user as anonymous
with only a device ID and an auto-generated
project-user-id.If a user ID is set, the anonymous user will be converted into an
Identified User, linking all their previous activity with their account.
When to Use User Management
Anonymous user (default)
By default, when your app starts without setting a user ID, Clix assigns an
anonymous profile. This is useful when users are browsing your app
without logging in.
Identified user (after login/signup)
Once a user logs in or creates an account, you can call the User
Management API to assign a permanent
userId. This converts the anonymous
user to an Identified User, ensuring continuity of notifications,
preferences, and analytics across devices.User Logout / Reset
By default, you don’t need to handle logout explicitly. Events sent after logout are attributed to the last known user, which is sufficient for most use cases. If you need to explicitly log users out or track events under an anonymous user (e.g., shared devices where multiple people sign in), callreset(). This anonymizes the user by:
- Setting the user ID to null
- Clearing the device ID so a new one is generated on next initialization
reset(), you must call initialize() again before using the SDK.