Implement event logging for the Mobile Page Previews experiment (T418812) so we can measure the feature's impact and evaluate success criteria.
Note: we also need to write the spec and then code the implementation against the spec
=== Context
This is an A/B test delivered via the Test Kitchen framework. We need instrumentation to track the user funnel and support the experiment analysis.
==== Metrics:
Primary: Retention
Secondary:
- Number of distinct pages interacted with per session
- Number of clicks on blue links per session (if it's significantly easier to instrument than the above)
Curiosity:
- Pageviews
- Session length
=== Funnel events
https://www.figma.com/design/HTqNO7VJ81qeJYzvHbcoJY/Minerva-Page-previews?node-id=46-530&p=f&t=CUsv3O7ZdrqlTE5j-0
We probably want to capture the following events as they happen:
- Link tap (qualifying link tapped, preview flow initiated)
- Preview shown (bottom sheet opened with content visible)
- Article opened (reader tapped "Open article" to navigate)
- Preview dismissed (reader closed the sheet without navigating — via X, outside tap, or back button)
Additional signals to consider:
- Time spent viewing the preview before action (open or dismiss)
- Whether the previewed article had an image or not
- API latency (time from tap to content rendered)
- API errors (request failed or timed out)
Other things we need to capture?
-link clicks in the control group (click throughs to the target page)
-Jennifer's green light
-do gud dezign