Identity tracking
Selektable automatically tracks visitors using browser storage. You can optionally associate visitors with known user identities for better analytics and cross-device tracking.Automatic tracking
The embed script automatically generates and manages:
These IDs are automatically included in all widget API calls without any configuration needed.
Identifying known users
When a customer logs into your site, callidentify() to associate their visitor ID with their user account:
This does three things:
- Stores the user ID and traits in the browser
- Sends the identity to the Selektable server in the background
- Updates all currently open widgets with the new identity
Resetting identity
When a user logs out, reset the identity to generate a new anonymous visitor:Reading the current identity
Setting a custom visitor ID
If you have your own visitor tracking system, you can override the auto-generated visitor ID:Privacy considerations
- All IDs are generated client-side in the browser
- No cookies are used
- Calling
Selektable.reset()clears all stored identity data - If
localStorageis unavailable (e.g., private browsing), ephemeral IDs are generated per page load