Session replay
Session Replay captures the full DOM of your React app โ including Screeb interactions โ so you can replay sessions in the Screeb dashboard.
How it worksโ
Session Replay is built into @screeb/sdk-browser and runs automatically once enabled in your workspace settings. No additional React-specific code is needed.
Start / stop programmaticallyโ
import { useScreeb } from "@screeb/sdk-react";
const ReplayControls = () => {
const { sessionReplayStart, sessionReplayStop } = useScreeb();
return (
<>
<button onClick={() => sessionReplayStart()}>Start replay</button>
<button onClick={() => sessionReplayStop()}>Stop replay</button>
</>
);
};
Enable in workspace settingsโ
Session Replay must be enabled in your Screeb workspace settings before it will record sessions.
note
Session Replay is automatically disabled when Consent Exemption Mode is active.
See Privacy helpers to control how specific elements appear in recordings.