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): Prevent live overview white screens (#90530)

Jordan Mryyancbe3e406940d
diff --git a/frontend/src/scenes/web-analytics/LiveMetricsDashboard/LiveWebAnalyticsMetrics.tsx b/frontend/src/scenes/web-analytics/LiveMetricsDashboard/LiveWebAnalyticsMetrics.tsx
index 8fe47edcdb30..63536b4d3eb6 100644
--- a/frontend/src/scenes/web-analytics/LiveMetricsDashboard/LiveWebAnalyticsMetrics.tsx
+++ b/frontend/src/scenes/web-analytics/LiveMetricsDashboard/LiveWebAnalyticsMetrics.tsx
@@ -412,6 +412,7 @@ export const LiveWebAnalyticsMetrics = (): JSX.Element => {
subtitle={timezone}
subtitleTooltip="Metrics are shown in your local timezone"
isLoading={isLoading}
+ contentClassName="h-64 md:h-80"
>
<UsersPerMinuteChart data={chartData} timezone={timezone} />
</LiveChartCard>
diff --git a/frontend/src/scenes/web-analytics/LiveMetricsDashboard/liveWebAnalyticsMetricsLogic.tsx b/frontend/src/scenes/web-analytics/LiveMetricsDashboard/liveWebAnalyticsMetricsLogic.tsx
index 4a47338aa6e0..f76acc806352 100644
--- a/frontend/src/scenes/web-analytics/LiveMetricsDashboard/liveWebAnalyticsMetricsLogic.tsx
+++ b/frontend/src/scenes/web-analytics/LiveMetricsDashboard/liveWebAnalyticsMetricsLogic.tsx
@@ -754,7 +754,7 @@ export const liveWebAnalyticsMetricsLogic = kea<liveWebAnalyticsMetricsLogicType
if (cache.isPaused) {
return
}
- actions.loadInitialData()
+ actions.loadInitialData(true)
},
updateConnection: () => {
cache.eventsConnection?.abort()