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.

chore(web-analytics): Clean up rolled out flags (#61957)

Jordan Mryyan97b4a7b41ac2
diff --git a/frontend/src/lib/components/HelpMenu/HelpMenu.tsx b/frontend/src/lib/components/HelpMenu/HelpMenu.tsx
index beaf4dd0163d..a149744b4074 100644
--- a/frontend/src/lib/components/HelpMenu/HelpMenu.tsx
+++ b/frontend/src/lib/components/HelpMenu/HelpMenu.tsx
@@ -52,7 +52,7 @@ import { posthogStatusLogic } from './posthogStatusLogic'
export function HelpMenu({ iconOnly = false }: { iconOnly?: boolean }): JSX.Element {
const { openSidePanel } = useActions(sidePanelStateLogic)
- const { isHelpMenuOpen, isUnifiedHealthEnabled, triggerBadgeContent, triggerBadgeStatus } = useValues(helpMenuLogic)
+ const { isHelpMenuOpen, triggerBadgeContent, triggerBadgeStatus } = useValues(helpMenuLogic)
const { setHelpMenuOpen } = useActions(helpMenuLogic)
const { toggleZenMode } = useActions(navigation3000Logic)
const { setAppShortcutMenuOpen } = useActions(appShortcutLogic)
@@ -216,34 +216,32 @@ export function HelpMenu({ iconOnly = false }: { iconOnly?: boolean }): JSX.Elem
</Link>
)}
/>
- {isUnifiedHealthEnabled && (
- <Menu.Item
- render={(props) => (
- <Link
- {...props}
- to={urls.health()}
- buttonProps={{ menuItem: true }}
- tooltip={
- totalIssues > 0
- ? `${totalIssues} health issue${totalIssues === 1 ? '' : 's'}`
- : 'All systems healthy'
- }
- tooltipPlacement="right"
- tooltipCloseDelayMs={0}
- data-attr="help-menu-health-issues-button"
+ <Menu.Item
+ render={(props) => (
+ <Link
+ {...props}
+ to={urls.health()}
+ buttonProps={{ menuItem: true }}
+ tooltip={
+ totalIssues > 0
+ ? `${totalIssues} health issue${totalIssues === 1 ? '' : 's'}`
+ : 'All systems healthy'
+ }
+ tooltipPlacement="right"
+ tooltipCloseDelayMs={0}
+ data-attr="help-menu-health-issues-button"
+ >
+ <IconWithBadge
+ size="xsmall"
+ content={triggerBadgeContent}
+ status={triggerBadgeStatus}
>
- <IconWithBadge
- size="xsmall"
- content={triggerBadgeContent}
- status={triggerBadgeStatus}
- >
- <IconStethoscope />
- </IconWithBadge>
- Health issues
- </Link>
- )}
- />
- )}
+ <IconStethoscope />
+ </IconWithBadge>
+ Health issues
+ </Link>
+ )}
+ />
{!isCloudOrDev && (
<Menu.Item
diff --git a/frontend/src/lib/components/HelpMenu/helpMenuLogic.tsx b/frontend/src/lib/components/HelpMenu/helpMenuLogic.tsx
index 183abb2c542e..fef45ffea20f 100644
--- a/frontend/src/lib/components/HelpMenu/helpMenuLogic.tsx
+++ b/frontend/src/lib/components/HelpMenu/helpMenuLogic.tsx
@@ -1,8 +1,5 @@
import { actions, connect, kea, path, reducers, selectors } from 'kea'
-import { FEATURE_FLAGS } from 'lib/constants'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
-
import { healthSummaryLogic } from './healthSummaryLogic'
import type { helpMenuLogicType } from './helpMenuLogicType'
@@ -11,12 +8,7 @@ export type HelpBadgeStatus = 'danger' | 'warning' | 'success'
export const helpMenuLogic = kea<helpMenuLogicType>([
path(['lib', 'components', 'HelpMenu', 'helpMenuLogic']),
connect(() => ({
- values: [
- healthSummaryLogic,
- ['totalIssues', 'criticalCount', 'warningCount'],
- featureFlagLogic,
- ['featureFlags'],
- ],
+ values: [healthSummaryLogic, ['totalIssues', 'criticalCount', 'warningCount']],
})),
actions({
setHelpMenuOpen: (isOpen: boolean) => ({ isOpen }),
@@ -32,14 +24,7 @@ export const helpMenuLogic = kea<helpMenuLogicType>([
],
}),
selectors({
- isUnifiedHealthEnabled: [
- (s) => [s.featureFlags],
- (featureFlags): boolean => !!featureFlags[FEATURE_FLAGS.UNIFIED_HEALTH_PAGE],
- ],
- hasHealthIssue: [
- (s) => [s.isUnifiedHealthEnabled, s.totalIssues],
- (isUnifiedHealthEnabled, totalIssues): boolean => isUnifiedHealthEnabled && totalIssues > 0,
- ],
+ hasHealthIssue: [(s) => [s.totalIssues], (totalIssues): boolean => totalIssues > 0],
triggerBadgeContent: [(s) => [s.hasHealthIssue], (hasHealthIssue): string => (hasHealthIssue ? '!' : '')],
triggerBadgeStatus: [
(s) => [s.hasHealthIssue, s.criticalCount, s.warningCount],
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index de0fcb0941a1..b5485ba17155 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -495,7 +495,6 @@ export const FEATURE_FLAGS = {
TOGGLE_PROPERTY_ARRAYS: 'toggle-property-arrays', // owner: @arthurdedeus #team-customer-analytics
TRACING: 'tracing', // owner: #team-apm (@jonmcwest, @frankh)
TRAFFIC_TYPE_VIRTUAL_PROPERTIES: 'traffic-type-virtual-properties', // owner: #team-web-analytics
- UNIFIED_HEALTH_PAGE: 'unified-health-page', // owner: @jordanm-posthog #team-web-analytics
USER_INTERVIEWS: 'user-interviews', // owner: @Twixes @jurajmajerik
UX_REMOVE_SIDEPANEL: 'ux-remove-sidepanel', // owner: #team-surveys
VISUAL_REVIEW: 'visual-review', // owner: #team-devex
@@ -507,12 +506,8 @@ export const FEATURE_FLAGS = {
WEB_ANALYTICS_FOCUS_MODE: 'web-analytics-focus-mode', // owner: @jordanm-posthog #team-web-analytics
WEB_ANALYTICS_INCLUDE_HOST: 'web-analytics-include-host', // owner: @lricoy #team-web-analytics
WEB_ANALYTICS_LIVE_CITY_BREAKDOWN: 'web-analytics-live-city-breakdown', // owner: @jordanm-posthog #team-web-analytics
- WEB_ANALYTICS_LIVE_EDIT_LAYOUT: 'web-analytics-live-edit-layout', // owner: @jordanm-posthog #team-web-analytics
- WEB_ANALYTICS_LIVE_FILTERS: 'web-analytics-live-filters', // owner: @jordanm-posthog #team-web-analytics
WEB_ANALYTICS_LIVE_MAP: 'web-analytics-live-map', // owner: @jordanm-posthog #team-web-analytics
- WEB_ANALYTICS_LIVE_METRICS: 'web-analytics-live-metrics', // owner: @jordanm-posthog #team-web-analytics
WEB_ANALYTICS_LIVE_PERSON_DRILLDOWN: 'web-analytics-live-person-drilldown', // owner: @jordanm-posthog #team-web-analytics
- WEB_ANALYTICS_LIVE_REFERRERS: 'web-analytics-live-referrers', // owner: @jordanm-posthog #team-web-analytics
WEB_ANALYTICS_MARKETING: 'marketing-analytics', // owner: @jabahamondes #team-web-analytics
WEB_ANALYTICS_OPEN_URL: 'web-analytics-open-url', // owner: @lricoy #team-web-analytics
WEB_ANALYTICS_PRECOMPUTE_TOGGLE: 'web-analytics-precompute-toggle', // owner: @lricoy #team-web-analytics
diff --git a/frontend/src/scenes/health/HealthScene.tsx b/frontend/src/scenes/health/HealthScene.tsx
index 1bc5e595fed9..ab2ccdc16ac5 100644
--- a/frontend/src/scenes/health/HealthScene.tsx
+++ b/frontend/src/scenes/health/HealthScene.tsx
@@ -1,17 +1,7 @@
import { useActions, useValues } from 'kea'
-import {
- IconBell,
- IconCheck,
- IconCode,
- IconDatabase,
- IconEllipsis,
- IconRefresh,
- IconSparkles,
- IconSupport,
- IconWarning,
-} from '@posthog/icons'
-import { LemonBanner, LemonButton, LemonMenu, Link } from '@posthog/lemon-ui'
+import { IconBell, IconCheck, IconEllipsis, IconRefresh, IconSparkles, IconSupport } from '@posthog/icons'
+import { LemonBanner, LemonButton, LemonMenu } from '@posthog/lemon-ui'
import { supportLogic } from 'lib/components/Support/supportLogic'
import { FEATURE_FLAGS } from 'lib/constants'
@@ -31,75 +21,7 @@ import { PlatformStatusBanner } from './components/PlatformStatusBanner'
import { healthSceneLogic } from './healthSceneLogic'
import { buildHealthOverviewPrompt, HEALTH_OVERVIEW_QUESTIONS } from './healthUtils'
-const HealthCard = ({
- title,
- description,
- icon,
- to,
-}: {
- title: string
- description: string
- icon: React.ReactNode
- to: string
-}): JSX.Element => {
- return (
- <Link
- to={to}
- className="flex flex-col gap-4 justify-between border border-primary bg-surface-primary rounded p-8 transition-colors cursor-pointer h-full shadow hover:border-accent"
- >
- <div className="size-8 flex items-center justify-center text-primary">{icon}</div>
- <div>
- <h3 className="text-sm font-semibold line-clamp-2 flex-1 mb-0">{title}</h3>
- <p className="text-sm text-text-tertiary mb-0">{description}</p>
- </div>
- </Link>
- )
-}
-
-const DetailedViewCards = (): JSX.Element => {
- const { featureFlags } = useValues(featureFlagLogic)
- const pipelineStatusEnabled = !!featureFlags[FEATURE_FLAGS.PIPELINE_STATUS_PAGE]
-
- return (
- <div className="grid grid-cols-1 @2xl/main-content:grid-cols-3 gap-4 max-w-3xl">
- <HealthCard
- title="Ingestion warnings"
- description="Click to view"
- icon={<IconWarning className="size-6" />}
- to={urls.ingestionWarnings()}
- />
- <HealthCard
- title="SDK health"
- description="Click to view"
- icon={<IconCode className="size-6" />}
- to={urls.sdkDoctor()}
- />
- {pipelineStatusEnabled && (
- <HealthCard
- title="Pipelines status"
- description="Click to view"
- icon={<IconDatabase className="size-6" />}
- to={urls.pipelineStatus()}
- />
- )}
- </div>
- )
-}
-
-const LegacyHealthScene = (): JSX.Element => {
- return (
- <SceneContent>
- <SceneTitleSection
- name="Health"
- description="See an at-a-glance view of the health of your project."
- resourceType={{ type: 'health' }}
- />
- <DetailedViewCards />
- </SceneContent>
- )
-}
-
-const UnifiedHealthScene = (): JSX.Element => {
+export const HealthScene = (): JSX.Element => {
const { showDismissed, healthIssuesLoading, isRefreshInFlight, nextRefreshAvailableAt, issues } =
useValues(healthSceneLogic)
const { refreshHealthData, setShowDismissed } = useActions(healthSceneLogic)
@@ -206,11 +128,6 @@ const UnifiedHealthScene = (): JSX.Element => {
)
}
-export const HealthScene = (): JSX.Element => {
- const { unifiedHealthPageEnabled } = useValues(healthSceneLogic)
- return unifiedHealthPageEnabled ? <UnifiedHealthScene /> : <LegacyHealthScene />
-}
-
export const scene: SceneExport = {
component: HealthScene,
logic: healthSceneLogic,
diff --git a/frontend/src/scenes/health/healthSceneLogic.tsx b/frontend/src/scenes/health/healthSceneLogic.tsx
index cae2d55b91dc..7966cb08fe7b 100644
--- a/frontend/src/scenes/health/healthSceneLogic.tsx
+++ b/frontend/src/scenes/health/healthSceneLogic.tsx
@@ -3,9 +3,7 @@ import { loaders } from 'kea-loaders'
import api, { ApiError } from 'lib/api'
import { healthSummaryLogic } from 'lib/components/HelpMenu/healthSummaryLogic'
-import { FEATURE_FLAGS } from 'lib/constants'
import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { tabAwareScene } from 'lib/logic/scenes/tabAwareScene'
import { sceneConfigurations } from 'scenes/scenes'
import { Scene } from 'scenes/sceneTypes'
@@ -29,7 +27,7 @@ export const healthSceneLogic = kea<healthSceneLogicType>([
path(['scenes', 'health', 'healthSceneLogic']),
tabAwareScene(),
connect({
- values: [featureFlagLogic, ['featureFlags'], teamLogic, ['currentTeamIdStrict']],
+ values: [teamLogic, ['currentTeamIdStrict']],
}),
actions({
setShowDismissed: (show: boolean) => ({ show }),
@@ -74,9 +72,6 @@ export const healthSceneLogic = kea<healthSceneLogicType>([
null as HealthIssuesResponse | null,
{
loadHealthIssues: async (): Promise<HealthIssuesResponse | null> => {
- if (!values.unifiedHealthPageEnabled) {
- return null
- }
const params: Record<string, string> = { status: 'active' }
if (!values.showDismissed) {
params.dismissed = 'false'
@@ -91,10 +86,6 @@ export const healthSceneLogic = kea<healthSceneLogicType>([
],
})),
selectors({
- unifiedHealthPageEnabled: [
- (s) => [s.featureFlags],
- (featureFlags): boolean => !!featureFlags[FEATURE_FLAGS.UNIFIED_HEALTH_PAGE],
- ],
issues: [
(s) => [s.healthIssues],
(healthIssues: HealthIssuesResponse | null): HealthIssue[] => healthIssues?.results ?? [],
@@ -240,13 +231,11 @@ export const healthSceneLogic = kea<healthSceneLogicType>([
},
})),
afterMount(({ actions, values }) => {
- if (values.unifiedHealthPageEnabled) {
- actions.loadHealthIssues()
+ actions.loadHealthIssues()
- const { nextRefreshAvailableAt } = values
- if (nextRefreshAvailableAt === null || nextRefreshAvailableAt <= Date.now()) {
- actions.refreshHealthData(false)
- }
+ const { nextRefreshAvailableAt } = values
+ if (nextRefreshAvailableAt === null || nextRefreshAvailableAt <= Date.now()) {
+ actions.refreshHealthData(false)
}
if (values.nextRefreshAvailableAt !== null) {
diff --git a/frontend/src/scenes/web-analytics/LiveMetricsDashboard/LiveWebAnalyticsMetrics.tsx b/frontend/src/scenes/web-analytics/LiveMetricsDashboard/LiveWebAnalyticsMetrics.tsx
index 3b312885dbb5..d86ad5d6e87d 100644
--- a/frontend/src/scenes/web-analytics/LiveMetricsDashboard/LiveWebAnalyticsMetrics.tsx
+++ b/frontend/src/scenes/web-analytics/LiveMetricsDashboard/LiveWebAnalyticsMetrics.tsx
@@ -85,28 +85,19 @@ const renderCountryIcon = (d: CountryBreakdownItem): JSX.Element => {
}
const LiveDashboardFilterRow = ({
- canEditLayout,
isEditing,
resetLayout,
setEditing,
}: {
- canEditLayout: boolean
isEditing: boolean
resetLayout: () => void
setEditing: (isEditing: boolean) => void
-}): JSX.Element | null => {
+}): JSX.Element => {
const [displayFilters, setDisplayFilters] = useState(false)
- const { featureFlags } = useValues(featureFlagLogic)
const { rawWebAnalyticsFilters, deviceTypeFilter, validatedDomainFilter } = useValues(webAnalyticsLogic)
const { setCountryFilter, setReferrerFilter, setDeviceTypeFilter, setDomainFilter, setWebAnalyticsFilters } =
useActions(webAnalyticsLogic)
- const showLiveFilters = !!featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_LIVE_FILTERS]
-
- if (!showLiveFilters && !canEditLayout) {
- return null
- }
-
const hasDomainFilter = !!validatedDomainFilter && validatedDomainFilter !== 'all'
const livePropertyFilters = rawWebAnalyticsFilters.filter(isLiveStreamFilter)
const preservedOverviewFilters = rawWebAnalyticsFilters.filter((f) => !isLiveStreamFilter(f))
@@ -163,51 +154,46 @@ const LiveDashboardFilterRow = ({
left={null}
right={
<>
- {canEditLayout &&
- (isEditing ? (
- <>
- <LemonButton type="secondary" size="small" onClick={() => resetLayout()}>
- Reset layout
- </LemonButton>
- <LemonButton type="primary" size="small" onClick={() => setEditing(false)}>
- Done
- </LemonButton>
- </>
- ) : (
- <LemonButton
- type="secondary"
- size="small"
- icon={<IconPencil />}
- onClick={() => setEditing(true)}
- >
- Edit layout
- </LemonButton>
- ))}
- {showLiveFilters && (
+ {isEditing ? (
<>
- <Popover
- visible={displayFilters}
- onClickOutside={() => setDisplayFilters(false)}
- placement="bottom-end"
- overlay={filtersContent}
- >
- <LemonButton
- icon={
- <IconWithCount count={activeFilterCount} showZero={false}>
- <IconFilter />
- </IconWithCount>
- }
- type="secondary"
- size="small"
- data-attr="web-analytics-live-filters"
- onClick={() => setDisplayFilters(!displayFilters)}
- >
- Filters
- </LemonButton>
- </Popover>
- <WebAnalyticsDomainSelector />
+ <LemonButton type="secondary" size="small" onClick={() => resetLayout()}>
+ Reset layout
+ </LemonButton>
+ <LemonButton type="primary" size="small" onClick={() => setEditing(false)}>
+ Done
+ </LemonButton>
</>
+ ) : (
+ <LemonButton
+ type="secondary"
+ size="small"
+ icon={<IconPencil />}
+ onClick={() => setEditing(true)}
+ >
+ Edit layout
+ </LemonButton>
)}
+ <Popover
+ visible={displayFilters}
+ onClickOutside={() => setDisplayFilters(false)}
+ placement="bottom-end"
+ overlay={filtersContent}
+ >
+ <LemonButton
+ icon={
+ <IconWithCount count={activeFilterCount} showZero={false}>
+ <IconFilter />
+ </IconWithCount>
+ }
+ type="secondary"
+ size="small"
+ data-attr="web-analytics-live-filters"
+ onClick={() => setDisplayFilters(!displayFilters)}
+ >
+ Filters
+ </LemonButton>
+ </Popover>
+ <WebAnalyticsDomainSelector />
</>
}
/>
@@ -289,18 +275,16 @@ export const LiveWebAnalyticsMetrics = (): JSX.Element => {
liveUserCountLogic({ pollIntervalMs: STATS_POLL_INTERVAL_MS })
)
- const { statOrder, cardOrder, isEditing: isEditingRaw } = useValues(liveWebAnalyticsLayoutLogic)
+ const { statOrder, cardOrder, isEditing } = useValues(liveWebAnalyticsLayoutLogic)
const { setStatOrder, setCardOrder, setEditing, resetLayout } = useActions(liveWebAnalyticsLayoutLogic)
const { featureFlags } = useValues(featureFlagLogic)
const { currentTeam } = useValues(teamLogic)
- const canEditLayout = !!featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_LIVE_EDIT_LAYOUT]
const drillDownEnabled = !!featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_LIVE_PERSON_DRILLDOWN]
const liveFeedColumns = currentTeam?.session_recording_opt_in
? LIVE_FEED_COLUMNS_WITH_RECORDINGS
: LIVE_FEED_COLUMNS_WITHOUT_RECORDINGS
const { openDrillDown } = useActions(livePersonDrillDownDrawerLogic)
- const isEditing = canEditLayout && isEditingRaw
const buildRowClickHandler = <T,>(
isClickable: (item: T) => boolean,
@@ -527,12 +511,7 @@ export const LiveWebAnalyticsMetrics = (): JSX.Element => {
return (
<div className="LivePageviews">
- <LiveDashboardFilterRow
- canEditLayout={canEditLayout}
- isEditing={isEditing}
- resetLayout={resetLayout}
- setEditing={setEditing}
- />
+ <LiveDashboardFilterRow isEditing={isEditing} resetLayout={resetLayout} setEditing={setEditing} />
<LemonBanner
type="info"
diff --git a/frontend/src/scenes/web-analytics/LiveMetricsDashboard/liveWebAnalyticsMetricsLogic.tsx b/frontend/src/scenes/web-analytics/LiveMetricsDashboard/liveWebAnalyticsMetricsLogic.tsx
index eddf3ed3659d..4aff83658502 100644
--- a/frontend/src/scenes/web-analytics/LiveMetricsDashboard/liveWebAnalyticsMetricsLogic.tsx
+++ b/frontend/src/scenes/web-analytics/LiveMetricsDashboard/liveWebAnalyticsMetricsLogic.tsx
@@ -6,7 +6,7 @@ import { lemonToast } from '@posthog/lemon-ui'
import { FEATURE_FLAGS } from 'lib/constants'
import { dayjs } from 'lib/dayjs'
-import { FeatureFlagsSet, featureFlagLogic } from 'lib/logic/featureFlagLogic'
+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { hashCodeForString } from 'lib/utils'
import { liveEventsHostOrigin } from 'lib/utils/apiHost'
import { CATEGORY_LABELS } from 'lib/utils/botDetection'
@@ -367,24 +367,19 @@ export const liveWebAnalyticsMetricsLogic = kea<liveWebAnalyticsMetricsLogicType
(recentUsersByLastSeen: Map<string, number>): number => recentUsersByLastSeen.size,
],
selectedHost: [
- (s) => [s.rawSelectedHost, s.featureFlags, s.productTab],
- (rawSelectedHost: string | null, featureFlags: FeatureFlagsSet, productTab: ProductTab): string | null => {
+ (s) => [s.rawSelectedHost, s.productTab],
+ (rawSelectedHost: string | null, productTab: ProductTab): string | null => {
// The bot tab streams traffic across all hosts, so ignore any host filter
// a sibling tab may have set on the shared filter logic.
if (productTab === ProductTab.BOT_ANALYTICS) {
return null
}
- return featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_LIVE_FILTERS] ? rawSelectedHost : null
+ return rawSelectedHost
},
],
liveFilters: [
- (s) => [s.rawLiveFilters, s.featureFlags],
- (
- rawLiveFilters: WebAnalyticsPropertyFilter[],
- featureFlags: FeatureFlagsSet
- ): WebAnalyticsPropertyFilter[] => {
- return featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_LIVE_FILTERS] ? rawLiveFilters : []
- },
+ (s) => [s.rawLiveFilters],
+ (rawLiveFilters: WebAnalyticsPropertyFilter[]): WebAnalyticsPropertyFilter[] => rawLiveFilters,
],
hasActiveFilters: [
(s) => [s.liveFilters],
@@ -448,7 +443,7 @@ export const liveWebAnalyticsMetricsLogic = kea<liveWebAnalyticsMetricsLogicType
dateTo: handoff,
filters: values.liveFilters,
includeCity: !!values.featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_LIVE_CITY_BREAKDOWN],
- filtersEnabled: !!values.featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_LIVE_FILTERS],
+ filtersEnabled: true,
})
const bucketMap = new Map<number, SlidingWindowBucket>()
diff --git a/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx b/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx
index 712584f3496e..4154bac205dc 100644
--- a/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx
+++ b/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx
@@ -671,8 +671,6 @@ const BotAnalyticsTiles = (): JSX.Element => {
// Drives bot tab off its own logic so bot filters don't pollute the regular Analytics tab.
useMountedLogic(botAnalyticsLogic)
const { tiles } = useValues(botAnalyticsLogic)
- const { featureFlags } = useValues(featureFlagLogic)
- const showLiveTiles = !!featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_LIVE_METRICS]
return (
<>
@@ -681,7 +679,7 @@ const BotAnalyticsTiles = (): JSX.Element => {
results. For better coverage, send server-side HTTP logs as <code>$http_log</code> events — most bots
don't execute JavaScript, so client-side tracking alone misses the majority of crawler traffic.
</LemonBanner>
- {showLiveTiles && <LiveBotTiles />}
+ <LiveBotTiles />
<Tiles tiles={tiles} />
</>
)
@@ -712,11 +710,7 @@ const healthTab = (): { key: ProductTab; label: JSX.Element; link: string }[] =>
]
}
-const liveTab = (featureFlags: FeatureFlagsSet): { key: ProductTab; label: string | JSX.Element; link: string }[] => {
- if (!featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_LIVE_METRICS]) {
- return []
- }
-
+const liveTab = (): { key: ProductTab; label: string | JSX.Element; link: string }[] => {
return [
{
key: ProductTab.LIVE,
@@ -857,7 +851,7 @@ const WebAnalyticsTabs = (): JSX.Element => {
{ key: ProductTab.ANALYTICS, label: 'Web analytics', link: '/web' },
{ key: ProductTab.WEB_VITALS, label: 'Web vitals', link: '/web/web-vitals' },
{ key: ProductTab.PAGE_REPORTS, label: 'Page reports', link: '/web/page-reports' },
- ...liveTab(featureFlags),
+ ...liveTab(),
...botAnalyticsTab(featureFlags),
...healthTab(),
]}