Event Tracking

MobilePush SDK versions 8 and later introduce new methods that you can use to track analytical events related to end-user interactions in your app. You can use these events to orchestrate journeys or trigger in-app messages in response to real-time user activity.

To implement event tracking, make sure that your app is running version 8 or later of the MobilePush SDK. For information about migrating to a newer version of the SDK, see the migration guides for iOS and Android.

A tracked event contains the event name and optional event attributes. Your app builds an event object according to your business requirements and then sends it to the MobilePush SDK. When you define these events, make sure that the events implemented in the SDK are identical to the events defined in Marketing Cloud Engagement.

To create an event in an Android app, use this example.

To create an event in an iOS app, use this example.

To track an event in an Android app, use this example.

To track an event in an iOS app, use this example.