: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
/**
* The billing service owns `name`, so a product can be billed under a name the app stopped using.
* Override it here, keyed by product type, so billing calls a product what the rest of PostHog
* calls it — otherwise people search billing for a product they can see in the nav and miss it.
*/
const DISPLAY_NAME_BY_PRODUCT_TYPE: Record<string, string> = {
realtime_destinations: 'Destinations',
workflows_emails: 'Workflows',
inbox: 'Self-driving inbox',
}
export function billingProductDisplayName(product: { type?: string | null; name: string }): string {
return (product.type && DISPLAY_NAME_BY_PRODUCT_TYPE[product.type]) || product.name
}
// Names for the rows inside a product card: its variants and its companions.
const ROW_DISPLAY_NAME_BY_PRODUCT_TYPE: Record<string, string> = {
session_replay: 'Web session replay',
realtime_destinations: 'Realtime destinations',
data_warehouse: 'Synced rows',
data_warehouse_historical: 'Free historical synced rows',
logs: 'Logs ingestion (14-day retention)',
logs_retention_30d: '30-day retention',
logs_retention_custom: 'Custom retention',
}
export function billingProductRowDisplayName(product: { type?: string | null; name: string }): string {
return (product.type && ROW_DISPLAY_NAME_BY_PRODUCT_TYPE[product.type]) || product.name
}