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

Add PWA analytics events #1208

Open
5 tasks
Tracked by #1197
annarhughes opened this issue Nov 19, 2024 · 0 comments
Open
5 tasks
Tracked by #1197

Add PWA analytics events #1208

annarhughes opened this issue Nov 19, 2024 · 0 comments
Labels
complexity: moderate Time needed to do this ticket will be moderate e.g. 1-2 days feature/enhancement New feature or request first-timers-friendly Appropriate for first time contributors. good first issue Good for newcomers state: blocked Task is blocked.
Milestone

Comments

@annarhughes
Copy link
Member

annarhughes commented Nov 19, 2024

Overview

This task is subsequent to the issue #1207 and #1209 where new PWA install components were added. This task involves adding analytics events to our new PWA install components and functionality. See #1207 for context.

We already have a widely used function logEvent() in utils/logEvent.ts and pattern for passing event parameters using logEvent(EVENT_NAME, userEventData) which includes relevent user parameters to every event, alongside any additional event-specific parameters e.g. in this case we'll include browser as a parameter.

To test that analytics events are being triggered, check the console log where events should be shown.

Action Items

  • Add an analytics event for user clicked install button using our existing logEvent() function and new PWA_INSTALL_CLICKED event. Send userEventData params with the event. Send additional browser property in the event params.
  • Add an analytics event for user clicked not now button using our existing logEvent() function and new PWA_DISMISS_CLICKED event. Send userEventData params with the event. Send additional browser param.
  • Add an analytics event for app install, using our existing logEvent() function and new PWA_INSTALLED event. Send userEventData params with the event. Send additional browser param.
  • Add an analytics event for user viewed desktop banner using our existing logEvent() function and new PWA_DESKTOP_BANNER_VIEWED event. Send userEventData params with the event. Send additional browser param. Send additional origin_page: "courses" param.
  • [Bonus] Complete the next issue for this epic - Add PWA detection analytics event #1211
@annarhughes annarhughes added feature/enhancement New feature or request good first issue Good for newcomers complexity: moderate Time needed to do this ticket will be moderate e.g. 1-2 days first-timers-friendly Appropriate for first time contributors. state: blocked Task is blocked. labels Nov 19, 2024
@annarhughes annarhughes changed the title Add analytics events for PWA install and dismiss Add PWA analytics events Nov 19, 2024
@kyleecodes kyleecodes added this to the 02. Roadmaps milestone Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: moderate Time needed to do this ticket will be moderate e.g. 1-2 days feature/enhancement New feature or request first-timers-friendly Appropriate for first time contributors. good first issue Good for newcomers state: blocked Task is blocked.
Projects
None yet
Development

No branches or pull requests

2 participants