-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Add Performance Mark for Rokt Script Appended (SDKE-405) #50
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
feat: Add Performance Mark for Rokt Script Appended (SDKE-405) #50
Conversation
… for improved consistency
…erformance metrics
src/Rokt-Kit.js
Outdated
|
|
||
| target.appendChild(script); | ||
| captureTimings(PerformanceMarks.RoktScriptAppended); | ||
| captureTiming(mParticle.PerformanceMarkType.RoktScriptAppended); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is annoying, but in a world where a customer is hosting this on NPM, we'd need to check to ensure mParticle.PerformanceMarkType exists. This is an argument to just keep PerformanceMarks in this file to ensure it's always available.
cc @mattbodle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, makes sense, forgot about npm package. let me rollback changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
|
approved, but needs to wait until https://github.com/mParticle/mparticle-web-sdk/pull/1101/files is fully rolled out to all customers |
# [1.12.0](v1.11.0...v1.12.0) (2025-10-27) ### Features * Add Performance Mark for Rokt Script Appended (SDKE-405) ([#50](#50)) ([a181f54](a181f54))
Summary
This PR adds performance monitoring capabilities to the Rokt JavaScript integration kit by implementing a performance mark that tracks when the Rokt launcher script is successfully appended to the DOM. This enhancement enables better observability and performance tracking for Rokt integration initialization.
Changes Made:
Testing Plan