: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): add dashboard section tiles and traffic breakdowns (#100278)
Javier Bahamondes1912c8ed55a6
diff --git a/docs/internal/marketing-analytics-configuration-writes.md b/docs/internal/marketing-analytics-configuration-writes.mdindex 8cc3bdbf92c7..d8a1155cc958 100644--- a/docs/internal/marketing-analytics-configuration-writes.md+++ b/docs/internal/marketing-analytics-configuration-writes.md@@ -37,3 +37,9 @@ With `new-marketing-analytics-dashboard` enabled, Marketing Analytics opens direThe bypass waits for feature flags before mounting setup detection. The explicit `?empty_state` preview still takes precedence.With `new-marketing-analytics-dashboard` enabled, Ad performance reuses the existing ad spend dashboard. Its conversion-goal switch appears only when goals are configured and defaults to on. Turning it off limits the summary and table queries to ad-platform metrics, including platform-reported conversions, and omits saved and draft PostHog conversion goals. This preference applies only to Ad performance; leaving the tab or disabling the dashboard flag restores the legacy queries and saved column choices. Ad performance keeps source status and reconnect controls visible when loading sources fails, without entering legacy onboarding.++The new dashboard opens on Acquisition. Its section tiles show one section at a time while preserving the shared date and comparison filters. Retention, Conversion, and Revenue tiles follow their existing feature flags.++Acquisition and Engagement reuse the Web Analytics stats table with a shared traffic breakdown selector. The Acquisition table shows visitors and pageviews; the Engagement table shows visitors and bounce rate. Summary cards remain visitors, sessions, and pageviews for Acquisition, and session duration and bounce rate for Engagement. Changing sections preserves the selected breakdown, date range, and comparison.++Comparison and Reload summary controls appear only in Acquisition and Engagement, where they affect the displayed traffic data. The comparison selection is retained when visiting other sections.diff --git a/frontend/src/scenes/marketing-analytics/NewMarketingAnalyticsDashboard.test.tsx b/frontend/src/scenes/marketing-analytics/NewMarketingAnalyticsDashboard.test.tsxindex 66c39f740177..1a554f2343e6 100644--- a/frontend/src/scenes/marketing-analytics/NewMarketingAnalyticsDashboard.test.tsx+++ b/frontend/src/scenes/marketing-analytics/NewMarketingAnalyticsDashboard.test.tsx@@ -1,4 +1,4 @@-import { cleanup, render, screen } from '@testing-library/react'+import { cleanup, fireEvent, render, screen } from '@testing-library/react'import { useValues } from 'kea'import { FEATURE_FLAGS } from 'lib/constants'@@ -8,8 +8,41 @@ import { NewMarketingAnalyticsDashboard } from './NewMarketingAnalyticsDashboardjest.mock('./Setup/SuggestionRow', () => ({ SuggestionRow: () => null }))jest.mock('kea', () => ({ ...jest.requireActual('kea'), useValues: jest.fn(), useActions: () => ({}) }))-jest.mock('@posthog/lemon-ui', () => ({ LemonBanner: () => null, LemonButton: () => null, LemonSkeleton: () => null }))-jest.mock('lib/components/CompareFilter/CompareFilter', () => ({ CompareFilter: () => null }))+jest.mock('@posthog/lemon-ui', () => ({+ LemonBanner: () => null,+ LemonSelect: ({+ value,+ onChange,+ options,+ }: {+ value: string+ onChange: (value: string) => void+ options: { value: string; label: string }[]+ }) => (+ <select aria-label="Traffic breakdown" value={value} onChange={(event) => onChange(event.target.value)}>+ {options.map((option) => (+ <option key={option.value} value={option.value}>+ {option.label}+ </option>+ ))}+ </select>+ ),+ LemonButton: ({+ children,+ onClick,+ 'aria-pressed': pressed,+ }: {+ children: React.ReactNode+ onClick: () => void+ 'aria-pressed'?: boolean+ }) => (+ <button onClick={onClick} aria-pressed={pressed}>+ {children}+ </button>+ ),+ LemonSkeleton: () => null,+}))+jest.mock('lib/components/CompareFilter/CompareFilter', () => ({ CompareFilter: () => <div>Compare periods</div> }))jest.mock('lib/components/DateFilter/DateFilter', () => ({ DateFilter: () => null }))jest.mock('lib/logic/featureFlagLogic', () => ({ featureFlagLogic: {} }))jest.mock('scenes/web-analytics/common', () => ({ MARKETING_ANALYTICS_DEFAULT_QUERY_TAGS: {} }))@@ -23,7 +56,9 @@ jest.mock('scenes/web-analytics/tiles/WebAnalyticsTile', () => ({ webAnalyticsDajest.mock('~/queries/nodes/DataNode/dataNodeLogic', () => ({ dataNodeLogic: () => ({}) }))jest.mock('~/queries/nodes/OverviewGrid/OverviewMetricCardGrid', () => ({ OverviewMetricCardGrid: () => null }))jest.mock('~/queries/nodes/WebOverview/WebOverview', () => ({ labelFromKey: () => '' }))-jest.mock('~/queries/Query/Query', () => ({ Query: () => null }))+jest.mock('~/queries/Query/Query', () => ({+ Query: ({ query }: { query: unknown }) => <div data-attr="traffic-query">{JSON.stringify(query)}</div>,+}))jest.mock('scenes/web-analytics/tabs/marketing-analytics/frontend/components/AttributionTab/AttributionTab', () => ({AttributionTab: () => <div>Attribution explorer</div>,}))@@ -64,9 +99,56 @@ describe('NewMarketingAnalyticsDashboard', () => {render(<NewMarketingAnalyticsDashboard />)- expect(screen.getByText('Acquisition')).not.toBeNull()+ expect(screen.getByLabelText('Acquisition')).not.toBeNull()+ expect(screen.queryByText('Compare periods')).not.toBeNull()+ expect(screen.queryByText('Reload summary')).not.toBeNull()expect(screen.getByText('Engagement')).not.toBeNull()+ expect(screen.queryByText('Attribution explorer')).toBeNull()+ expect(screen.queryByText('Retention explorer')).toBeNull()+ fireEvent.change(screen.getByLabelText('Traffic breakdown'), { target: { value: 'InitialUTMCampaign' } })+ expect(JSON.parse(screen.getByTestId('traffic-query').textContent || '{}').source).toMatchObject({+ kind: 'WebStatsTableQuery',+ breakdownBy: 'InitialUTMCampaign',+ includeBounceRate: false,+ dateRange: { date_from: '-30d', date_to: null },+ compareFilter: { compare: false },+ })+ fireEvent.click(screen.getByText('Engagement'))+ expect(JSON.parse(screen.getByTestId('traffic-query').textContent || '{}')).toMatchObject({+ hiddenColumns: ['context.columns.views'],+ source: {+ breakdownBy: 'InitialUTMCampaign',+ includeBounceRate: true,+ dateRange: { date_from: '-30d', date_to: null },+ compareFilter: { compare: false },+ },+ })+ expect(screen.queryByLabelText('Acquisition')).toBeNull()+ expect(screen.getByLabelText('Engagement')).not.toBeNull()+ expect(screen.queryByText('Conversion') !== null).toBe(conversion)+ expect(screen.queryByText('Retention') !== null).toBe(retention)+ expect(screen.queryByText('Revenue') !== null).toBe(conversion)+ if (conversion) {+ fireEvent.click(screen.getByText('Conversion'))+ }expect(screen.queryByText('Attribution explorer') !== null).toBe(conversion)+ expect(screen.queryByLabelText('Engagement') !== null).toBe(!conversion)+ if (conversion) {+ fireEvent.click(screen.getByText('Revenue'))+ }+ expect(screen.queryByText('Attribution explorer')).toBeNull()+ expect(screen.queryByLabelText('Revenue') !== null).toBe(conversion)+ if (retention) {+ fireEvent.click(screen.getByText('Retention'))+ }expect(screen.queryByText('Retention explorer') !== null).toBe(retention)+ expect(screen.queryByText('Compare periods') !== null).toBe(!conversion && !retention)+ expect(screen.queryByText('Reload summary') !== null).toBe(!conversion && !retention)+ expect(screen.queryByText('Attribution explorer')).toBeNull()+ fireEvent.click(screen.getByText('Acquisition'))+ expect(screen.getByLabelText('Acquisition')).not.toBeNull()+ expect(screen.queryByText('Compare periods')).not.toBeNull()+ expect(screen.queryByText('Reload summary')).not.toBeNull()+ expect(screen.queryByText('Retention explorer')).toBeNull()})})diff --git a/frontend/src/scenes/marketing-analytics/NewMarketingAnalyticsDashboard.tsx b/frontend/src/scenes/marketing-analytics/NewMarketingAnalyticsDashboard.tsxindex 0ff7d4319bf0..53424576008d 100644--- a/frontend/src/scenes/marketing-analytics/NewMarketingAnalyticsDashboard.tsx+++ b/frontend/src/scenes/marketing-analytics/NewMarketingAnalyticsDashboard.tsx@@ -1,6 +1,7 @@import { useActions, useValues } from 'kea'-import { useEffect, useRef } from 'react'+import { useEffect, useRef, useState } from 'react'+import { IconCursor, IconPeople, IconRetention, IconTarget, IconTrends } from '@posthog/icons'import { LemonBanner, LemonButton, LemonCollapse, LemonSelect, LemonSkeleton } from '@posthog/lemon-ui'import { CompareFilter } from 'lib/components/CompareFilter/CompareFilter'@@ -21,7 +22,6 @@ import {import { marketingAttributionLogic } from 'scenes/web-analytics/tabs/marketing-analytics/frontend/logic/marketingAttributionLogic'import { BREAKDOWN_LABELS } from 'scenes/web-analytics/tabs/marketing-analytics/frontend/logic/marketingBreakdown'import { setupPlanLogic } from 'scenes/web-analytics/tabs/marketing-analytics/frontend/logic/setupPlanLogic'-import { MarketingAnalyticsCell } from 'scenes/web-analytics/tabs/marketing-analytics/frontend/shared'import { webAnalyticsDataTableQueryContext } from 'scenes/web-analytics/tiles/WebAnalyticsTile'import { dataNodeLogic } from '~/queries/nodes/DataNode/dataNodeLogic'@@ -29,76 +29,84 @@ import { OverviewMetricCardGrid } from '~/queries/nodes/OverviewGrid/OverviewMetimport { labelFromKey } from '~/queries/nodes/WebOverview/WebOverview'import { Query } from '~/queries/Query/Query'import {- DataTableNode,MarketingAnalyticsAttributionBreakdown,- MarketingAnalyticsBaseColumns,- MarketingAnalyticsDrillDownLevel,NodeKind,WebOverviewQuery,WebOverviewQueryResponse,+ WebStatsBreakdown,} from '~/queries/schema/schema-general'-import { QueryContext, QueryContextColumn } from '~/queries/types'+import { QueryContext } from '~/queries/types'import { SuggestionRow } from './Setup/SuggestionRow'-// Channel is the top level because it covers all traffic, not just the platforms with a-// connected ad source. Source is the second column so a channel breaks down into the-// sources that make it up.-const COLUMNS: string[] = [- 'Channel',- MarketingAnalyticsBaseColumns.Source,- // Sessions comes from the sessions table, so it's the only column that has a value for- // traffic with no ad spend behind it (organic, direct, referral).- 'Sessions',- MarketingAnalyticsBaseColumns.Cost,- MarketingAnalyticsBaseColumns.Clicks,- MarketingAnalyticsBaseColumns.Impressions,- MarketingAnalyticsBaseColumns.CPC,- MarketingAnalyticsBaseColumns.CTR,+const TRAFFIC_BREAKDOWNS = [+ { value: WebStatsBreakdown.InitialChannelType, label: 'Channel' },+ { value: WebStatsBreakdown.InitialUTMSource, label: 'UTM source' },+ { value: WebStatsBreakdown.InitialUTMCampaign, label: 'Campaign' },+ { value: WebStatsBreakdown.InitialUTMMedium, label: 'Medium' },+ { value: WebStatsBreakdown.InitialReferringDomain, label: 'Referring domain' },+ { value: WebStatsBreakdown.InitialPage, label: 'Landing page' },]-const CHANNEL_SOURCE_BREAKDOWN: DataTableNode = {- kind: NodeKind.DataTableNode,- source: {- kind: NodeKind.MarketingAnalyticsTableQuery,- dateRange: { date_from: '-30d', date_to: null },- drillDownLevel: MarketingAnalyticsDrillDownLevel.ChannelSource,- select: COLUMNS,- // Sort by channel first so every source of a channel lands together, then by traffic- // within the channel — sessions is the one metric every row has.- orderBy: [- ['Channel', 'ASC'],- ['Sessions', 'DESC'],- ],- properties: [],- limit: 200,- tags: MARKETING_ANALYTICS_DEFAULT_QUERY_TAGS,- },- full: true,- embedded: false,- showOpenEditorButton: false,- showElapsedTime: true,- showTimings: true,-}--// Every cell is a MarketingAnalyticsItem, not a scalar — without a render fn the table falls-// through to the raw JSON viewer.const QUERY_CONTEXT: QueryContext = {...webAnalyticsDataTableQueryContext,- columns: COLUMNS.reduce(- (acc, column) => {- acc[column] = { render: MarketingAnalyticsCell }- return acc- },- {} as Record<string, QueryContextColumn>- ),+ columns: {+ ...webAnalyticsDataTableQueryContext.columns,+ visitors: { ...webAnalyticsDataTableQueryContext.columns?.visitors, renderTitle: () => <>Visitors</> },+ views: { ...webAnalyticsDataTableQueryContext.columns?.views, renderTitle: () => <>Pageviews</> },+ bounce_rate: { ...webAnalyticsDataTableQueryContext.columns?.bounce_rate, renderTitle: () => <>Bounce rate</> },+ },}// Scaffold for the redesigned marketing analytics dashboard, gated behind the// `new-marketing-analytics-dashboard` feature flag.export function NewMarketingAnalyticsDashboard(): JSX.Element {+ const [selectedSection, setSelectedSection] = useState('acquisition')+ const [trafficBreakdown, setTrafficBreakdown] = useState(WebStatsBreakdown.InitialChannelType)const { currentTeam, currentTeamLoading } = useValues(teamLogic)const { featureFlags } = useValues(featureFlagLogic)+ const sections = [+ {+ key: 'acquisition',+ title: 'Acquisition',+ description: 'Visitors, sessions and pageviews',+ icon: <IconPeople />,+ },+ {+ key: 'engagement',+ title: 'Engagement',+ description: 'Session duration and bounce rate',+ icon: <IconCursor />,+ },+ ...(featureFlags[FEATURE_FLAGS.MARKETING_ANALYTICS_RETENTION]+ ? [+ {+ key: 'retention',+ title: 'Retention',+ description: 'Returning visitors by cohort',+ icon: <IconRetention />,+ },+ ]+ : []),+ ...(featureFlags[FEATURE_FLAGS.MARKETING_ANALYTICS_ATTRIBUTION]+ ? [+ {+ key: 'conversion',+ title: 'Conversion',+ description: 'Goals and conversion paths',+ icon: <IconTarget />,+ },+ {+ key: 'revenue',+ title: 'Revenue',+ description: 'Revenue by attribution model',+ icon: <IconTrends />,+ },+ ]+ : []),+ ]+ const activeSection = sections.some(({ key }) => key === selectedSection) ? selectedSection : 'acquisition'+ const isTraffic = activeSection === 'acquisition' || activeSection === 'engagement'const { revenueGoals, selectedRevenueGoalId, revenueQuery, breakdownBy } = useValues(marketingAttributionLogic)const { setRevenueGoalId, setBreakdownBy } = useActions(marketingAttributionLogic)const { dateFilter, compareFilter, shouldFilterTestAccounts } = useValues(marketingAnalyticsLogic)@@ -138,10 +146,14 @@ export function NewMarketingAnalyticsDashboard(): JSX.Element {<div className="mt-4 flex flex-col gap-4"><div className="flex flex-wrap items-center gap-2"><DateFilter dateFrom={dateFilter.dateFrom} dateTo={dateFilter.dateTo} onChange={setDates} />- <CompareFilter compareFilter={compareFilter} updateCompareFilter={setCompareFilter} />- <LemonButton size="small" loading={responseLoading} onClick={() => loadData('force_async')}>- Reload summary- </LemonButton>+ {isTraffic && (+ <>+ <CompareFilter compareFilter={compareFilter} updateCompareFilter={setCompareFilter} />+ <LemonButton size="small" loading={responseLoading} onClick={() => loadData('force_async')}>+ Reload summary+ </LemonButton>+ </>+ )}</div>{sourceSuggestions.length > 0 && (<div className="border rounded">@@ -175,118 +187,171 @@ export function NewMarketingAnalyticsDashboard(): JSX.Element {/></div>)}- {responseError ? (- <LemonBanner type="error" action={{ children: 'Retry', onClick: () => loadData('force_async') }}>- Could not load traffic metrics. Try again.- </LemonBanner>- ) : (- [- { title: 'Acquisition', keys: ['visitors', 'sessions', 'views'] },- { title: 'Engagement', keys: ['session duration', 'bounce rate'] },- ].map(({ title, keys }) => (- <section key={title} className="flex flex-col gap-2" aria-label={title}>- <h2 className="mb-0">{title}</h2>- <OverviewMetricCardGrid- items={keys.flatMap((key) =>- (overview?.results?.filter((item) => item.key === key) ?? []).map((item) => ({- ...item,- value: item.value,- }))- )}- loading={responseLoading}- numSkeletons={keys.length}- samplingRate={overview?.samplingRate}- preComputeStrategy={overview?.preComputeStrategy}- labelFromKey={labelFromKey}- />+ <nav aria-label="Dashboard sections" className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-3">+ {sections.map(({ key, title, description, icon }) => (+ <LemonButton+ key={key}+ type={activeSection === key ? 'primary' : 'secondary'}+ onClick={() => setSelectedSection(key)}+ aria-pressed={activeSection === key}+ aria-controls="marketing-dashboard-section"+ className="h-full"+ fullWidth+ >+ <div className="flex flex-col gap-2 py-2 text-left">+ <span className="flex items-center gap-2 text-lg font-semibold">+ {icon}+ {title}+ </span>+ <span className="font-normal">{description}</span>+ </div>+ </LemonButton>+ ))}+ </nav>+ <div id="marketing-dashboard-section" className="flex flex-col gap-4">+ {isTraffic &&+ (responseError ? (+ <LemonBanner+ type="error"+ action={{ children: 'Retry', onClick: () => loadData('force_async') }}+ >+ Could not load traffic metrics. Try again.+ </LemonBanner>+ ) : (+ [+ { key: 'acquisition', title: 'Acquisition', keys: ['visitors', 'sessions', 'views'] },+ { key: 'engagement', title: 'Engagement', keys: ['session duration', 'bounce rate'] },+ ]+ .filter(({ key }) => key === activeSection)+ .map(({ title, keys }) => (+ <section key={title} className="flex flex-col gap-2" aria-label={title}>+ <h2 className="mb-0">{title}</h2>+ <OverviewMetricCardGrid+ items={keys.flatMap((key) =>+ (overview?.results?.filter((item) => item.key === key) ?? []).map(+ (item) => ({+ ...item,+ value: item.value,+ })+ )+ )}+ loading={responseLoading}+ numSkeletons={keys.length}+ samplingRate={overview?.samplingRate}+ preComputeStrategy={overview?.preComputeStrategy}+ labelFromKey={labelFromKey}+ />+ </section>+ ))+ ))}+ {activeSection === 'conversion' && (+ <section aria-label="Conversion" className="flex flex-col gap-2">+ <h2 className="mb-0">Conversion</h2>+ <AttributionTab /></section>- ))- )}- {featureFlags[FEATURE_FLAGS.MARKETING_ANALYTICS_ATTRIBUTION] && (- <section aria-label="Conversion" className="flex flex-col gap-2">- <h2 className="mb-0">Conversion</h2>- <AttributionTab />- </section>- )}- {featureFlags[FEATURE_FLAGS.MARKETING_ANALYTICS_RETENTION] && (- <section aria-label="Retention" className="flex flex-col gap-2">- <h2 className="mb-0">Retention</h2>- <p className="text-secondary mb-0">- Follow visitors acquired in the selected date range across subsequent periods.- </p>- <RetentionTab />- </section>- )}- {featureFlags[FEATURE_FLAGS.MARKETING_ANALYTICS_ATTRIBUTION] && (- <section aria-label="Revenue" className="flex flex-col gap-4">- <h2 className="mb-0">Revenue</h2>- {currentTeamLoading || !currentTeam ? (- <LemonSkeleton className="h-40" />- ) : revenueQuery ? (- <>- <div className="flex flex-wrap items-center gap-2">- <DateFilter- dateFrom={dateFilter.dateFrom}- dateTo={dateFilter.dateTo}- onChange={setDates}- />- <LemonSelect- value={selectedRevenueGoalId}- onChange={(value) => value && setRevenueGoalId(value)}- options={revenueGoals.map((goal) => ({- value: goal.conversion_goal_id,- label: goal.conversion_goal_name,- }))}- data-attr="marketing-revenue-goal"- />- <LemonSelect- value={breakdownBy}- onChange={setBreakdownBy}- options={Object.values(MarketingAnalyticsAttributionBreakdown).map((value) => ({- value,- label: BREAKDOWN_LABELS[value],- }))}- data-attr="marketing-revenue-breakdown"+ )}+ {activeSection === 'retention' && (+ <section aria-label="Retention" className="flex flex-col gap-2">+ <h2 className="mb-0">Retention</h2>+ <p className="text-secondary mb-0">+ Follow visitors acquired in the selected date range across subsequent periods.+ </p>+ <RetentionTab />+ </section>+ )}+ {activeSection === 'revenue' && (+ <section aria-label="Revenue" className="flex flex-col gap-4">+ <h2 className="mb-0">Revenue</h2>+ {currentTeamLoading || !currentTeam ? (+ <LemonSkeleton className="h-40" />+ ) : revenueQuery ? (+ <>+ <div className="flex flex-wrap items-center gap-2">+ <DateFilter+ dateFrom={dateFilter.dateFrom}+ dateTo={dateFilter.dateTo}+ onChange={setDates}+ />+ <LemonSelect+ value={selectedRevenueGoalId}+ onChange={(value) => value && setRevenueGoalId(value)}+ options={revenueGoals.map((goal) => ({+ value: goal.conversion_goal_id,+ label: goal.conversion_goal_name,+ }))}+ data-attr="marketing-revenue-goal"+ />+ <LemonSelect+ value={breakdownBy}+ onChange={setBreakdownBy}+ options={Object.values(MarketingAnalyticsAttributionBreakdown).map((value) => ({+ value,+ label: BREAKDOWN_LABELS[value],+ }))}+ data-attr="marketing-revenue-breakdown"+ />+ </div>+ <p className="text-secondary mb-0">+ Compare attributed value across models for one revenue goal at a time.+ </p>+ <AttributionTable+ metric="revenue"+ query={revenueQuery}+ attachTo={marketingAnalyticsLogic}/>- </div>- <p className="text-secondary mb-0">- Compare attributed value across models for one revenue goal at a time.- </p>- <AttributionTable- metric="revenue"- query={revenueQuery}- attachTo={marketingAnalyticsLogic}+ </>+ ) : (+ <LemonBanner+ type="info"+ action={{+ children: 'Review in Setup',+ onClick: () => {+ setSetupSection(SetupSection.CONVERSION_GOALS)+ setActiveTab(MarketingAnalyticsTab.SETUP)+ },+ }}+ >+ Choose an event or action goal that sums an amount and mark it as Revenue in Setup.+ </LemonBanner>+ )}+ </section>+ )}+ {isTraffic && (+ <>+ <div className="flex items-center gap-2">+ <span>Breakdown by</span>+ <LemonSelect+ value={trafficBreakdown}+ onChange={setTrafficBreakdown}+ options={TRAFFIC_BREAKDOWNS}+ aria-label="Traffic breakdown"/>- </>- ) : (- <LemonBanner- type="info"- action={{- children: 'Review in Setup',- onClick: () => {- setSetupSection(SetupSection.CONVERSION_GOALS)- setActiveTab(MarketingAnalyticsTab.SETUP)+ </div>+ <Query+ query={{+ kind: NodeKind.DataTableNode,+ source: {+ kind: NodeKind.WebStatsTableQuery,+ breakdownBy: trafficBreakdown,+ dateRange,+ compareFilter,+ filterTestAccounts: shouldFilterTestAccounts,+ includeBounceRate: activeSection === 'engagement',+ properties: [],+ limit: 25,+ tags: MARKETING_ANALYTICS_DEFAULT_QUERY_TAGS,},+ hiddenColumns: activeSection === 'engagement' ? ['context.columns.views'] : [],+ full: true,+ embedded: false,+ showOpenEditorButton: false,}}- >- Choose an event or action goal that sums an amount and mark it as Revenue in Setup.- </LemonBanner>- )}- </section>- )}- <Query- query={{- ...CHANNEL_SOURCE_BREAKDOWN,- source: {- ...CHANNEL_SOURCE_BREAKDOWN.source,- dateRange,- compareFilter,- filterTestAccounts: shouldFilterTestAccounts,- },- }}- context={QUERY_CONTEXT}- readOnly- />+ context={{ ...QUERY_CONTEXT, compareFilter }}+ readOnly+ />+ </>+ )}+ </div></div>)}