Diagnosing missing session recordings
When a user asks "why wasn't this session recorded?" or "why don't I have any recordings?", follow this workflow to systematically diagnose the cause.
Available tools
Diagnostic signals
The PostHog SDK emits diagnostic properties on every event that explain the recording state. See the diagnostic signals reference for the full list.
The key signals are:
$has_recording— whether PostHog has a stored recording for this session$recording_status— SDK state:active,buffering,disabled,sampled,paused$session_recording_start_reason— why recording started or didn't$sdk_debug_recording_script_not_loaded— recorder script blocked (ad blocker)$sdk_debug_replay_*_trigger_status— trigger states (URL, event, linked flag)$replay_sample_rate— configured sample rate at capture time
Workflow
Step 1 — Check if the recording exists
If the user provides a session ID, first check whether a recording actually exists:
If this returns data, the recording exists — the issue is likely UI/filtering, not capture. If it returns 404, proceed to diagnose why.
Step 2 — Query diagnostic signals from events
Query the most recent event for the session to get SDK diagnostic properties:
Step 3 — Diagnose the verdict
Use the diagnosis logic reference to interpret the signals. The verdicts in priority order:
- Recording exists (
$has_recording = true) — recording is captured, issue is elsewhere - Ad blocked (script) (
$sdk_debug_recording_script_not_loaded = true) — browser extension blocking the recorder script from loading - Disabled (
$recording_status = 'disabled') — replay turned off in settings or SDK config - Trigger pending (trigger statuses are
trigger_pending, none matched) — recording gated on trigger that never fired - Sampled out (
$session_recording_start_reason = 'sampled_out') — excluded by sample rate - Buffering empty (
$recording_status = 'buffering', buffer length = 0, nothing flushed) — initialized but no snapshots produced - Flush blocked (buffer length climbs across events while
flushed_sizestays at 0) — snapshots are produced but the/s/ingestion endpoint is blocked by an ad blocker or misconfigured reverse proxy. Detecting this requires querying the trend across the session's events — see example 3 in examples.md - Unknown — signals don't match a known pattern
Step 4 — Check project-level settings (if no session ID)
When the user asks about recordings missing project-wide (no specific session), query for recent sessions to check the pattern:
Look for patterns:
- All
disabled→ replay is turned off in project settings - All
sampled_outwith low sample rate → sample rate too aggressive - All
script_not_loaded→ likely a CSP or deployment issue, not just one user's ad blocker - Mix of statuses → per-session issue, dig into specifics
Step 5 — Provide actionable recommendations
Based on the verdict, recommend specific actions:
Examples
See real-world diagnostic examples showing how signal combinations map to verdicts. Use these to calibrate your interpretation of query results.
Tips
- If
$lib_versionis very old, some diagnostic signals won't be present. Note this to the user — upgrading the SDK will provide better diagnostics. - A session might have events but no recording if the recording was deleted due to retention. Check the session's timestamp against the project's retention period.
- If
$has_recordingis true but the user can't find it, check if it's filtered out by duration, activity threshold, or playlist filters.
Related skills
diagnosing-sdk-health— an outdated SDK is a common root cause and blunts the diagnostic signalsfinding-sessions-to-watch— once capture works, pick the sessions worth watchinginvestigating-replay— analyze the recording once it exists


