: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 * as chart from '@posthog/brand/hoggies/png/chart'
import * as construction from '@posthog/brand/hoggies/png/construction-1'
import * as director from '@posthog/brand/hoggies/png/director'
import * as experiment from '@posthog/brand/hoggies/png/experiment'
import * as explorerPng from '@posthog/brand/hoggies/png/explorer'
import * as magnifyingGlass from '@posthog/brand/hoggies/png/magnifying-glass'
import * as mailboxPng from '@posthog/brand/hoggies/png/mailbox'
import * as puzzle from '@posthog/brand/hoggies/png/puzzle'
import * as readingIsMagic from '@posthog/brand/hoggies/png/reading-is-magic'
import * as reporter from '@posthog/brand/hoggies/png/reporter'
import * as robot from '@posthog/brand/hoggies/png/robot'
import * as trafficController from '@posthog/brand/hoggies/png/traffic-controller'
import {
IconBolt,
IconBuilding,
IconClock,
IconCursor,
IconDatabase,
IconDecisionTree,
IconDownload,
IconEye,
IconGear,
IconGraph,
IconLive,
IconLlmAnalytics,
IconLogomark,
IconMessage,
IconNotification,
IconPassword,
IconPeople,
IconPieChart,
IconPlaylist,
IconRevert,
IconRewindPlay,
IconSampling,
IconStack,
IconTerminal,
IconTestTube,
IconToggle,
IconUnlock,
IconWarning,
} from '@posthog/icons'
import { pngHoggie } from 'lib/brand/hoggies'
import { Scene } from 'scenes/sceneTypes'
import { urls } from 'scenes/urls'
import { ProductKey } from '~/queries/schema/schema-general'
import { type AvailableOnboardingProducts, type OnboardingProduct } from '~/types'
const HedgehogChart = pngHoggie(chart)
const HedgehogConstruction = pngHoggie(construction)
const HedgehogDirector = pngHoggie(director)
const HedgehogExperiment = pngHoggie(experiment)
const HedgehogExplorer = pngHoggie(explorerPng)
const HedgehogMagnifyingGlass = pngHoggie(magnifyingGlass)
const HedgehogMailbox = pngHoggie(mailboxPng)
const HedgehogPuzzle = pngHoggie(puzzle)
const HedgehogReadingIsMagic = pngHoggie(readingIsMagic)
const HedgehogReporter = pngHoggie(reporter)
const HedgehogRobot = pngHoggie(robot)
const HedgehogTrafficController = pngHoggie(trafficController)
const ICON_MAP: Record<string, React.ComponentType<{ className?: string; color?: string }>> = {
IconBolt,
IconBuilding,
IconClock,
IconCursor,
IconDatabase,
IconDecisionTree,
IconDownload,
IconEye,
IconGear,
IconGraph,
IconLive,
IconLlmAnalytics,
IconLogomark,
IconMessage,
IconNotification,
IconPassword,
IconPeople,
IconPieChart,
IconPlaylist,
IconRevert,
IconRewindPlay,
IconSampling,
IconStack,
IconTerminal,
IconTestTube,
IconToggle,
IconUnlock,
IconWarning,
}
export function getProductIcon(
iconKey?: string | null,
{ iconColor, className, productType }: { iconColor?: string; className?: string; productType?: string | null } = {}
): JSX.Element {
// Prefer the centralized productType → icon mapping so surfaces like billing match the icons
// used in onboarding even when the API response doesn't include an icon_key.
const onboardingProduct = productType
? (availableOnboardingProducts as Partial<Record<string, OnboardingProduct>>)[productType]
: undefined
const resolvedIconKey = onboardingProduct?.icon ?? iconKey
const IconComponent = resolvedIconKey ? ICON_MAP[resolvedIconKey] : undefined
if (IconComponent) {
return <IconComponent className={className} color={iconColor} />
}
return <IconLogomark className={className} />
}
export function toSentenceCase(name: string): string {
return name
.split(' ')
.map((word, i) => {
if (i === 0) {
return word
}
if (word === word.toUpperCase() && word.length <= 4) {
return word
}
return word.toLowerCase()
})
.join(' ')
}
// This is the order we'll use to display the products in the onboarding
export const availableOnboardingProducts: AvailableOnboardingProducts = {
[ProductKey.PRODUCT_ANALYTICS]: {
name: 'Product Analytics',
description: 'Track events, trends, and user behavior',
userCentricDescription: 'See what users do in your app',
capabilities: ['Funnels & conversion tracking', 'Trend analysis & dashboards', 'User paths & retention'],
valueProps: [
{
title: 'Funnels & conversion tracking',
problem: 'Find where users drop off in your signup or purchase flow',
},
{ title: 'Trend analysis & dashboards', problem: 'Track how key metrics change week over week' },
{ title: 'User paths & retention', problem: 'Understand which features keep users coming back' },
],
hedgehog: HedgehogChart,
icon: 'IconGraph',
iconColor: 'rgb(47 128 250)',
url: urls.insights(),
scene: Scene.SavedInsights,
setupEffort: 'low',
socialProof: 'Used by 185K+ teams',
},
[ProductKey.WEB_ANALYTICS]: {
name: 'Web Analytics',
description: 'Measure traffic, engagement, and conversion metrics for your website',
userCentricDescription: 'See where visitors come from and what they do',
capabilities: ['Traffic sources & referrals', 'Page performance metrics', 'Conversion funnels'],
valueProps: [
{ title: 'Traffic sources & referrals', problem: 'Know which channels bring your best users' },
{ title: 'Page performance metrics', problem: 'Find slow pages that hurt conversion' },
{ title: 'Conversion funnels', problem: 'See where visitors leave before converting' },
],
hedgehog: HedgehogExplorer,
icon: 'IconPieChart',
iconColor: 'rgb(54 196 111)',
url: urls.webAnalytics(),
scene: Scene.WebAnalytics,
setupEffort: 'automatic',
socialProof: 'Used by 165K+ teams',
},
[ProductKey.SESSION_REPLAY]: {
name: 'Session Replay',
description: 'Watch recordings of user sessions to debug issues faster',
userCentricDescription: 'Watch real users navigate your app',
capabilities: ['Video playback of sessions', 'Console & network logs', 'Click & scroll heatmaps'],
valueProps: [
{ title: 'Session recordings', problem: 'See exactly where users get confused or stuck' },
{ title: 'Console & network logs', problem: 'Debug issues without asking users to reproduce them' },
{ title: 'Click & scroll heatmaps', problem: 'Find which parts of your pages get attention' },
],
hedgehog: HedgehogDirector,
icon: 'IconRewindPlay',
iconColor: 'rgb(247 165 1)',
url: urls.replay(),
scene: Scene.Replay,
setupEffort: 'automatic',
socialProof: 'Used by 160K+ teams',
},
[ProductKey.AI_OBSERVABILITY]: {
name: 'AI observability',
description: 'Monitor AI usage, costs, and quality',
userCentricDescription: 'Keep your AI costs down and quality up',
capabilities: ['Cost tracking per model', 'Latency & error monitoring', 'Prompt & response evaluation'],
valueProps: [
{ title: 'Cost tracking per model', problem: 'See which AI calls are burning your budget' },
{ title: 'Latency monitoring', problem: 'Find slow prompts before users complain' },
{ title: 'Prompt evaluation', problem: 'Compare prompt versions with real data' },
],
hedgehog: HedgehogRobot,
icon: 'IconLlmAnalytics',
iconColor: 'rgb(182 42 217)',
url: urls.aiObservabilityDashboard(),
scene: Scene.AIObservability,
setupEffort: 'low',
socialProof: 'Used by 55K+ teams',
},
[ProductKey.DATA_WAREHOUSE]: {
name: 'Data Warehouse',
description: 'Query external data alongside your PostHog data',
userCentricDescription: 'Bring in data from Stripe, Salesforce, and more',
capabilities: ['Sync Stripe, Salesforce & more', 'SQL queries on all your data', 'Scheduled data imports'],
valueProps: [
{ title: 'External data joins', problem: 'Combine Stripe, Hubspot, or Postgres data with PostHog' },
{ title: 'SQL queries', problem: 'Ask questions no pre-built dashboard can answer' },
],
hedgehog: HedgehogConstruction,
icon: 'IconDatabase',
iconColor: 'rgb(133 103 255)',
breadcrumbsName: 'Data Warehouse',
url: urls.sources(),
scene: Scene.Sources,
setupEffort: 'medium',
socialProof: 'Used by 77K+ teams',
},
[ProductKey.FEATURE_FLAGS]: {
name: 'Feature Flags',
description: 'Ship features safely with gradual rollouts',
userCentricDescription: 'Roll out changes to the right users',
capabilities: ['Percentage & user-based rollouts', 'Multivariate flags', 'Instant rollbacks'],
valueProps: [
{ title: 'Targeted rollouts', problem: 'Ship to 5% of users before going to everyone' },
{ title: 'Release conditions', problem: 'Control who sees what based on properties or cohorts' },
{ title: 'Multivariate flags', problem: 'Test multiple variants without redeploying' },
],
hedgehog: HedgehogTrafficController,
icon: 'IconToggle',
iconColor: 'rgb(48 171 198)',
breadcrumbsName: 'Feature Flags',
url: urls.featureFlags(),
scene: Scene.FeatureFlags,
setupEffort: 'medium',
socialProof: 'Used by 70K+ teams',
},
[ProductKey.EXPERIMENTS]: {
name: 'Experiments',
description: 'Test changes and measure what works',
userCentricDescription: 'Find out which version converts better',
capabilities: ['A/B & multivariate testing', 'Statistical significance tracking', 'Revenue & conversion goals'],
valueProps: [
{ title: 'A/B testing', problem: 'Know which version actually performs better' },
{ title: 'Statistical analysis', problem: 'Get results you can trust, not gut feelings' },
{ title: 'Goal tracking', problem: 'Tie experiments directly to the metrics that matter' },
],
hedgehog: HedgehogExperiment,
icon: 'IconTestTube',
iconColor: 'rgb(182 42 217)',
breadcrumbsName: 'Experiments',
url: urls.experiments(),
scene: Scene.Experiments,
setupEffort: 'medium',
socialProof: 'Used by 64K+ teams',
},
[ProductKey.ERROR_TRACKING]: {
name: 'Error Tracking',
description: 'Catch and fix bugs before users complain',
userCentricDescription: 'Catch and fix bugs before users complain',
capabilities: ['Automatic exception capture', 'Stack traces & source maps', 'Issue grouping & assignment'],
valueProps: [
{ title: 'Automatic error capture', problem: 'Know about crashes before your users report them' },
{ title: 'Stack trace & context', problem: 'Jump straight to the line of code that broke' },
{ title: 'Issue management', problem: 'Prioritize fixes by how many users are affected' },
],
hedgehog: HedgehogMagnifyingGlass,
icon: 'IconWarning',
iconColor: 'rgb(235 157 42)',
url: urls.errorTracking(),
scene: Scene.ErrorTracking,
setupEffort: 'automatic',
socialProof: 'Used by 83K+ teams',
},
[ProductKey.SURVEYS]: {
name: 'Surveys',
description: 'Ask users why they did what they did',
userCentricDescription: 'Ask users what they think, right in your app',
capabilities: ['In-app popup surveys', 'Targeting by user properties', 'NPS, CSAT & custom questions'],
valueProps: [
{ title: 'Targeted surveys', problem: 'Ask the right question at the right moment' },
{ title: 'In-app collection', problem: 'Get feedback without sending users to external forms' },
],
hedgehog: HedgehogReporter,
icon: 'IconMessage',
iconColor: 'rgb(243 84 84)',
url: urls.surveys(),
scene: Scene.Surveys,
setupEffort: 'low',
socialProof: 'Used by 103K+ teams',
},
[ProductKey.WORKFLOWS]: {
name: 'Workflows',
description: 'Automate user communication and internal processes',
userCentricDescription: 'Send the right message at the right time',
capabilities: ['Event-triggered automations', 'Slack, email & webhook actions', 'User journey orchestration'],
valueProps: [
{ title: 'Automated workflows', problem: 'Trigger Slack alerts, emails, or webhooks on any event' },
{ title: 'Custom logic', problem: 'Build multi-step automations without a separate tool' },
{ title: 'Marketing Campaigns', problem: 'Send email campaigns on demand' },
],
hedgehog: HedgehogMailbox,
icon: 'IconGear',
iconColor: 'var(--color-product-workflows-light)',
url: urls.workflows(),
scene: Scene.Workflows,
setupEffort: 'medium',
socialProof: 'Used by 3K+ teams',
},
[ProductKey.LOGS]: {
name: 'Logs',
description: 'Search, filter, and monitor your application logs',
userCentricDescription: 'Understand what your app is doing in real time',
capabilities: ['Full-text log search', 'Structured log filtering', 'Alerting on log patterns'],
valueProps: [
{ title: 'Full-text log search', problem: 'Find the exact log line that caused an incident' },
{ title: 'Structured filtering', problem: 'Drill into logs by service, severity, or any attribute' },
{ title: 'Log-based alerting', problem: 'Get notified the moment an error pattern appears' },
],
hedgehog: HedgehogReadingIsMagic,
icon: 'IconLive',
iconColor: 'var(--color-product-logs-light)',
url: urls.logs(),
scene: Scene.Logs,
setupEffort: 'low',
},
[ProductKey.METRICS]: {
name: 'Metrics',
description: 'Chart and alert on the metrics your services already expose',
userCentricDescription: 'See how your services are performing over time',
capabilities: ['Prometheus and OpenTelemetry ingest', 'Metric charts and dashboards', 'Anomaly detection'],
valueProps: [
{ title: 'Bring your existing metrics', problem: 'Scrape a Prometheus endpoint without changing your app' },
{ title: 'Charts and dashboards', problem: 'Watch latency, throughput, and error rates over time' },
{ title: 'Metric to trace links', problem: 'Jump from a spike straight to the trace behind it' },
],
hedgehog: HedgehogChart,
icon: 'IconGraph',
iconColor: 'var(--color-product-metrics-light)',
url: urls.metrics(),
scene: Scene.Metrics,
setupEffort: 'low',
},
[ProductKey.MCP_ANALYTICS]: {
name: 'MCP analytics',
description: 'See how AI agents use your MCP server — tool calls, intent, and failures',
userCentricDescription: 'Understand how agents actually use your MCP tools',
capabilities: ['Tool call tracking', 'Agent intent clustering', 'Error & latency monitoring'],
valueProps: [
{ title: 'Every tool call', problem: 'See exactly what the agent sent, got back, and how long it took' },
{ title: 'Agent intent', problem: 'Know what agents were trying to do, not just which tools they ran' },
{ title: 'Failures & gaps', problem: 'Catch failing tools and capabilities agents wish you had' },
],
hedgehog: HedgehogPuzzle,
icon: 'IconLlmAnalytics',
iconColor: 'rgb(182 42 217)',
url: urls.mcpAnalytics(),
scene: Scene.MCPAnalytics,
setupEffort: 'low',
},
[ProductKey.CONVERSATIONS]: {
name: 'Support',
description: 'Receive customer questions over web, email, Slack, and Microsoft Teams',
userCentricDescription: 'Triage, assign, and automate customer support in PostHog',
capabilities: ['In-app chat widget', 'Email, Slack & Teams channels', 'Direct conversations API'],
valueProps: [
{ title: 'In-app widget', problem: 'Let customers reach you without leaving your product' },
{ title: 'Multi-channel inbox', problem: 'Handle email, Slack, and Teams tickets in one place' },
{ title: 'Direct API', problem: 'Build your own support UI on top of the conversations API' },
],
hedgehog: HedgehogReporter,
icon: 'IconMessage',
iconColor: 'var(--color-product-support-light)',
url: urls.supportTickets(),
scene: Scene.SupportTickets,
setupEffort: 'low',
},
}