API Reference
Error Monitoring
Getting Started
Welcome to Highlight
Integrations
Product Features
Session Replay
Tips
Menu

H.getSessionDetails()

This method is used to get the Highlight session URL. This method provides the same URL as H.getSessionUrl() but this also gives you a URL for the exact time (relative to the session recording) the method is called.

H.getSessionDetails().then(({ url, urlWithTimestamp }) => { console.log(url, urlWithTimestamp) })
Copy
Example

An error is thrown in your app and you want to save the Highlight session URL to another app (Mixpanel, Sentry, Amplitude, etc.).

If you just want a URL to the session, you can save url.

If you want a URL that sets the player to the time of when the error is called, you can save urlWithTimestamp.

// Some error handling hook otherLibrary.onError((error, context) => { H.getSessionDetails().then(({ url, urlWithTimestamp }) => { context.addMetadata({ highlightUrl: url, highlightDirectUrl: urlWithTimestamp, }) }) })
Copy