[Image] Add analytics events to explore image modal#3815
Merged
SonicScrewdriver merged 7 commits intoJul 7, 2026
Conversation
…lytics events to explore image modal Added an open and closed event to track how often the modal is used and how long users linger on the modal Issue: https://khanacademy.atlassian.net/browse/LEMS-4280 Test plan: - Verified that CEDAR is firing the event using the networks tool of the chrome developer tab in webapp locally after publishing the event-schemas and perseus PR
Contributor
|
Size Change: +83 B (+0.02%) Total Size: 517 kB 📦 View Changed
ℹ️ View Unchanged
|
…: Adding analytics events to explore image modal for tracking amount of uses and how long users linger on the widget
…ain' into LEMS-4280/collect-data-about-long-description-usage
Contributor
npm Snapshot: PublishedGood news!! We've packaged up the latest commit from this PR (8ccbc0e) and published it to npm. You Example: pnpm add @khanacademy/perseus@PR3815If you are working in Khan Academy's frontend, you can run the below command. ./dev/tools/bump_perseus_version.ts -t PR3815If you are working in Khan Academy's webapp, you can run the below command. ./dev/tools/bump_perseus_version.js -t PR3815 |
catandthemachines
approved these changes
Jun 25, 2026
|
|
||
| React.useEffect(() => { | ||
| const openedAt = Date.now(); | ||
| return () => { |
Member
There was a problem hiding this comment.
Ooo I love how simple and clean this is!
Merged
SonicScrewdriver
added a commit
that referenced
this pull request
Jul 7, 2026
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @khanacademy/math-input@26.5.0 ### Minor Changes - [#3866](#3866) [`9ae69b7`](9ae69b7) Thanks [@SonicScrewdriver](https://github.com/SonicScrewdriver)! - Syncing deps to newest major versions of Wonder Blocks ### Patch Changes - Updated dependencies \[[`5e27b11`](5e27b11)]: - @khanacademy/perseus-core@30.1.1 - @khanacademy/keypad-context@3.2.72 ## @khanacademy/perseus@79.2.0 ### Minor Changes - [#3866](#3866) [`9ae69b7`](9ae69b7) Thanks [@SonicScrewdriver](https://github.com/SonicScrewdriver)! - Syncing deps to newest major versions of Wonder Blocks ### Patch Changes - [#3815](#3815) [`5e27b11`](5e27b11) Thanks [@Evelas78](https://github.com/Evelas78)! - Adding analytics events to explore image modal for tracking amount of uses and how long users linger on the widget - Updated dependencies \[[`9ae69b7`](9ae69b7), [`5e27b11`](5e27b11)]: - @khanacademy/math-input@26.5.0 - @khanacademy/perseus-core@30.1.1 - @khanacademy/keypad-context@3.2.72 - @khanacademy/kmath@2.4.31 - @khanacademy/perseus-linter@5.1.12 - @khanacademy/perseus-score@8.12.4 ## @khanacademy/perseus-editor@34.2.0 ### Minor Changes - [#3866](#3866) [`9ae69b7`](9ae69b7) Thanks [@SonicScrewdriver](https://github.com/SonicScrewdriver)! - Syncing deps to newest major versions of Wonder Blocks ### Patch Changes - [#3863](#3863) [`9ef574f`](9ef574f) Thanks [@anakaren-rojas](https://github.com/anakaren-rojas)! - Enables adding calc variant field into editor json - Updated dependencies \[[`9ae69b7`](9ae69b7), [`5e27b11`](5e27b11)]: - @khanacademy/math-input@26.5.0 - @khanacademy/perseus@79.2.0 - @khanacademy/perseus-core@30.1.1 - @khanacademy/keypad-context@3.2.72 - @khanacademy/kmath@2.4.31 - @khanacademy/perseus-linter@5.1.12 ## @khanacademy/keypad-context@3.2.72 ### Patch Changes - Updated dependencies \[[`5e27b11`](5e27b11)]: - @khanacademy/perseus-core@30.1.1 ## @khanacademy/kmath@2.4.31 ### Patch Changes - Updated dependencies \[[`5e27b11`](5e27b11)]: - @khanacademy/perseus-core@30.1.1 ## @khanacademy/perseus-core@30.1.1 ### Patch Changes - [#3815](#3815) [`5e27b11`](5e27b11) Thanks [@Evelas78](https://github.com/Evelas78)! - Adding analytics events to explore image modal for tracking amount of uses and how long users linger on the widget ## @khanacademy/perseus-linter@5.1.12 ### Patch Changes - Updated dependencies \[[`5e27b11`](5e27b11)]: - @khanacademy/perseus-core@30.1.1 - @khanacademy/kmath@2.4.31 ## @khanacademy/perseus-score@8.12.4 ### Patch Changes - Updated dependencies \[[`5e27b11`](5e27b11)]: - @khanacademy/perseus-core@30.1.1 - @khanacademy/kmath@2.4.31
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.
Summary:
Added an open and closed event to track how often the modal is used and how long users linger on the modal
Issue: https://khanacademy.atlassian.net/browse/LEMS-4280
Test plan: