Skip to main content

User Identification

Use Zixflow.identify so events, devices, and messages attach to a person. Call it after login or whenever you know who is using the app — before sending targeted push.
Only one person is current at a time. Identifying someone else switches the active profile; later track / screen calls associate with the new person. Identifying also ties the current device token to that profile when push is set up.

Event Tracking

Events describe actions people take in your app. Use them to build segments, trigger campaigns, and measure product usage.
Name-only events are valid too:
Avoid invalid JSON values such as NaN or Infinity in properties — those fields may be dropped. Examples worth tracking: product views, add-to-cart, checkout, feature usage, content reads, form submissions.

Screen Tracking

Screen events record which views people visit. They update activity history and can drive segments and campaigns.

React Navigation

Lifecycle Events

When trackApplicationLifecycleEvents is enabled (default true), the SDK sends track events for common app lifecycle moments. You will see them as normal track events in Zixflow with lifecycle-specific properties (for example app version / build on install). Exact timing can differ slightly between iOS and Android; treat these as product analytics events you can segment and trigger on.
For crashes or other moments the SDK cannot observe, send your own track using the same naming style:

Anonymous Activity

Before Zixflow.identify, SDK calls (tracks, screens, lifecycle events) still run. They are associated with an anonymous device/session identity rather than a known person profile.
  • You generally will not find an “anonymous person” to message in the workspace the way you message identified profiles.
  • Anonymous activity alone does not enable personalized push for a known user.
  • When you identify, Zixflow reconciles prior anonymous activity with that person so earlier events can contribute to segments and campaign eligibility.
Typical flow:
  1. User opens the app → lifecycle / screen / track fire anonymously.
  2. User logs in → Zixflow.identify({ userId, traits }).
  3. History merges; later campaigns can use that combined activity.
Identify as soon as you know the user if you need messaging and attribution.

Profile Attributes

After identify, update traits without repeating the full identify payload:
Only the attributes you pass are upserted; other existing traits remain.

Device Attributes

With autoTrackDeviceAttributes: true (default), the SDK collects device details automatically. Add your own:
Prefer profile attributes for values that should outlive a single install/token.

Device Token

Usually the push module handles tokens. To attach a token yourself:

User Logout

clearIdentify also clears cached location used for enrichment so the next session does not inherit the previous person’s coordinates (Location Tracking).