This document outlines the new methods available in the MoEngage Android SDK to report impressions and clicks for experiences fetched using the MoEngage Personalize API.
The SDK provides helper APIs to track shown events; please refer to the API documentation for more details.Impressions should be reported when an experience is visually presented to the user.
To report an impression for a single experience, pass the experience_context of the experience as a map.experience_context is a JSON object that is returned as part of the response of the Personalize API request.
The SDK provides helper APIs to track clicked events; refer to the API documentation for more details.Clicked events should be reported when a user clicks on any element that has been personalized using the response of the Personalize API.
You can optionally include a b_id key in the experience_context object to provide additional context about the click. Its value should describe the specific component or interaction within the experience that was clicked. This is particularly useful for experiences composed of multiple interactive elements, helping to distinguish between clicks on different parts of the same overall experience.