: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 { useState } from 'react'
import { LemonCheckbox } from 'lib/lemon-ui/LemonCheckbox'
interface GAPromotionDialogContentProps {
onChange: (checked: boolean) => void
}
export function GAPromotionDialogContent({ onChange }: GAPromotionDialogContentProps): JSX.Element {
const [checked, setChecked] = useState(false)
return (
<div className="mt-2">
<LemonCheckbox
checked={checked}
onChange={(value) => {
setChecked(value)
onChange(value)
}}
label="Roll out to all users — include users who previously opted out"
fullWidth
/>
</div>
)
}