Skip to content

Session Replay quickstart

By the end of this guide you’ll have replay activated for any session that throws an error, and you’ll have watched a recorded session play back in the dashboard.

  • A RUM application set up — see RUM quickstart.
  • The SDK installed in your app.

1. Set privacy defaults on the application

Section titled “1. Set privacy defaults on the application”
  1. RUM → Applications → your app → Settings → Privacy.

  2. Enable Mask inputs. (Almost always a yes — your customers shouldn’t see other customers’ typed passwords.)

  3. Enable Mask text if your app displays sensitive content (financial info, PII).

  4. Save.

Replay only activates when a session matches a filter with capture_replay: true.

Terminal window
curl -X POST "https://api.siteqwality.com/rum/$APP_ID/filters" \
-H "Authorization: Bearer $SITEQWALITY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Errored sessions — replay",
"filter_type": "error",
"conditions": {},
"capture_replay": true,
"enabled": true,
"priority": 50
}'

The SDK fetches the filter list at session start; new sessions begin honoring the filter immediately.

Open your app, do something that throws an error in production code. (Or temporarily add throw new Error('replay test') to a button handler and click it.)

The SDK detects the error, activates the replay recorder, and starts shipping segments within a few seconds.

  1. RUM → Sessions — find your session (it has the error indicator).

  2. Click the session, then click Replay at the top.

  3. The video player loads. Hit play; scrub the timeline; jump to the error using the marker on the timeline.

Before rolling out replay broadly:

  • Inputs are masked (mask_inputs: true) unless you have a strong reason to capture them.
  • Sensitive text (PII, financial figures, health info) is wrapped in <div class="rr-mask"> or behind a mask_text: true global setting.
  • Pages with payment forms have <div class="rr-block"> on the form (don’t record at all).
  • Your privacy policy mentions session replay if you collect from EU/CA customers (GDPR/CCPA).
  • Replay-enabled session filters are scoped — don’t replay every session, just interesting ones.