Session Replay for Browser RUM
Session Replay enables you to track the user activity on web applications by recording interactions such as clicks, scrolls, and navigation. You can watch the session replay to:
- Optimise the user experience.
- Debug the errors for application crashes.
- Diagnose the reasons for application slowness.
Prerequisites
Ensure that the following conditions are met to use Session Replay:
- Controller >= 25.3
- JavaScript Agent = 25.5
Configure the JavaScript Agent
Configure Session Replay Using API Parameters
After this configuration, copy the instrumentation script and inject it in the JavaScript Agent.
(function(config){
// ... other JSAgent configs
config.sessionReplay = {
enabled: true,
sessionReplayUrlHttps: ""
// ... other optional configs
};
})(window["adrum-config"] || (window["adrum-config"] = {}));
Option | Type | Default | Description |
---|---|---|---|
enabled | boolean | – | |
sessionReplayUrlHttps | string | – | (Required) Endpoint where you want to send the captured session data (EUM cloud URL). |
packAssets | boolean | true | Packs the website assets like images, CSS, and fonts in the recorded. If this option is disabled, the recording only keeps the asset URLs which will fetch the assets at the time of replay. |
iframes | boolean | true | Records the same-origin iframes. |
imageB itmap | boolean | false | Enable this option to capture the canvas and video content for richer session replay. |
maskAllInputs | boolean | true | Masks all <input> fields to protect user-entered sensitive data. |
maskAllText | boolean | false | Masks all textual content across the page. |
sensitivityRules | Array | [] |
Fine-tunes element-level privacy masking. Follow the syntax to include
There are three rule types that applies to the information within specified CSS object in the recording:
There are three rule types that applies to the information within specified CSS object in the recording:
|
sessionReplayScriptUrl | string | (auto-derived) |
Overrides the default replay script location. Generally: |
enableReplayFolderVersioning | boolean | true | Uses agent version folders for compatibility. Set to false to serve from a flat structure (e.g., https://your-cdn.com/replay ). |
Enable Session Replay
View Session Replay
- Go to .
- Select the application for which you have enabled the Session Replay.
- Select Sessions.
- A play icon is displayed in Session Replay if the recording is available.
- Expand the Session Replay tab.
Session Replay highlights active segments of the sessions. A blank screen appears if there are no recordings or user activity.
You can adjust the playback speed.