: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
feat(marketing): show conversion in the new dashboard (#99230)
Javier Bahamondes20899aebbaab
diff --git a/docs/internal/marketing-analytics-configuration-writes.md b/docs/internal/marketing-analytics-configuration-writes.mdindex a20c96914df4..c45a52e5e01e 100644--- a/docs/internal/marketing-analytics-configuration-writes.md+++ b/docs/internal/marketing-analytics-configuration-writes.md@@ -17,3 +17,5 @@ Payloads exclude suggestion IDs, titles, evidence, goal names and UTM values. So## Acquisition previewWith `new-marketing-analytics-dashboard` enabled, the dashboard shows visitors, sessions and pageviews using the existing Web Overview query and metric cards. The date range, comparison and saved test-account filter apply to both the summary and channel table. Reload summary refreshes only the summary. The legacy dashboard remains available when the flag is off.++The new dashboard embeds the existing Attribution explorer as Conversion when `marketing-analytics-attribution` is enabled. It keeps goal selection, attribution models, conversion paths and the explorer’s date and test-account filters.diff --git a/frontend/src/scenes/marketing-analytics/NewMarketingAnalyticsDashboard.tsx b/frontend/src/scenes/marketing-analytics/NewMarketingAnalyticsDashboard.tsxindex d5f90aa099dd..f8f8d2203ab9 100644--- a/frontend/src/scenes/marketing-analytics/NewMarketingAnalyticsDashboard.tsx+++ b/frontend/src/scenes/marketing-analytics/NewMarketingAnalyticsDashboard.tsx@@ -4,7 +4,10 @@ import { LemonBanner, LemonButton } from '@posthog/lemon-ui'import { CompareFilter } from 'lib/components/CompareFilter/CompareFilter'import { DateFilter } from 'lib/components/DateFilter/DateFilter'+import { FEATURE_FLAGS } from 'lib/constants'+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { MARKETING_ANALYTICS_DEFAULT_QUERY_TAGS } from 'scenes/web-analytics/common'+import { AttributionTab } from 'scenes/web-analytics/tabs/marketing-analytics/frontend/components/AttributionTab/AttributionTab'import { marketingAnalyticsLogic } from 'scenes/web-analytics/tabs/marketing-analytics/frontend/logic/marketingAnalyticsLogic'import { MarketingAnalyticsCell } from 'scenes/web-analytics/tabs/marketing-analytics/frontend/shared'import { webAnalyticsDataTableQueryContext } from 'scenes/web-analytics/tiles/WebAnalyticsTile'@@ -79,6 +82,7 @@ const QUERY_CONTEXT: QueryContext = {// Scaffold for the redesigned marketing analytics dashboard, gated behind the// `new-marketing-analytics-dashboard` feature flag.export function NewMarketingAnalyticsDashboard(): JSX.Element {+ const { featureFlags } = useValues(featureFlagLogic)const { dateFilter, compareFilter, shouldFilterTestAccounts } = useValues(marketingAnalyticsLogic)const { setDates, setCompareFilter } = useActions(marketingAnalyticsLogic)const dateRange = { date_from: dateFilter.dateFrom, date_to: dateFilter.dateTo }@@ -122,6 +126,12 @@ export function NewMarketingAnalyticsDashboard(): JSX.Element {labelFromKey={labelFromKey}/>)}+ {featureFlags[FEATURE_FLAGS.MARKETING_ANALYTICS_ATTRIBUTION] && (+ <section aria-label="Conversion" className="flex flex-col gap-2">+ <h2 className="mb-0">Conversion</h2>+ <AttributionTab />+ </section>+ )}<Queryquery={{...CHANNEL_SOURCE_BREAKDOWN,