- event-triggered interviews from the app’s existing
mixpanel.track(...)calls; - synced cohort prompts from Mixpanel cohorts imported into UserJourneys.
Wrap the exported Mixpanel client
Create the UserJourneys interviews client in the same module where you export your Mixpanel instance.analytics.ts
What UserJourneys receives
For event-triggered launches, UserJourneys receives only:- the event name;
- the
referenceIdconfigured on the SDK; - the primitive metadata returned by
mapTrackProperties; - app-level
metadata, if configured.
Sync Mixpanel cohorts
For cohort-based prompts, configure Mixpanel to send saved cohort membership to the UserJourneys Mixpanel cohort sync endpoint. UserJourneys stores active audience members and Study Launch Rules connect those audiences to studies. The mobile app does not call Mixpanel cohort APIs and does not carry private Mixpanel credentials. It only sends the public SDK key and the currentreferenceId when loading config.
See Audience prompts for the
runtime flow, and Study Launch Rules to connect a
synced audience to a study.
Mount the interview UI
Mount the host once near your app root. It owns the built-in prompt and the full-screen WebView.AppRoot.tsx