Event Tracking
User Events
Prerequisites
Tracking needs to be enabled during SDK initialization for this feature to work.
Set CastledConfigs.enableTracking
to true
to start tracking.
CastledNotifications.logEvent
can be used to log user events within your app. Properties associated with the events is passed to the method as a flatmap.
These events can be used as the trigger events for your push, inapp and inbox campaigns or workflows. Also they can be redirected to your data warehouse, which can be used for analytics or creating user segments for future campaigns.