: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
chore(insights): remove scene subscribe label experiment (#64035)
Matt Pua78c52017c57f
diff --git a/frontend/src/lib/components/Scenes/SceneSubscribeButton.tsx b/frontend/src/lib/components/Scenes/SceneSubscribeButton.tsxindex c2f9b8163fbf..1bebe6cd30ad 100644--- a/frontend/src/lib/components/Scenes/SceneSubscribeButton.tsx+++ b/frontend/src/lib/components/Scenes/SceneSubscribeButton.tsx@@ -1,11 +1,8 @@import { useActions, useValues } from 'kea'import { router } from 'kea-router'-import posthog from 'posthog-js'import { IconBell } from '@posthog/icons'-import { useFeatureFlagVariantKey } from '@posthog/react'-import { FEATURE_FLAGS } from 'lib/constants'import { IconWithCount } from 'lib/lemon-ui/icons/icons'import { ButtonPrimitive } from 'lib/ui/Button/ButtonPrimitives'import { userLogic } from 'scenes/userLogic'@@ -16,13 +13,6 @@ import { subscriptionsLogic } from '../Subscriptions/subscriptionsLogic'import { SubscriptionBaseProps, urlForSubscriptions } from '../Subscriptions/utils'import { SceneDataAttrKeyProps } from './utils'-const SUBSCRIBE_LABEL_BY_VARIANT: Record<string, string> = {- control: 'Subscribe',- 'recurring-updates': 'Get recurring updates',- 'scheduled-notifications': 'Schedule notifications',- 'scheduled-reports': 'Get scheduled reports',-}-interface SceneSubscribeButtonProps extends SubscriptionBaseProps, SceneDataAttrKeyProps {insight?: Partial<QueryBasedInsightModel>dashboardId?: number@@ -52,19 +42,11 @@ export function SceneSubscribeButton({const { push } = useActions(router)const { hasAvailableFeature } = useValues(userLogic)const hasSubscriptionsFeature = hasAvailableFeature(AvailableFeature.SUBSCRIPTIONS)- const labelVariant = useFeatureFlagVariantKey(FEATURE_FLAGS.SCENE_SUBSCRIBE_LABEL_EXPERIMENT)- const subscribeLabel =- typeof labelVariant === 'string' ? (SUBSCRIBE_LABEL_BY_VARIANT[labelVariant] ?? 'Subscribe') : 'Subscribe'return (<ButtonPrimitivemenuItemonClick={() => {- posthog.capture('scene subscribe menu item clicked', {- resource_type: dataAttrKey,- label_variant: typeof labelVariant === 'string' ? labelVariant : 'control',- label_text: subscribeLabel,- })push(urlForSubscriptions({ insightShortId: insight?.short_id, dashboardId }))}}data-attr={`${dataAttrKey}-subscribe-dropdown-menu-item`}@@ -75,7 +57,7 @@ export function SceneSubscribeButton({) : (<IconBell />)}- {subscribeLabel}+ Subscribe</ButtonPrimitive>)}diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex c41d3b8d4aa1..4223f7170067 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -460,7 +460,6 @@ export const FEATURE_FLAGS = {REVENUE_FIELDS_IN_POWER_USERS_TABLE: 'revenue-fields-in-power-users-table', // owner: @arthurdedeus #team-customer-analyticsSCENE_ALERTS_LABEL_EXPERIMENT: 'scene-alerts-label-experiment', // owner: @mattp #team-analytics-platform multivariate=control,get-notified,monitor-changes,set-up-alertSCENE_MENU_BAR: 'scene-menu-bar', // owner: @adamleithp #team-platform-ux, gates the per-scene MenuBar above SceneTitleSection- SCENE_SUBSCRIBE_LABEL_EXPERIMENT: 'scene-subscribe-label-experiment', // owner: @mattp #team-analytics-platform multivariate=control,recurring-updates,scheduled-notifications,scheduled-reportsSCHEMA_ENFORCEMENT_REJECT: 'schema-enforcement-reject', // owner: @aspicer, gates the ability to set schema enforcement mode to "reject"SCHEMA_MANAGEMENT: 'schema-management', // owner: @aspicerSEARCH_DEBOUNCE_ALL: 'search-debounce-all', // owner: @adamleithp #team-platform-ux