Skip to content

RND-2072: analytics - #3033

Draft
StylianosGakis wants to merge 7 commits into
developfrom
feature/analytics
Draft

RND-2072: analytics#3033
StylianosGakis wants to merge 7 commits into
developfrom
feature/analytics

Conversation

@StylianosGakis

Copy link
Copy Markdown
Member

Introduce a shared CrossSellImpressionTracker (fun interface + Metro
@ContributesBinding) in ui/cross-sells that fires the Firebase
"cross_sell_shown" event once per offer, with user_flow, cross_sell_type,
offer_id and (for the after-flow surface) flow_source.

Add the crossSellSheetShown helper (mirrors the sheet's addon-over-cross-sell
render priority) and an optional per-item onCrossSellImpression callback on
CrossSellsSection, backed by Modifier.onVisibilityChanged so inline lists can
report impressions on scroll-into-view. The callback defaults to null, so the
sheets that reuse CrossSellsSection are unaffected.
Fire an impression per offer when the smart cross-sell sheet becomes visible,
with user_flow=smart_x_sell and flow_source mapped from the CrossSellInfoType
of the flow the member just completed. Add a presenter test asserting the
per-offer events.
Track both home cross-sell surfaces distinctly: the toolbar bottom sheet as
user_flow=insurance_card (per offer when it becomes visible), and the inline
home sections (Offers, Discover insurances, Addons) as user_flow=home_screen
via onVisibilityChanged, deduped per screen visit in the presenter.
Report an impression per offer as it scrolls into view on the insurances tab
(user_flow=insurance_screen), covering both the cross-sell list and the addon
banners (identified by flow type, since addon banners carry no per-offer id).
Impressions are deduped per screen visit in the presenter.
Match the field name used on web (and in the tracking registry) so the column
lines up across platforms. Only the emitted key changes; the internal enum
stays CrossSellType.
For list add-on banners (insurances tab, inline home) the offer_id is the
add-on flow type; lowercase it so it reads as snake_case like the other enum
values in the registry (app_travel_plus_sell_only, app_car_plus).
@StylianosGakis StylianosGakis changed the title Feature: analytics RND-2072: analytics Aug 3, 2026
@notion-workspace

Copy link
Copy Markdown

@StylianosGakis
StylianosGakis marked this pull request as ready for review August 3, 2026 10:04
@StylianosGakis
StylianosGakis requested a review from a team as a code owner August 3, 2026 10:04
@StylianosGakis
StylianosGakis marked this pull request as draft August 3, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants