: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 chartPng from '@posthog/brand/hoggies/png/chart'
import { IconGraph } from '@posthog/icons'
import { pngHoggie } from 'lib/brand/hoggies'
import type { SceneProductEmptyState } from 'lib/components/ProductEmptyState/types'
import { ProductKey } from '~/queries/schema/schema-general'
import { ProductAnalyticsPreview } from './ProductAnalyticsPreview'
import { ProductAnalyticsPrimaryAction } from './ProductAnalyticsPrimaryAction'
import { productAnalyticsSetupLogic } from './productAnalyticsSetupLogic'
const HedgehogChart = pngHoggie(chartPng)
export const productAnalyticsEmptyState: SceneProductEmptyState = {
statusLogic: productAnalyticsSetupLogic,
config: {
productKey: ProductKey.PRODUCT_ANALYTICS,
productName: 'Product analytics',
icon: <IconGraph />,
accentColor: 'var(--color-product-product-analytics-light)',
accentColorDark: 'var(--color-product-product-analytics-dark)',
hedgehog: HedgehogChart,
text: {
'needs-setup': {
headline: 'Ask a question about your product and save the answer',
lead: 'An insight is one question about the events you already send: how many people did this, where do they drop off, who comes back. Break the answer down by any property, then save it so you can reopen it later or drop it on a dashboard.',
},
},
PrimaryAction: ProductAnalyticsPrimaryAction,
skippable: false,
docsUrl: 'https://posthog.com/docs/product-analytics/insights',
previewLabel: 'Your insights, once created',
Preview: ProductAnalyticsPreview,
},
}