Access the URL of the associated LogRocket session.

Every user session is associated with a unique session URL. See What defines a session? for information on what determines a unique session.

Use LogRocket.getSessionURL() to fetch the URL that can be attached to crash reports and support tickets. See Integration for more details.

LogRocket.getSessionURL(sessionURL => {


Using .sessionURL directly

You can also use LogRocket.sessionURL directly, but this might return null in cases when the LogRocket script has not been fully loaded. Integrations that require synchronous execution can use this API. For example:

Sentry.configureScope(scope => {
  scope.setExtra("sessionURL", LogRocket.sessionURL);