Getting Started
Identify Users
Use identity tracking after a visitor logs in, signs up, or otherwise becomes known in your app. Revlly keeps the anonymous visitor ID and also stores an identified_user_id, so one user can be connected across sessions, browsers, and devices without storing raw fingerprint details.
Overview
js
window.revlly.identify("user_123", { plan: "pro", role: "owner",});Traits
Traits are optional key-value properties about the known user. The browser tracker keeps only simple strings, numbers, and booleans, and sends them under properties.traits.
js
window.revlly.setTraits({ plan: "team", seats: 5, beta_user: true,});Reset identity
Clear the known user when your app logs a user out. This does not delete the anonymous visitor ID or end the analytics session.
js
window.revlly.clearUser();