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.

feat(web-analytics): Clarify breakdown row actions (#80168)

Jordan Mryyan9011fe4cdd43
diff --git a/frontend/src/scenes/web-analytics/CrossSellButtons/ReplayButton.tsx b/frontend/src/scenes/web-analytics/CrossSellButtons/ReplayButton.tsx
index 4fa4564b4823..5bc5ea2c298f 100644
--- a/frontend/src/scenes/web-analytics/CrossSellButtons/ReplayButton.tsx
+++ b/frontend/src/scenes/web-analytics/CrossSellButtons/ReplayButton.tsx
@@ -139,7 +139,12 @@ export const ReplayButton = ({
const renderButton = (filters: Partial<RecordingUniversalFilters>): JSX.Element => (
<div onClick={handleClick}>
- <ViewRecordingsPlaylistButton filters={filters} type="tertiary" size="xsmall" />
+ <ViewRecordingsPlaylistButton
+ filters={filters}
+ type="tertiary"
+ size="xsmall"
+ tooltip="View session recordings for this segment"
+ />
</div>
)
diff --git a/frontend/src/scenes/web-analytics/tiles/WebAnalyticsTile.tsx b/frontend/src/scenes/web-analytics/tiles/WebAnalyticsTile.tsx
index bc26d9532373..4414f6d98a16 100644
--- a/frontend/src/scenes/web-analytics/tiles/WebAnalyticsTile.tsx
+++ b/frontend/src/scenes/web-analytics/tiles/WebAnalyticsTile.tsx
@@ -1118,6 +1118,8 @@ export const WebStatsTableTile = ({
]
)
+ const canFilterRow = !includeHost && productTab !== ProductTab.PAGE_REPORTS
+
const context = useMemo((): QueryContext => {
const rowProps: QueryContext['rowProps'] = (record: unknown) => {
// Compound breakdowns (UTM s/m/c, Viewport, Timezone) have dedicated handling in onClick
@@ -1130,7 +1132,7 @@ export const WebStatsTableTile = ({
return {}
}
- return { onClick: () => onClick(breakdownValue) }
+ return { onClick: () => onClick(breakdownValue), ...(canFilterRow && { title: 'Filter by this value' }) }
}
return {
@@ -1140,7 +1142,7 @@ export const WebStatsTableTile = ({
compareFilter: 'compareFilter' in query.source ? query.source.compareFilter : undefined,
showLoadNextButton: enablePagination,
}
- }, [onClick, insightProps, breakdownBy, key, type, isCompoundBreakdown, query, enablePagination])
+ }, [onClick, insightProps, breakdownBy, key, type, isCompoundBreakdown, query, enablePagination, canFilterRow])
const numericColumns = PAGE_LIKE_BREAKDOWNS.has(breakdownBy) ? 3 : 2
const dataNodeLogicProps = buildDataTableTileDataNodeLogicProps({