diff --git a/pages/docs/tracking-methods/sdks/javascript.mdx b/pages/docs/tracking-methods/sdks/javascript.mdx index c4c8f87ee3..2f8d00a0d5 100644 --- a/pages/docs/tracking-methods/sdks/javascript.mdx +++ b/pages/docs/tracking-methods/sdks/javascript.mdx @@ -808,7 +808,6 @@ mixpanel.stop_session_recording() ``` This will have no effect if there is no replay data collection in progress. - #### Get replay properties Use this method to get properties used to identify a replay that is taking place. Add the properties from this method to any events sent to Mixpanel that are not coming from the SDK (e.g. from a [CDP library](/docs/session-replay/session-replay-web#can-i-use-session-replay-with-a-cdp)). @@ -821,6 +820,16 @@ mixpanel.get_session_recording_properties() ``` Returns an empty object if there is no Replay in progress. +#### Get replay URL + +Returns a URL linking to the current replay in the Mixpanel UI. This URL is accessible only by authenticated users with the necessary permissions for the Mixpanel project. This is useful for debugging purposes or for adding metadata to other platforms, such as support tickets. + +```javascript +mixpanel.get_session_replay_url() +// https://mixpanel.com/projects/replay-redirect?replay_id=19307d78e24394fe15-0cd98d8fd9ad1d-1f525636-4b9600-19307d78e28194fe15&distinct_id=123&token=my-project-token +``` +Returns null if there is no Replay in progress. + #### Example Scenarios | Scenario | Guidance |