Enable and Use Analytics on Android
Enable analytics in your mobile app using MarketingCloudConfig.Builder() to set the necessary parameters for tracking push notifications, inbox messages, and Einstein Recommendations events.
- To implement analytics in your mobile app, set the
analyticsEnabledparameter totrue. - To implement web and mobile analytics in your mobile app via Einstein Recommendations, set the
piAnalyticsEnabledparameter totrue.
Configure the SDK with analytics enabled during initialization.
For SDK version 10 or higher, use this example.
For SDK version 8 or 9, use this example.
For SDK version 7, use this example.
Integrate Einstein Recommendations to attribute collected analytics to specific users and track cart contents, conversions, page views, and inbox message opens. Configure the PIID identifier and use the integration methods to connect your mobile app with Einstein Recommendations.