Added
Activity Flow: Customer interaction event tracking for mobile apps
1 days ago
The Activity Flow SDK for mobile now supports customer interaction event tracking (click, view, and impression) in React Native and Flutter apps. This aligns the mobile SDKs with the web script, so you can measure the full engagement funnel (rendered → seen → clicked) for any component in your app, not just page views and ad events.
What has changed?
Previously, mobile apps supported only page views and ad events. Customer interaction tracking was available on the web via the Activity Flow script.
Now, React Native and Flutter apps support click, view, and impression tracking.
React Native
- Click tracking: Use the new
useClickObserverhook to capture tap interactions. It returns anafHandlePresscallback to call in your press handler. - View tracking: Use the new
useViewObserverhook to detect when a component is at least 50% visible for 1 second. It returns anafViewRefthat can be attached to the target view. - Impression tracking: Use the new
useImpressionObserverhook to record when a component is rendered, regardless of viewport visibility. It re-fires only when the tracked attributes change.
Flutter
- Click tracking: Use the new
addClickListenerextension method on any widget to capture tap interactions. - View tracking: Use the new
addViewListenerextension method to fire a view event when the widget is at least 50% visible for 1 second (per IAB standards). It fires once per app session. - Impression tracking: Use the new
addImpressionListenerextension method to record when a widget is built and rendered in the widget tree.
What needs to be done?
To implement interaction event tracking in your app, see the related guides: