Analytics
MealzUIKit bridges analytics events from the WebView (window.mealz.analytics.eventSent$) to native via an analytics event listener.
import ai.mealz.uikit.config.SdkConfiguration
import ai.mealz.uikit.model.AnalyticsEvent
SdkConfiguration.setAnalyticsEventListener { event: AnalyticsEvent ->
// event.name e.g. "recipe.display"
// event.path WebView path
// event.props map of JSON values
}
Event catalog
The full list of event names and when they fire is documented in Web SSR:
- Analytics (SSR)
- Shared property reference: see the event properties section on that page
Mobile and SSR share the same event vocabulary because UIKit journeys are SSR-driven.