: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
const KNOWN_PROPERTIES: Record<string, string> = {
$browser: 'Browser',
$browser_version: 'Browser version',
$os: 'OS',
$os_version: 'OS version',
$device_type: 'Device type',
$current_url: 'URL',
$pathname: 'Path',
$host: 'Host',
$referrer: 'Referrer',
$referring_domain: 'Referring domain',
$geoip_country_name: 'Country',
$geoip_city_name: 'City',
$screen_name: 'Screen',
$lib: 'Library',
utm_source: 'UTM source',
utm_medium: 'UTM medium',
utm_campaign: 'UTM campaign',
}
export function propertyDisplayName(key: string): string {
const known = KNOWN_PROPERTIES[key]
if (known) {
return known
}
const text = key.replace(/^\$/, '').replace(/[_-]+/g, ' ')
return text.charAt(0).toUpperCase() + text.slice(1)
}