Skip to content

: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.

fix(web-analytics): serve page-reports URL search from precompute (#66369)

Lucas Ricoycf45524ebfc0
diff --git a/frontend/src/scenes/web-analytics/pageReportsLogic.ts b/frontend/src/scenes/web-analytics/pageReportsLogic.ts
index 17168e5ff810..1fb8ca0218c0 100644
--- a/frontend/src/scenes/web-analytics/pageReportsLogic.ts
+++ b/frontend/src/scenes/web-analytics/pageReportsLogic.ts
@@ -151,6 +151,7 @@ export const pageReportsLogic = kea<pageReportsLogicType>({
'compareFilter',
'webAnalyticsFilters',
'isPathCleaningEnabled',
+ 'controls',
],
featureFlagLogic,
['featureFlags'],
@@ -223,6 +224,15 @@ export const pageReportsLogic = kea<pageReportsLogicType>({
kind: NodeKind.WebStatsTableQuery,
breakdownBy: WebStatsBreakdown.Page,
includeHost: true,
+ // Serve the unfiltered URL list from the paths lazy-precompute
+ // instead of a multi-second live scan. The precompute eligibility
+ // gate requires includeBounceRate, so request it even though the
+ // picker only reads the path column (the URL set/order is unchanged).
+ // A search term adds a pathname filter, which the gate rejects, so
+ // those queries stay on the live path. Reuse the dashboard's resolved
+ // tri-state so an explicit user opt-out in the menu is honored here too.
+ includeBounceRate: true,
+ useWebAnalyticsPrecompute: values.controls.useWebAnalyticsPrecompute,
dateRange,
properties: searchTerm
? [