Session replay
Session Replay captures the full DOM of your Svelte 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 Svelte-specific code is needed.
Start / stop programmaticallyโ
You can start and stop Session Replay from your Svelte components:
<script lang="ts">
import { useScreeb } from "@screeb/sdk-svelte";
const { sessionReplayStart, sessionReplayStop } = useScreeb();
</script>
<button on:click="sessionReplayStart">Start replay</button>
<button on:click="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.