Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(replay): clarify capture diagnostics and replay settings copy (#86162)

posthog[bot]674b7cb5fec2
diff --git a/frontend/src/lib/components/IngestionControls/triggers/UrlConfig.tsx b/frontend/src/lib/components/IngestionControls/triggers/UrlConfig.tsx
index db63578d427a..53803c55dc69 100644
--- a/frontend/src/lib/components/IngestionControls/triggers/UrlConfig.tsx
+++ b/frontend/src/lib/components/IngestionControls/triggers/UrlConfig.tsx
@@ -9,7 +9,6 @@ import { TeamMembershipLevel } from 'lib/constants'
import { LemonField } from 'lib/lemon-ui/LemonField'
import { cn } from 'lib/utils/css-classes'
import { AiRegexHelper, AiRegexHelperButton } from 'scenes/session-recordings/components/AiRegexHelper/AiRegexHelper'
-import { Since } from 'scenes/settings/environment/SessionRecordingSettings'
import { ingestionControlsLogic } from '../ingestionControlsLogic'
import { UrlTriggerConfig } from '../types'
@@ -25,6 +24,7 @@ export function UrlConfig({
checkUrl,
checkUrlResults,
setCheckUrl,
+ titleBadge,
...props
}: {
logic: LogicWrapper
@@ -33,6 +33,7 @@ export function UrlConfig({
addUrl: (urlTriggerConfig: UrlTriggerConfig) => void
validationWarning: string | null
title: string
+ titleBadge?: JSX.Element
description: string
checkUrl: string
checkUrlResults: { [key: number]: boolean }
@@ -56,7 +57,8 @@ export function UrlConfig({
<div className="flex flex-col gap-y-2">
<div className="flex items-center gap-2 justify-between">
<LemonLabel className="text-base">
- {title} <Since web={{ version: '1.171.0' }} />
+ {title}
+ {titleBadge ? <> {titleBadge}</> : null}
</LemonLabel>
<LemonButton
onClick={props.onAdd}
diff --git a/frontend/src/scenes/session-recordings/components/ReplayCaptureDiagnosticsPanel.test.tsx b/frontend/src/scenes/session-recordings/components/ReplayCaptureDiagnosticsPanel.test.tsx
index 8ec6063ae669..e000e53c7464 100644
--- a/frontend/src/scenes/session-recordings/components/ReplayCaptureDiagnosticsPanel.test.tsx
+++ b/frontend/src/scenes/session-recordings/components/ReplayCaptureDiagnosticsPanel.test.tsx
@@ -45,7 +45,7 @@ describe('ReplayCaptureDiagnosticsPanel', () => {
)
expect(
- screen.getByText('The recording script failed to load — likely blocked by an ad blocker')
+ screen.getByText('The recording script failed to load, likely blocked by an ad blocker')
).toBeInTheDocument()
})
@@ -121,7 +121,7 @@ describe('ReplayCaptureDiagnosticsPanel', () => {
const text = Array.from(listItems)
.map((li) => li.textContent)
.join(' ')
- expect(text).toContain('$has_recording = true')
+ expect(text).toContain('PostHog has a stored recording linked to this session')
})
it('renders buffering_empty headline', () => {
diff --git a/frontend/src/scenes/session-recordings/components/ReplayCaptureDiagnosticsPanel.tsx b/frontend/src/scenes/session-recordings/components/ReplayCaptureDiagnosticsPanel.tsx
index 076114cc3613..48459ef92adf 100644
--- a/frontend/src/scenes/session-recordings/components/ReplayCaptureDiagnosticsPanel.tsx
+++ b/frontend/src/scenes/session-recordings/components/ReplayCaptureDiagnosticsPanel.tsx
@@ -16,16 +16,22 @@ type ReplayCaptureDiagnosticsPanelProps =
const TRIGGER_STATUS_EXPLANATIONS: Record<string, string> = {
trigger_disabled: 'No trigger of this type is configured.',
trigger_pending: 'A trigger is configured but has not yet matched on this session.',
- trigger_matched: 'The trigger fired — recording was allowed to start.',
+ trigger_matched: 'The trigger fired, so recording was allowed to start.',
}
const RECORDING_STATUS_EXPLANATIONS: Record<string, string> = {
active: 'The SDK is recording and producing snapshots.',
buffering:
'The SDK initialized but is waiting (for a trigger, duration, or remote config) before producing snapshots.',
- disabled: 'Recording is turned off — either in project settings or via SDK config at runtime.',
- sampled: 'This session was included by the configured replay sample rate — recording started.',
+ disabled: 'Recording is turned off, either in project settings or in the SDK config at runtime.',
+ sampled: 'This session was included by the configured replay sample rate, so recording started.',
paused: 'Recording is temporarily paused for this session.',
+ lazy_loading: 'The SDK is still loading the recorder script before it can produce snapshots.',
+ pending_config:
+ 'The SDK was waiting for recording settings from PostHog. Only posthog-js 1.356.1 to 1.358.0 report this.',
+ awaiting_config: 'The SDK is waiting for recording settings from PostHog before it can start.',
+ missing_config: 'The SDK could not load recording settings and stopped trying. Reload the page to start recording.',
+ rrweb_error: 'The recorder failed to start, so no snapshots were produced. Check the browser console for errors.',
}
const START_REASON_EXPLANATIONS: Record<string, string> = {
@@ -46,7 +52,7 @@ const explainValue = (key: string, value: unknown): string | null => {
case '$sdk_debug_replay_linked_flag_trigger_status':
return typeof value === 'string' ? (TRIGGER_STATUS_EXPLANATIONS[value] ?? null) : null
case '$sdk_debug_recording_script_not_loaded':
- return 'The SDK reported the recorder script was not loaded on the page — often caused by ad blockers.'
+ return 'The SDK reported the recorder script was not loaded on the page, often caused by ad blockers.'
case '$sdk_debug_rrweb_start_attempted':
if (value === true) {
return 'The SDK attempted to start the recorder.'
diff --git a/frontend/src/scenes/session-recordings/player/PurePlayer.tsx b/frontend/src/scenes/session-recordings/player/PurePlayer.tsx
index f1467432556a..14be5902ad0f 100644
--- a/frontend/src/scenes/session-recordings/player/PurePlayer.tsx
+++ b/frontend/src/scenes/session-recordings/player/PurePlayer.tsx
@@ -367,8 +367,8 @@ export function PurePlayer({ noMeta = false, noBorder = false }: PurePlayerProps
>
The first{' '}
{humanFriendlyDuration(leadingUnplayableMs / 1000, { maxUnits: 2 })} of this
- recording can't be shown — the initial snapshot of the screen arrived late,
- so playback starts from the first frame we can render.{' '}
+ recording can't be played. The first screen snapshot arrived late, so
+ playback starts at the first frame we can render.{' '}
<Link to="https://posthog.com/docs/session-replay/troubleshooting">
Learn more
</Link>
diff --git a/frontend/src/scenes/session-recordings/player/controller/Seekbar.tsx b/frontend/src/scenes/session-recordings/player/controller/Seekbar.tsx
index 37973a64fed0..37342761076c 100644
--- a/frontend/src/scenes/session-recordings/player/controller/Seekbar.tsx
+++ b/frontend/src/scenes/session-recordings/player/controller/Seekbar.tsx
@@ -135,7 +135,7 @@ export function Seekbar(): JSX.Element {
<Tooltip
title={`The first ${humanFriendlyDuration(leadingUnplayableMs / 1000, {
maxUnits: 2,
- })} can't be played — the initial screen snapshot arrived late`}
+ })} can't be played. The first screen snapshot arrived late.`}
placement="top"
>
<div
diff --git a/frontend/src/scenes/session-recordings/utils/replayCaptureDiagnostics.ts b/frontend/src/scenes/session-recordings/utils/replayCaptureDiagnostics.ts
index 5ab3f9a3d9ff..290a42e4e602 100644
--- a/frontend/src/scenes/session-recordings/utils/replayCaptureDiagnostics.ts
+++ b/frontend/src/scenes/session-recordings/utils/replayCaptureDiagnostics.ts
@@ -111,8 +111,8 @@ export function diagnoseReplayCapture(eventProperties: Record<string, any> | nul
verdict: 'captured',
headline: 'A recording exists for this session',
reasons: [
- 'PostHog has a stored recording linked to this event\u2019s session (`$has_recording = true`).',
- 'If the replay still appears missing in the UI, try refreshing — it may still be processing.',
+ 'PostHog has a stored recording linked to this session.',
+ 'If the replay still looks missing, refresh the page. It may still be processing.',
],
rawSignals,
suggestedActions: [troubleshootingAction],
@@ -122,7 +122,7 @@ export function diagnoseReplayCapture(eventProperties: Record<string, any> | nul
if (scriptNotLoaded) {
return {
verdict: 'ad_blocked',
- headline: 'The recording script failed to load — likely blocked by an ad blocker',
+ headline: 'The recording script failed to load, likely blocked by an ad blocker',
reasons: [
'The SDK reported that the recorder script was not loaded on the page.',
'This is usually caused by a browser ad blocker or content security policy blocking the recorder asset.',
@@ -137,8 +137,8 @@ export function diagnoseReplayCapture(eventProperties: Record<string, any> | nul
verdict: 'disabled',
headline: 'Session recording was disabled for this session',
reasons: [
- 'The SDK reported `$recording_status = disabled` at the time this event was captured.',
- 'Recording may be turned off in project settings, or explicitly disabled at runtime via the SDK.',
+ 'Session recording was turned off while this session ran.',
+ 'Recording can be turned off in project settings, or turned off at runtime in the SDK.',
],
rawSignals,
suggestedActions: [settingsAction, troubleshootingAction],
@@ -174,7 +174,7 @@ export function diagnoseReplayCapture(eventProperties: Record<string, any> | nul
headline: `Recording was gated on a trigger that never fired`,
reasons: [
`The following trigger(s) were pending and never matched: ${pending.map((p) => p.key).join(', ')}.`,
- 'Recording only starts once a configured trigger is satisfied — until then, no snapshots are captured.',
+ 'Recording only starts once a configured trigger is satisfied. Until then, no snapshots are captured.',
],
rawSignals,
suggestedActions: [settingsAction, troubleshootingAction],
@@ -187,7 +187,7 @@ export function diagnoseReplayCapture(eventProperties: Record<string, any> | nul
headline: 'This session was excluded by sampling',
reasons: [
'The SDK selected this session to be dropped based on the configured replay sample rate.',
- 'Sampling is random per-session — increase the sample rate in project settings to capture more sessions.',
+ 'Sampling is random per-session. Increase the sample rate in project settings to capture more sessions.',
],
rawSignals,
suggestedActions: [settingsAction, troubleshootingAction],
@@ -212,8 +212,8 @@ export function diagnoseReplayCapture(eventProperties: Record<string, any> | nul
verdict: 'captured',
headline: 'A recording should exist for this session',
reasons: [
- 'The SDK reported `$recording_status = active` and flushed recording data to PostHog.',
- 'If the replay still appears missing, it may still be processing, or it may have been deleted due to retention.',
+ 'The SDK was recording and sent recording data to PostHog.',
+ 'If the replay still looks missing, it may still be processing, or retention may have deleted it.',
],
rawSignals,
suggestedActions: [troubleshootingAction],
diff --git a/frontend/src/scenes/settings/environment/ReplayTriggers.tsx b/frontend/src/scenes/settings/environment/ReplayTriggers.tsx
index 1992091177ae..1f82221cba8b 100644
--- a/frontend/src/scenes/settings/environment/ReplayTriggers.tsx
+++ b/frontend/src/scenes/settings/environment/ReplayTriggers.tsx
@@ -158,6 +158,7 @@ function UrlTriggerOptions(): JSX.Element | null {
addUrl={addUrlTrigger}
validationWarning={urlTriggerInputValidationWarning}
title="Enable recordings when URL matches"
+ titleBadge={<Since web={{ version: '1.171.0' }} />}
description="Adding a URL trigger means recording will only be started when the user visits a page that matches the URL."
checkUrl={checkUrlTrigger}
checkUrlResults={checkUrlTriggerResults}
@@ -200,8 +201,8 @@ function UrlBlocklistOptions(): JSX.Element | null {
formKey="proposedUrlBlocklist"
addUrl={addUrlBlocklist}
validationWarning={urlBlocklistInputValidationWarning}
- title="Pause recordings when the user visits a page that matches the URL"
- description="Used to pause recordings for part of a user journey"
+ title="Pause recordings when URL matches"
+ description="Pause recordings while the user is on a page that matches the URL."
checkUrl={checkUrlBlocklist}
checkUrlResults={checkUrlBlocklistResults}
setCheckUrl={setCheckUrlBlocklist}
@@ -567,7 +568,7 @@ function SdkCompatibilityBanner(): JSX.Element {
{humanFriendlyNumber(outdatedWebTraffic.outdatedCount)}{' '}
{pluralize(outdatedWebTraffic.outdatedCount, 'event', 'events', false)}) is on a posthog-js before v
{TRIGGER_GROUPS_MIN_SDK_VERSION}. Those sessions still record using the legacy recording conditions
- below — upgrade to v{TRIGGER_GROUPS_MIN_SDK_VERSION}+ for full trigger-group coverage. Both
+ below. Upgrade to v{TRIGGER_GROUPS_MIN_SDK_VERSION}+ for full trigger-group coverage. Both
configurations are sent meanwhile, so nothing is lost.
</LemonBanner>
)
diff --git a/frontend/src/scenes/settings/environment/SessionRecordingSettings.tsx b/frontend/src/scenes/settings/environment/SessionRecordingSettings.tsx
index c5ac2110cb96..9777537e3d72 100644
--- a/frontend/src/scenes/settings/environment/SessionRecordingSettings.tsx
+++ b/frontend/src/scenes/settings/environment/SessionRecordingSettings.tsx
@@ -172,7 +172,7 @@ export function ReplayNetworkHeadersPayloads(): JSX.Element {
if (checked) {
LemonDialog.open({
maxWidth: '650px',
- title: 'Network header capture',
+ title: 'Header capture',
description: <PayloadWarning />,
primaryButton: {
'data-attr': 'network-header-capture-accept-warning-and-enable',
@@ -196,7 +196,7 @@ export function ReplayNetworkHeadersPayloads(): JSX.Element {
})
}
}}
- label="Capture headers"
+ label="Header capture"
bordered
checked={
currentTeam?.session_recording_opt_in