User Identification
UseZixflow.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.
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
WhentrackApplicationLifecycleEvents 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.
Anonymous Activity
BeforeZixflow.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.
- User opens the app → lifecycle / screen / track fire anonymously.
- User logs in →
Zixflow.identify({ userId, traits }). - History merges; later campaigns can use that combined activity.
Profile Attributes
After identify, update traits without repeating the full identify payload:Device Attributes
WithautoTrackDeviceAttributes: true (default), the SDK collects device details automatically. Add your own:
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).