diagnosing-missing-recordings

작성자: posthog

사용자가 "이 세션이 왜 녹화되지 않았나요?" 또는 "녹화된 파일이 하나도 없는데요?"라고 물을 때, 이 워크플로우를 따라 체계적으로 원인을 진단하세요.

npx skills add https://github.com/posthog/skills --skill diagnosing-missing-recordings

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

ToolPurpose
posthog:execute-sqlQuery session event properties for diagnostic signals
posthog:session-recording-getCheck if a recording actually exists for the session
posthog:query-session-recordings-listSearch for recordings matching criteria

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:

posthog:session-recording-get
{
  "id": "<session_id>"
}

If it returns found: false with reason recording_not_found, no recording exists for this session in the active project. Proceed to Step 2 to diagnose why. If it returns recording metadata, the recording exists — the issue is likely UI/filtering, not capture. Any other error (for example, a missing project or a permission error) is not evidence about the recording. Fix that error first.

Step 2 — Query diagnostic signals from events

Query the most recent event for the session to get SDK diagnostic properties:

posthog:execute-sql
SELECT
    properties.$has_recording AS has_recording,
    properties.$recording_status AS recording_status,
    properties.$session_recording_start_reason AS start_reason,
    properties.$sdk_debug_recording_script_not_loaded AS script_not_loaded,
    properties.$sdk_debug_replay_url_trigger_status AS url_trigger,
    properties.$sdk_debug_replay_event_trigger_status AS event_trigger,
    properties.$sdk_debug_replay_linked_flag_trigger_status AS flag_trigger,
    properties.$replay_sample_rate AS sample_rate,
    properties.$sdk_debug_replay_internal_buffer_length AS buffer_length,
    properties.$sdk_debug_replay_flushed_size AS flushed_size,
    properties.$lib AS sdk_library,
    properties.$lib_version AS sdk_version
FROM events
WHERE $session_id = '<session_id>'
ORDER BY timestamp DESC
LIMIT 1

Step 3 — Diagnose the verdict

Use the diagnosis logic reference to interpret the signals. The verdicts in priority order:

  1. Recording exists ($has_recording = true) — recording is captured, issue is elsewhere
  2. Ad blocked (script) ($sdk_debug_recording_script_not_loaded = true) — browser extension blocking the recorder script from loading
  3. Disabled ($recording_status = 'disabled') — replay turned off in settings or SDK config
  4. Trigger pending (trigger statuses are trigger_pending, none matched) — recording gated on trigger that never fired
  5. Sampled out ($session_recording_start_reason = 'sampled_out') — excluded by sample rate
  6. Buffering empty ($recording_status = 'buffering', buffer length = 0, nothing flushed) — initialized but no snapshots produced
  7. Flush blocked (buffer length climbs across events while flushed_size stays 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
  8. 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:

posthog:execute-sql
SELECT
    $session_id,
    properties.$recording_status AS recording_status,
    properties.$session_recording_start_reason AS start_reason,
    properties.$sdk_debug_recording_script_not_loaded AS script_not_loaded,
    properties.$replay_sample_rate AS sample_rate
FROM events
WHERE event = '$pageview'
    AND timestamp > now() - INTERVAL 1 DAY
GROUP BY
    $session_id,
    recording_status,
    start_reason,
    script_not_loaded,
    sample_rate
ORDER BY max(timestamp) DESC
LIMIT 10

Look for patterns:

  • All disabled → replay is turned off in project settings
  • All sampled_out with 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:

VerdictRecommendation
Ad blockedUser's browser extension is blocking rrweb. Suggest trying without ad blocker, or using a proxy/custom domain for the recorder script
DisabledCheck project replay settings — recording may be turned off. Link to Settings > Session replay
Trigger pendingThe configured trigger (URL pattern, event, or feature flag) never matched. Review trigger configuration
Sampled outIncrease the sample rate in project settings, or use a trigger to guarantee capture for important sessions
Buffering emptyPage closed before first snapshot. Common with very short sessions or single-page navigations. Consider lowering minimum duration
UnknownDirect user to troubleshooting docs: https://posthog.com/docs/session-replay/troubleshooting

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_version is 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_recording is 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 signals
  • finding-sessions-to-watch — once capture works, pick the sessions worth watching
  • investigating-replay — analyze the recording once it exists

posthog의 다른 스킬

error-tracking-hono
posthog
PostHog 오류 추적 for Hono
tuning-incremental-sync-config
posthog
동기화의 구성은 ExternalDataSchema에 저장되며, external-data-schemas-partial-update를 통해 언제든지 변경할 수 있습니다. 대부분의 변경은 비파괴적이며(다음 동기화에 적용됨), 일부 변경(sync_type 전환, 기본 키 변경)은 동기화된 데이터 손상을 방지하기 위해 신중한 처리가 필요합니다.
playwright-test
posthog
플레이라이트 테스트를 작성하고, 실행이 잘 되며, 불안정하지 않도록 하세요.
error-tracking-ruby
posthog
PostHog Ruby 오류 추적
authoring-log-alerts
posthog
PostHog 프로젝트의 서비스에 유용하고 노이즈가 적은 로그 알림을 작성합니다. 사용자가 로그에 대한 알림 설정을 요청하거나 추가해야 할 알림을 제안할 때 사용하세요.
making-scenes-tab-aware
posthog
Guides converting PostHog frontend scenes to be tab aware for internal scene tabs. Use when adding or refactoring a `SceneExport` scene, fixing state leaking…
posthog-survey-creator
posthog
PostHog에서 안내 대화를 통해 설문조사를 생성하고 구성합니다. 사용자가 설문조사를 만들거나, 사용자 피드백을 수집하거나, 실행하려 할 때 이 스킬을 사용하세요.
authoring-scouts
posthog
PostHog Signals 스카우트를 작성, 편집 및 조정하는 방법 — 프로젝트를 스캔하고 Signals 인박스에 보고서를 작성하는 예약된 에이전트입니다. 사용자가…