[Header Logging] Adds three Statsig Events to Header#71776
Open
hannahbergam wants to merge 3 commits intostagingfrom
Open
[Header Logging] Adds three Statsig Events to Header#71776hannahbergam wants to merge 3 commits intostagingfrom
hannahbergam wants to merge 3 commits intostagingfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds three analytics events to track user interactions with the header.
Events added
Header Lesson Name ClickedFires when a user clicks the lesson name link in the header.
Payload:
lessonNameHeader Progress Bubble Link ClickedFires when a user clicks a progress bubble to navigate to a level.
Payload:
previousLevelNumber,newLevelNumber,lessonNameHeader Unit Details ToggledFires when a user opens or closes the unit details popup (the "More"/"Less"
toggle button).
Payload:
open(boolean)Side quests
ProgressBubbleto Redux to read the current level number via thegetCurrentLevelselector, needed for thepreviousLevelNumberpayload. Added a namedexport class ProgressBubblealongside the connected default export so existing enzyme tests could continue using the unconnected class directly.ProgressBubbleTest.jsto import the unconnected{ProgressBubble}class, and updatedSublevelCardTest.jsto wrap renders in a ReduxProviderwith theprogressreducer registered.BubbleChoice.tsxthat was surfaced by the Redux connect wrapper:_.mapKeysreturnsDictionary<V>which TypeScript can't verify satisfies thelevelprop type, fixed with anas unknown as LevelWithProgresscast.Links
Testing story
Deployment notes
Privacy and security