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

Analytics: Rename transportMode to themeId in theme selection event #593

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

ksharma-xyz
Copy link
Owner

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

TL;DR

Updated theme selection analytics to track theme IDs instead of transport modes

What changed?

  • Renamed transportMode parameter to themeId in ThemeSelectedEvent
  • Simplified theme selection tracking by removing transport mode conversion
  • Updated corresponding test cases to reflect the new parameter name

How to test?

  1. Navigate to theme selection screen
  2. Select different themes
  3. Verify analytics events are logged with theme IDs
  4. Run unit tests to confirm analytics tracking behavior

Why make this change?

Tracking raw theme IDs provides more accurate analytics data compared to converting them to transport modes, which may not always have a direct mapping. This change simplifies the analytics implementation and makes it more maintainable.

@ksharma-xyz ksharma-xyz changed the title Rename themeseletion analytics param name Analytics: Rename transportMode to themeId in theme selection event Feb 7, 2025
Copy link
Owner Author

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

@ksharma-xyz ksharma-xyz marked this pull request as ready for review February 7, 2025 06:52
@ksharma-xyz ksharma-xyz force-pushed the 02-07-rename_themeseletion_analytics_param_name branch from ed0d1e3 to 14e3766 Compare February 10, 2025 08:56
Copy link
Owner Author

ksharma-xyz commented Feb 10, 2025

Merge activity

  • Feb 10, 4:08 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Feb 10, 4:08 AM EST: A user merged this pull request with Graphite.

@ksharma-xyz ksharma-xyz merged commit a5c1b99 into main Feb 10, 2025
2 checks passed
@ksharma-xyz ksharma-xyz deleted the 02-07-rename_themeseletion_analytics_param_name branch February 10, 2025 09: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.

1 participant