Users and identify
A person is one of your app’s end users, keyed by the distinct_id you pass to identify. Until you call it, a
device is anonymous: its sessions still count towards unique devices, but not towards unique users.
identify
Section titled “identify”Quameleon.identify("user_8412", { plan: "pro", company: "Acme", signup_date: "2026-03-02" });- Emits a
contextsignaluser.idwith the id, and acontextsignalpersonwith the props. - Persists
distinct_idon the device, so later launches stay identified untilreset(). - Every upload batch header carries
distinct_id, and the server stores it on the session, the device (last_distinct_id) and the person. - Props are stored as the person’s properties and shown on the user page.
The id must be 1 to 200 characters; anything else is ignored and reported as an sdk_error. Use an opaque, stable
id from your own system. Do not use an email address or phone number as the id; put contact
data in props only if your privacy policy allows it, and remember the redaction list below.
Quameleon.reset();Clears distinct_id on sign-out and, in production mode when a user was identified, ends the current session and
user session: the app keeps
running under a new session_id and user_session_id, anonymous until the next identify. The device_id does
not change. See Sessions.
Attributes and feature flags
Section titled “Attributes and feature flags”Quameleon.setAttribute("tier", "gold"); // context signal "tier"Quameleon.setFeatureFlag("new-checkout", "b"); // context signal "flag.new-checkout"; null clearsFeature flags are also kept with crash markers, so a crash report shows which flags were active.
Before SDK 0.5
Section titled “Before SDK 0.5”Quameleon.setUser(id) emits the same user.id context signal but does not persist the id across launches or add it
to the batch header. It still works; prefer identify from 0.5.
Redaction
Section titled “Redaction”Prop keys containing password, passwd, secret, token, authorization, cookie, session, api_key,
apikey, credential, private_key, ssn, card_number or cvv (case-insensitive) are replaced with <redacted>
on the device, and user:pass@ is stripped from URL-like values.