Documentation Index
Fetch the complete documentation index at: https://revlytics.co/docs/llms.txt
Use this file to discover all available pages before exploring further.
Identify users
Callrevlytics.identify() after a user signs in:
Parameters
| Parameter | Type | Description |
|---|---|---|
userId | string | Your application’s unique user identifier |
traits | object | Optional user properties (name, email, plan, etc.) |
Update traits
Update user traits without re-identifying:Get current user
Clear user
Call on sign-out to stop associating events with the user:Persistence
The user ID is stored inlocalStorage under the key _rvl_uid. It persists across page reloads and browser sessions until explicitly cleared.