Skip to main content

Overview

Tell the SDK who is asking so targeting rules and percentage rollouts have a userId (and traits).

Identify

Later checks reuse that identity until reset():
Per-call override:

Browser anonymous id

shipdit/client persists anonymousId (localStorage key shipdit:anonymousId by default) so anonymous → logged-in sessions correlate.
Pass anonymousId or onAnonymousId if you already have one.

Remote traits

After identify(), the SDK GETs /sdk/v1/identity and merges stored traits under the request. Disable:
Story and caveats: Target users.