Logging impressions and clicks
Logging in-app message impressions and clicks is performed automatically when you use the automaticallyDisplayInAppMessages
or showInAppMessage
.
If you do not use either method and manually display the message using your own UI code then use the following methods to log analytics:
1
2
3
4
// Registers that a user has viewed an in-app message with the Braze server.
braze.logInAppMessageImpression(message);
// Registers that a user has clicked on an in-app message with the Braze server.
braze.logInAppMessageButtonClick(button, message);