Comment on page
TrackJS
Gain better error insights in TrackJS with Zipy session URLs
Ensure that TrackJS is properly installed and initialized within your application. This typically involves adding the TrackJS JavaScript snippet to your project's HTML file(s). Make sure to replace
<YOUR_TRACKJS_TOKEN>
with your actual TrackJS token.window.TrackJS && TrackJS.install({
token: "<YOUR_TRACKJS_TOKEN>"
});
To include the Zipy session URL in TrackJS exception reports, you need to fetch the current Zipy session URL using the
getCurrentSessionURL()
function provided by the Zipy SDK. Assign the retrieved URL to the zipySessionUrl
variable.const zipySessionUrl = window.zipy.getCurrentSessionURL();
In order to include the Zipy session URL in the TrackJS exception reports, you can leverage TrackJS's metadata feature. Use the
addMetadata()
function provided by TrackJS to associate the Zipy session URL with the "zipy_session_url"
key.TrackJS.addMetadata("zipy_session_url", zipySessionUrl);
When viewing a specific exception report in TrackJS, navigate to the "Metadata" section. Here, you should find the
"zipy_session_url"
key along with its corresponding value, which represents the Zipy session URL.
Last modified 3mo ago