posthog-diagnosing-missing-recordings
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "posthog-diagnosing-missing-recordings" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9eeb434469c9840bfa0a108648a9459ad23d18ad554ea0a56729508629873bc7. Verify the upstream source and version against https://skills.sh/posthog/ai-plugin/diagnosing-missing-recordings before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skills.sh
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Diagnose why session recordings are missing or not captured. For questions about why a specific session has no replay, a recording didn’t appear, or when troubleshooting capture issues for a session ID or across a project. Covers SDK diagnostic signals, project settings, sampling, trigger conditions, ad blockers, and quota/billing scenarios.
Introduction source: third_party · posthog · 1.0.0 Reference
SkillPi interpretation
- Tasks
- 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.
- Testing
- Not tested
Browse files
Frontmatter
name: diagnosing-missing-recordings
description: >
Diagnoses why a session recording is missing or was not captured.
Use when a user asks why a session has no replay, why recordings aren't appearing,
or wants to troubleshoot session replay capture issues for a specific session ID
or across their project. Covers SDK diagnostic signals, project settings,
sampling, triggers, ad blockers, and quota/billing scenarios.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
| Tool | Purpose |
|---|---|
posthog:execute-sql |
Query session event properties for diagnostic signals |
posthog:session-recording-get |
Check if a recording actually exists for the session |
posthog:query-session-recordings-list |
Search 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 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:
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:
- 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:
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_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:
| Verdict | Recommendation |
|---|---|
| Ad blocked | User's browser extension is blocking rrweb. Suggest trying without ad blocker, or using a proxy/custom domain for the recorder script |
| Disabled | Check project replay settings — recording may be turned off. Link to Settings > Session replay |
| Trigger pending | The configured trigger (URL pattern, event, or feature flag) never matched. Review trigger configuration |
| Sampled out | Increase the sample rate in project settings, or use a trigger to guarantee capture for important sessions |
| Buffering empty | Page closed before first snapshot. Common with very short sessions or single-page navigations. Consider lowering minimum duration |
| Unknown | Direct 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_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.
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供系统化的会话录制缺失诊断流程
- 覆盖多种常见原因(ad blocker、采样、触发器、配置等)
- 面向 PostHog 用户的实用技术排查工具
Highlights
- 触发描述清晰完整,覆盖多种用户提问场景
- 边界定义明确,专注于会话录制诊断问题
Highlights
- 诊断流程步骤清晰(Step 1-5),逻辑完整
- 提供完整的 SQL 查询示例和工具调用模板
- 包含诊断信号优先级和 verdict 判断逻辑
Areas to improve
-
缺少 When to Use 显式章节 Reported severity: Minor
文档结构良好但未显式标注 When to Use 章节
Recommendation: 可在文档开头添加显式的 When to Use 章节以增强可读性
Highlights
- 工具调用参数正确,SQL 查询条件合理
- 覆盖主要异常场景并提供 actionable recommendations
- 诊断信号解释完整,包含优先级排序
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- posthog.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.