Skip to content

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

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

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

Conversation

@hannahbergam
Copy link
Copy Markdown
Contributor

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 quests

  • Connected ProgressBubble to Redux to read the current level number via the getCurrentLevel selector, needed for the previousLevelNumber payload. Added a named export class ProgressBubble alongside the connected default export so existing enzyme tests could continue using the unconnected class directly.
  • Updated ProgressBubbleTest.js to import the unconnected {ProgressBubble} class, and updated SublevelCardTest.js to wrap renders in a Redux Provider with the progress reducer registered.
  • 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-30 at 2 45 29 PM Screenshot 2026-03-30 at 2 39 13 PM Screenshot 2026-03-30 at 2 35 07 PM Screenshot 2026-03-30 at 2 35 03 PM

Links

Testing story

Deployment notes

Privacy and security

@hannahbergam hannahbergam requested review from a team and dmcavoy March 30, 2026 21:51
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