: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { IconSparkles } from '@posthog/icons'
import { LemonCheckbox } from '@posthog/lemon-ui'
import type { ReplayVisionScannerOptionProps } from './types'
export function ReplayVisionScannerCheckbox({
checked,
onChange,
disabledReason,
sessionPrice,
}: ReplayVisionScannerOptionProps): JSX.Element {
return (
<LemonCheckbox
bordered
fullWidth
checked={checked}
onChange={onChange}
disabledReason={disabledReason}
data-attr="experiment-create-replay-vision-scanner"
label={
<div className="py-3">
<div className="flex items-center gap-2 font-semibold">
<IconSparkles className="text-ai" />
Compare what users do in each variant
</div>
<div className="mt-1 font-normal text-sm text-muted">
Set up an experiment scanner. It uses Replay vision to summarize the recordings of exposed users
and shows each variant side by side. It turns on when you launch the experiment and stops when
the experiment ends. Until launch, nothing is scanned and no credits are used.
</div>
<div className="font-normal text-sm text-muted mt-1">
Each scanned session costs {sessionPrice}. The scanner shows a projected monthly cost once the
experiment has participants.
</div>
</div>
}
/>
)
}