Skip to content

[Header Logging] Adds three Statsig Events to Header#71776

Open
hannahbergam wants to merge 4 commits intostagingfrom
hbergam/statsig-logging-bubbles
Open

[Header Logging] Adds three Statsig Events to Header#71776
hannahbergam wants to merge 4 commits intostagingfrom
hbergam/statsig-logging-bubbles

Conversation

@hannahbergam
Copy link
Copy Markdown
Contributor

@hannahbergam hannahbergam commented Mar 30, 2026

Adds three analytics events to track user interactions with the header.

Events added

Header Lesson Name Clicked
Fires when a user clicks the lesson name link in the header.
Payload: lessonName

Header Progress Bubble Link Clicked
Fires when a user clicks a progress bubble to navigate to a level.
Payload: previousLevelNumber, newLevelNumber, lessonName

Header Unit Details Toggled
Fires when a user opens or closes the unit details popup (the "More"/"Less" toggle button).
Payload: open (boolean)

Side quest

  • Fixed a pre-existing TypeScript error in BubbleChoice.tsx that was surfaced by the Redux connect wrapper: _.mapKeys returns Dictionary<V> which TypeScript can't verify satisfies the level prop type, fixed with an as unknown as LevelWithProgress cast.
Screenshot 2026-03-31 at 12 09 46 PM Screenshot 2026-03-31 at 12 09 25 PM Screenshot 2026-03-31 at 12 09 10 PM Screenshot 2026-03-31 at 12 09 02 PM

Links

Testing story

Deployment notes

Privacy and security

@hannahbergam hannahbergam requested review from a team and dmcavoy March 30, 2026 21:51
};

onLessonNameClick = () => {
analyticsReporter.sendEvent(EVENTS.HEADER_LESSON_NAME_CLICKED, {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For other statsig reports, I think product has requested appName and levelPath. Curious if @dmcavoy would want to include here as well. And if so, maybe we don't need lessonName?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes definitely curious for her feedback on these various events- I know we chatted some in a private DM Dani so would love a sign off here or a request for other attributes if relevant!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if she just wants a signal on how often these features are clicked, if levelPath would be sufficient since then she would know the course name, and bubble number (to keep changes minimized).

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