Cordova
Callbacks
Configure navigation, analytics, and experience callbacks
The Userpilot SDK provides three types of callbacks to help you handle navigation, analytics, and experience lifecycle events within your app.
Analytics Listener is called when an event is triggered by the client app.
Params:
Analytics Listener
Called when an analytics event is triggered by the Userpilot SDK.
Use this to mirror or log SDK-level events into your analytics system.
Params:
Experience Listener
Called when an experience or its step changes state. Includes two callback types:
onExperienceStateChanged
Triggered when the overall state of an experience changes.
onExperienceStepStateChanged
Triggered when the state of a specific step within an experience changes.
Both callbacks are sent under the same event name: UserpilotExperienceEvent