Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: Add mode selection analytics tracking #614

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

ksharma-xyz
Copy link
Owner

@ksharma-xyz ksharma-xyz commented Feb 13, 2025

TL;DR

Added analytics tracking for mode selection events in trip planner

What changed?

  • Added new analytics events: ModeClickEvent and ModeSelectionDoneEvent
  • Integrated mode selection tracking in TimeTableViewModel
  • Added new UI event ModeClicked to handle mode selection visibility
  • Connected mode click analytics to the UI through TimeTableScreen and TimeTableDestination

How to test?

  1. Open trip planner
  2. Click on mode selection button
  3. Verify analytics event is fired with correct fromStopId, toStopId, and displayModeSelectionRow state
  4. Select/deselect different transport modes
  5. Verify mode selection analytics event fires with correct unselected modes

Why make this change?

To track user interaction with transport mode selection, providing insights into how users filter their journey planning options and which transport modes are commonly excluded from searches.

Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ksharma-xyz ksharma-xyz changed the title Add analytics to Mode click feature UI: Add mode selection analytics tracking Feb 13, 2025
@ksharma-xyz ksharma-xyz marked this pull request as ready for review February 13, 2025 20:43
Copy link
Owner Author

ksharma-xyz commented Feb 13, 2025

Merge activity

  • Feb 13, 3:43 PM EST: A user started a stack merge that includes this pull request via Graphite.
  • Feb 13, 3:44 PM EST: Graphite rebased this pull request as part of a merge.
  • Feb 13, 3:57 PM EST: A user merged this pull request with Graphite.

@ksharma-xyz ksharma-xyz force-pushed the 02-13-add_analytics_to_mode_click_feature branch from 585c9bc to 043f015 Compare February 13, 2025 20:43
@ksharma-xyz ksharma-xyz merged commit e763f3a into main Feb 13, 2025
2 checks passed
@ksharma-xyz ksharma-xyz deleted the 02-13-add_analytics_to_mode_click_feature branch February 13, 2025 20:57
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.

1 participant