Identify
Identifying tells Galinum which of your users this browser session belongs to. Either passuserId (and optionally traits) to the provider — the SDK
identifies automatically whenever it changes — or call identify yourself:
reset() so tracking and
message delivery stop until the next identify.
Track
track records a behavioral event — the substrate your agent analyzes to
decide who sees which campaign:
identify are ignored (and
warned about in development).
Auto-collected context
Like other analytics SDKs, Galinum automatically collects device and demographic context. Auto-collected keys are$-prefixed so they can never
collide with your own traits, and your explicit values always win on
collisions.
Attached to the user on identify:
Attached to every event on
track:
Geo traits are resolved server-side from the request IP, so the browser can’t
spoof them via traits.
Opting out
Disable all automatic collection with a single prop:autoContext={false} the SDK sends only the traits and props you pass
explicitly. (Server-side geo enrichment still applies, since it comes from the
request itself.)