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(analytics): remove unused event usage actions (#107471)

Paul D'Ambra3d63d53b50e5
diff --git a/frontend/src/lib/utils/eventUsageLogic.ts b/frontend/src/lib/utils/eventUsageLogic.ts
index 239270862dbb..b6ecb1da7049 100644
--- a/frontend/src/lib/utils/eventUsageLogic.ts
+++ b/frontend/src/lib/utils/eventUsageLogic.ts
@@ -62,7 +62,6 @@ import {
ExperimentIdType,
ExperimentStatsMethod,
FunnelCorrelation,
- HelpType,
MultipleSurveyQuestion,
OnboardingStepKey,
ProductTour,
@@ -799,30 +798,10 @@ export interface eventUsageLogicValues {
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface eventUsageLogicActions {
- reportAIChatOnboardingMessageSent: (
- stepKey: OnboardingStepKey,
- messageType: 'button' | 'chat'
- ) => {
- messageType: 'button' | 'chat'
- stepKey: OnboardingStepKey
- }
- reportAIChatOnboardingStarted: (variant: string) => {
- variant: string
- }
- reportAIChatOnboardingStepTime: (
- stepKey: OnboardingStepKey,
- timeSeconds: number
- ) => {
- stepKey: OnboardingStepKey
- timeSeconds: number
- }
reportAccountOwnerClicked: ({ name, email }: { email: string; name: string }) => {
email: string
name: string
}
- reportActivationSideBarTaskClicked: (key: string) => {
- key: string
- }
reportActivityLogSettingToggled: (receive_org_level_activity_logs: boolean | null) => {
receive_org_level_activity_logs: boolean | null
}
@@ -847,15 +826,9 @@ export interface eventUsageLogicActions {
reportBillingCTAShown: () => {
value: true
}
- reportBillingDowngradeClicked: (plan: string) => {
- plan: string
- }
reportBillingSpendInteraction: (properties: BillingUsageInteractionProps) => {
properties: BillingUsageInteractionProps
}
- reportBillingUpgradeClicked: (plan: string) => {
- plan: string
- }
reportBillingUsageInteraction: (properties: BillingUsageInteractionProps) => {
properties: BillingUsageInteractionProps
}
@@ -982,15 +955,6 @@ export interface eventUsageLogicActions {
dashboardId: number
source: 'header'
}
- reportDashboardDateRangeChanged: (
- dashboard: DashboardType | null,
- dateFrom?: string | Dayjs | null,
- dateTo?: string | Dayjs | null
- ) => {
- dashboard: DashboardType | null
- dateFrom: string | Dayjs | null | undefined
- dateTo: string | Dayjs | null | undefined
- }
reportDashboardEditModeDiscardPrompt: (
dashboard: DashboardType | null,
action: 'discarded' | 'kept_editing' | 'shown'
@@ -1029,27 +993,9 @@ export interface eventUsageLogicActions {
dashboard: DashboardType | null
properties: Record<string, boolean | number | string | null | undefined>
}
- reportDashboardInsightAnnotationsToggled: (
- dashboardId: number | undefined,
- insightId: number,
- source: DashboardEventSource
- ) => {
- dashboardId: number | undefined
- insightId: number
- source: DashboardEventSource
- }
reportDashboardInsightDeleteAfterRemovalClicked: (otherDashboardCount: number) => {
otherDashboardCount: number
}
- reportDashboardInsightLegendToggled: (
- dashboardId: number | undefined,
- insightId: number,
- source: DashboardEventSource
- ) => {
- dashboardId: number | undefined
- insightId: number
- source: DashboardEventSource
- }
reportDashboardInsightMetaUpdated: (
dashboardId: number | undefined,
insightId: number,
@@ -1059,15 +1005,6 @@ export interface eventUsageLogicActions {
dashboardId: number | undefined
insightId: number
}
- reportDashboardInsightValuesOnSeriesToggled: (
- dashboardId: number | undefined,
- insightId: number,
- source: DashboardEventSource
- ) => {
- dashboardId: number | undefined
- insightId: number
- source: DashboardEventSource
- }
reportDashboardLayoutEditModeEntered: (
dashboard: DashboardType | null,
source: DashboardEventSource,
@@ -1106,9 +1043,6 @@ export interface eventUsageLogicActions {
pinned: boolean
source: DashboardEventSource
}
- reportDashboardPropertiesChanged: (dashboard: DashboardType | null) => {
- dashboard: DashboardType | null
- }
reportDashboardTileDensityConfigured: (tileDensity: DashboardTileSpacing) => {
tileDensity: DashboardTileSpacing
}
@@ -1181,21 +1115,6 @@ export interface eventUsageLogicActions {
reportExperimentBiasWarningShown: (experiment: Experiment) => {
experiment: Experiment
}
- reportExperimentCreated: (
- experiment: Experiment,
- metadata?: {
- creation_source?: string
- has_linked_flag?: boolean
- }
- ) => {
- experiment: Experiment
- metadata:
- | {
- creation_source?: string | undefined
- has_linked_flag?: boolean | undefined
- }
- | undefined
- }
reportExperimentDashboardCreated: (
experiment: Experiment,
dashboardId: number
@@ -1218,9 +1137,6 @@ export interface eventUsageLogicActions {
newCohort: CohortType
}
reportExperimentFeatureFlagModalOpened: () => {}
- reportExperimentFeatureFlagSelected: (featureFlagKey: string) => {
- featureFlagKey: string
- }
reportExperimentHoldoutAssigned: ({
experimentId,
holdoutId,
@@ -1241,9 +1157,6 @@ export interface eventUsageLogicActions {
experiment: Experiment
warningKey: string
}
- reportExperimentInsightLoadFailed: () => {
- value: true
- }
reportExperimentMetricBreakdownAdded: (
experiment: Experiment,
metricUuid: string,
@@ -1414,9 +1327,6 @@ export interface eventUsageLogicActions {
reportExperimentReleaseConditionsViewed: (experimentId: ExperimentIdType) => {
experimentId: ExperimentIdType
}
- reportExperimentResultsLoadingTimeout: (experimentId: ExperimentIdType) => {
- experimentId: ExperimentIdType
- }
reportExperimentSharedMetricAssigned: (
experimentId: ExperimentIdType,
sharedMetric: SharedMetric
@@ -1448,9 +1358,6 @@ export interface eventUsageLogicActions {
experimentId: ExperimentIdType
metric: ExperimentMetricUnion
}
- reportExperimentUpdated: (experiment: Experiment) => {
- experiment: Experiment
- }
reportExperimentVariantScreenshotUploaded: (experimentId: ExperimentIdType) => {
experimentId: ExperimentIdType
}
@@ -1529,21 +1436,6 @@ export interface eventUsageLogicActions {
reportFlagsCodeExampleLanguage: (language: string) => {
language: string
}
- reportFunnelCalculated: (
- eventCount: number,
- actionCount: number,
- interval: string,
- funnelVizType: string | undefined,
- success: boolean,
- error?: string
- ) => {
- actionCount: number
- error: string | undefined
- eventCount: number
- funnelVizType: string | undefined
- interval: string
- success: boolean
- }
reportFunnelStepReordered: () => {
value: true
}
@@ -1573,25 +1465,9 @@ export interface eventUsageLogicActions {
totalProperties: number
}
reportGroupTypeDetailDashboardCreated: () => {}
- reportGroupViewSaved: (
- groupTypeIndex: number,
- shortcutName: string
- ) => {
- groupTypeIndex: number
- shortcutName: string
- }
reportHeatmapsToggled: (heatmaps_opt_in: boolean) => {
heatmaps_opt_in: boolean
}
- reportHelpButtonUsed: (help_type: HelpType) => {
- help_type: HelpType
- }
- reportHelpButtonViewed: () => {
- value: true
- }
- reportIngestionContinueWithoutVerifying: () => {
- value: true
- }
reportInsightDateExclusionsChanged: (
queryKind: string | undefined,
excludeIncompletePeriods: boolean,
@@ -1796,9 +1672,6 @@ export interface eventUsageLogicActions {
recommendedProducts: readonly string[]
useCase: string
}
- reportOnboardingUseCaseSkipped: () => {
- value: true
- }
reportPersonOpenedFromNewlySeenPersonsList: () => {
value: true
}
@@ -1863,9 +1736,6 @@ export interface eventUsageLogicActions {
reportProjectNoticeShown: (variant: string) => {
variant: string
}
- reportPropertySelectOpened: () => {
- value: true
- }
reportRemovedInsightFromDashboard: (
insight: Partial<InsightModel> | null,
dashboardId: number | null
@@ -1922,9 +1792,6 @@ export interface eventUsageLogicActions {
reportSurveyAiPromptSubmitted: (source: string) => {
source: string
}
- reportSurveyArchived: (survey: Survey) => {
- survey: Survey
- }
reportSurveyConsolidatedResultsQuery: (
survey: Survey,
totalDurationMs: number,
@@ -1962,9 +1829,6 @@ export interface eventUsageLogicActions {
reportSurveyEdited: (survey: Survey) => {
survey: Survey
}
- reportSurveyEmptyStateViewed: () => {
- value: true
- }
reportSurveyTemplateClicked: (
template: SurveyTemplateType,
source?: string
@@ -2202,21 +2066,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
isFirstLoad,
delay,
}),
- reportFunnelCalculated: (
- eventCount: number,
- actionCount: number,
- interval: string,
- funnelVizType: string | undefined,
- success: boolean,
- error?: string
- ) => ({
- eventCount,
- actionCount,
- interval,
- funnelVizType,
- success,
- error,
- }),
reportDataTableColumnsUpdated: (context_type: string) => ({ context_type }),
// insight filters
reportFunnelStepReordered: true,
@@ -2290,16 +2139,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
refreshDurationMs,
individualRefresh,
}),
- reportDashboardDateRangeChanged: (
- dashboard: DashboardType | null,
- dateFrom?: string | Dayjs | null,
- dateTo?: string | Dayjs | null
- ) => ({
- dashboard,
- dateFrom,
- dateTo,
- }),
- reportDashboardPropertiesChanged: (dashboard: DashboardType | null) => ({ dashboard }),
reportDashboardPinToggled: (dashboardId: number, pinned: boolean, source: DashboardEventSource) => ({
dashboardId,
pinned,
@@ -2317,21 +2156,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
insightId: number,
attribute: 'name' | 'description'
) => ({ dashboardId, insightId, attribute }),
- reportDashboardInsightValuesOnSeriesToggled: (
- dashboardId: number | undefined,
- insightId: number,
- source: DashboardEventSource
- ) => ({ dashboardId, insightId, source }),
- reportDashboardInsightLegendToggled: (
- dashboardId: number | undefined,
- insightId: number,
- source: DashboardEventSource
- ) => ({ dashboardId, insightId, source }),
- reportDashboardInsightAnnotationsToggled: (
- dashboardId: number | undefined,
- insightId: number,
- source: DashboardEventSource
- ) => ({ dashboardId, insightId, source }),
/** Empty-state AI prompt chips (ai-first empty dashboard only). */
reportDashboardEmptyAiPromptClicked: (
promptLabel: string,
@@ -2359,7 +2183,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
reportBounceRatePageViewModeUpdated: (mode: string) => ({ mode }),
reportSessionTableVersionUpdated: (version: string) => ({ version }),
reportCustomChannelTypeRulesUpdated: (numRules: number) => ({ numRules }),
- reportPropertySelectOpened: true,
reportCreatedDashboardFromModal: true,
reportDashboardAddMenuOpened: (source: 'header', dashboardId: number) => ({ source, dashboardId }),
/** Dashboard created via PostHog web app from a template (new dashboard modal / template chooser). */
@@ -2385,15 +2208,8 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
draftAgeSeconds,
}),
reportInsightDraftDiscarded: (draftAgeSeconds: number) => ({ draftAgeSeconds }),
- reportHelpButtonViewed: true,
- reportHelpButtonUsed: (help_type: HelpType) => ({ help_type }),
reportExperimentWizardStarted: (guideVisible: boolean) => ({ guideVisible }),
reportExperimentWizardGuideToggled: (visible: boolean, currentStep: string) => ({ visible, currentStep }),
- reportExperimentCreated: (
- experiment: Experiment,
- metadata?: { creation_source?: string; has_linked_flag?: boolean }
- ) => ({ experiment, metadata }),
- reportExperimentUpdated: (experiment: Experiment) => ({ experiment }),
reportExperimentViewed: (experiment: Experiment, duration: number | null) => ({ experiment, duration }),
reportExperimentInconsistencyWarningShown: (experiment: Experiment, warningKey: string) => ({
experiment,
@@ -2446,9 +2262,7 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
existingCohort,
newCohort,
}),
- reportExperimentInsightLoadFailed: true,
reportExperimentVariantScreenshotUploaded: (experimentId: ExperimentIdType) => ({ experimentId }),
- reportExperimentResultsLoadingTimeout: (experimentId: ExperimentIdType) => ({ experimentId }),
reportExperimentReleaseConditionsViewed: (experimentId: ExperimentIdType) => ({ experimentId }),
reportExperimentHoldoutCreated: (holdout: ExperimentHoldoutType) => ({ holdout }),
reportExperimentHoldoutAssigned: ({
@@ -2507,7 +2321,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
}
) => ({ status, properties }),
reportExperimentFeatureFlagModalOpened: () => ({}),
- reportExperimentFeatureFlagSelected: (featureFlagKey: string) => ({ featureFlagKey }),
reportExperimentTimeseriesViewed: (experimentId: ExperimentIdType, metric: ExperimentMetric) => ({
experimentId,
metric,
@@ -2584,14 +2397,9 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
reportDataManagementDefinitionClickView: (type: TaxonomicFilterGroupType) => ({ type }),
reportDataManagementDefinitionClickEdit: (type: TaxonomicFilterGroupType) => ({ type }),
// Group view Shortcuts
- reportGroupViewSaved: (groupTypeIndex: number, shortcutName: string) => ({
- groupTypeIndex,
- shortcutName,
- }),
// Data Management Pages
reportInsightOpenedFromRecentInsightList: true,
reportPersonOpenedFromNewlySeenPersonsList: true,
- reportIngestionContinueWithoutVerifying: true,
reportAutocaptureToggled: (autocapture_opt_out: boolean) => ({ autocapture_opt_out }),
reportAutocaptureExceptionsToggled: (autocapture_opt_in: boolean) => ({ autocapture_opt_in }),
reportHeatmapsToggled: (heatmaps_opt_in: boolean) => ({ heatmaps_opt_in }),
@@ -2613,9 +2421,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
reportFeatureFlagScheduleSuccess: true,
reportInviteMembersButtonClicked: true,
reportAxisUnitsChanged: (properties: Record<string, any>) => ({ ...properties }),
- reportActivationSideBarTaskClicked: (key: string) => ({ key }),
- reportBillingUpgradeClicked: (plan: string) => ({ plan }),
- reportBillingDowngradeClicked: (plan: string) => ({ plan }),
reportBillingAddonPlanSwitchStarted: (
fromProduct: string,
toProduct: string,
@@ -2644,7 +2449,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
meta,
}),
reportSurveyEdited: (survey: Survey) => ({ survey }),
- reportSurveyArchived: (survey: Survey) => ({ survey }),
reportSurveyTemplateClicked: (template: SurveyTemplateType, source?: string) => ({ template, source }),
reportSurveyCycleDetected: (survey: Survey | NewSurvey) => ({ survey }),
reportSurveyConsolidatedResultsQuery: (
@@ -2652,7 +2456,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
totalDurationMs: number,
queryDurations: { aggregate: number; openEnded: number }
) => ({ survey, totalDurationMs, queryDurations }),
- reportSurveyEmptyStateViewed: true,
reportSurveyAiPromptSubmitted: (source: string) => ({ source }),
reportProductTourViewed: (tour: ProductTour) => ({ tour }),
reportProductTourCreated: (tour: ProductTour, creationSource?: 'app' | 'toolbar') => ({
@@ -2700,16 +2503,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
useCase,
recommendedProducts,
}),
- reportOnboardingUseCaseSkipped: true,
- reportAIChatOnboardingStarted: (variant: string) => ({ variant }),
- reportAIChatOnboardingMessageSent: (stepKey: OnboardingStepKey, messageType: 'chat' | 'button') => ({
- stepKey,
- messageType,
- }),
- reportAIChatOnboardingStepTime: (stepKey: OnboardingStepKey, timeSeconds: number) => ({
- stepKey,
- timeSeconds,
- }),
reportOnboardingProductSelectionPath: (
path: 'ai' | 'use_case' | 'browsing_history' | 'manual',
properties?: {
@@ -3013,17 +2806,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
reportProjectNoticeShown: async ({ variant }) => {
posthog.capture('project notice shown', { variant })
},
- reportFunnelCalculated: async ({ eventCount, actionCount, interval, funnelVizType, success, error }) => {
- posthog.capture('funnel result calculated', {
- event_count: eventCount,
- action_count: actionCount,
- total_count_actions_events: eventCount + actionCount,
- interval: interval,
- funnel_viz_type: funnelVizType,
- success: success,
- error: error,
- })
- },
reportFunnelStepReordered: async () => {
posthog.capture('funnel step reordered')
},
@@ -3097,20 +2879,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
...sanitizedQuery,
})
},
- reportDashboardDateRangeChanged: async ({ dashboard, dateFrom, dateTo }) => {
- posthog.capture(`dashboard date range changed`, {
- dashboard_id: dashboard?.id,
- dashboard: sanitizeDashboard(dashboard),
- date_from: dateFrom?.toString() || 'Custom',
- date_to: dateTo?.toString(),
- })
- },
- reportDashboardPropertiesChanged: async ({ dashboard }) => {
- posthog.capture(`dashboard properties changed`, {
- dashboard_id: dashboard?.id,
- dashboard: sanitizeDashboard(dashboard),
- })
- },
reportDashboardPinToggled: async ({ dashboardId, pinned, source }) => {
posthog.capture(`dashboard pin toggled`, {
dashboard_id: dashboardId,
@@ -3140,27 +2908,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
other_dashboard_count: otherDashboardCount,
})
},
- reportDashboardInsightValuesOnSeriesToggled: async ({ dashboardId, insightId, source }) => {
- posthog.capture('dashboard insight values on series toggled', {
- dashboard_id: dashboardId,
- insight_id: insightId,
- source,
- })
- },
- reportDashboardInsightLegendToggled: async ({ dashboardId, insightId, source }) => {
- posthog.capture('dashboard insight legend toggled', {
- dashboard_id: dashboardId,
- insight_id: insightId,
- source,
- })
- },
- reportDashboardInsightAnnotationsToggled: async ({ dashboardId, insightId, source }) => {
- posthog.capture('dashboard insight annotations toggled', {
- dashboard_id: dashboardId,
- insight_id: insightId,
- source,
- })
- },
reportDashboardEmptyAiPromptClicked: async ({ promptLabel, dashboardId, promptType }) => {
posthog.capture('dashboard empty ai prompt clicked', {
prompt_label: promptLabel,
@@ -3218,9 +2965,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
reportInsightFilterAdded: async ({ newLength }) => {
posthog.capture('filter added', { newLength })
},
- reportPropertySelectOpened: async () => {
- posthog.capture('property select toggle opened')
- },
reportCreatedDashboardFromModal: async () => {
posthog.capture('created new dashboard from modal')
},
@@ -3261,12 +3005,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
...(presetKey ? { preset_key: presetKey } : {}),
})
},
- reportHelpButtonViewed: () => {
- posthog.capture('help button viewed')
- },
- reportHelpButtonUsed: (props) => {
- posthog.capture('help button used', props)
- },
reportCorrelationInteraction: ({ correlationType, action, props }) => {
posthog.capture('correlation interaction', { correlation_type: correlationType, action, ...props })
},
@@ -3292,20 +3030,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
current_step: currentStep,
})
},
- reportExperimentCreated: ({ experiment, metadata }) => {
- posthog.capture('experiment created', {
- id: experiment.id,
- name: experiment.name,
- type: experiment.type,
- parameters: experimentOwnParameters(experiment.parameters),
- ...metadata,
- })
- },
- reportExperimentUpdated: ({ experiment }) => {
- posthog.capture('experiment updated', {
- ...getEventPropertiesForExperiment(experiment),
- })
- },
reportExperimentViewed: ({ experiment, duration }) => {
posthog.capture('experiment viewed', {
...getEventPropertiesForExperiment(experiment),
@@ -3368,19 +3092,11 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
id: newCohort.id,
})
},
- reportExperimentInsightLoadFailed: () => {
- posthog.capture('experiment load insight failed')
- },
reportExperimentVariantScreenshotUploaded: ({ experimentId }) => {
posthog.capture('experiment variant screenshot uploaded', {
experiment_id: experimentId,
})
},
- reportExperimentResultsLoadingTimeout: ({ experimentId }) => {
- posthog.capture('experiment results loading timeout', {
- experiment_id: experimentId,
- })
- },
reportExperimentReleaseConditionsViewed: ({ experimentId }) => {
posthog.capture('experiment release conditions viewed', {
experiment_id: experimentId,
@@ -3437,9 +3153,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
reportExperimentFeatureFlagModalOpened: () => {
posthog.capture('experiment feature flag modal opened')
},
- reportExperimentFeatureFlagSelected: ({ featureFlagKey }: { featureFlagKey: string }) => {
- posthog.capture('experiment feature flag selected', { feature_flag_key: featureFlagKey })
- },
reportExperimentTimeseriesViewed: ({
experimentId,
metric,
@@ -3584,9 +3297,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
reportPersonOpenedFromNewlySeenPersonsList: () => {
posthog.capture('person opened from newly seen persons list')
},
- reportIngestionContinueWithoutVerifying: () => {
- posthog.capture('ingestion continue without verifying')
- },
reportAutocaptureToggled: ({ autocapture_opt_out }) => {
posthog.capture('autocapture toggled', {
autocapture_opt_out,
@@ -3633,21 +3343,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
reportInviteMembersButtonClicked: () => {
posthog.capture('invite members button clicked')
},
- reportActivationSideBarTaskClicked: ({ key }) => {
- posthog.capture('activation sidebar task clicked', {
- key,
- })
- },
- reportBillingUpgradeClicked: ({ plan }) => {
- posthog.capture('billing upgrade button clicked', {
- plan,
- })
- },
- reportBillingDowngradeClicked: ({ plan }) => {
- posthog.capture('billing downgrade button clicked', {
- plan,
- })
- },
reportBillingAddonPlanSwitchStarted: ({ fromProduct, toProduct, reason }) => {
const eventName =
reason === 'upgrade'
@@ -3671,12 +3366,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
roles_length: rolesLength,
})
},
- reportGroupViewSaved: ({ groupTypeIndex, shortcutName }) => {
- posthog.capture('group view saved', {
- group_type_index: groupTypeIndex,
- shortcut_name: shortcutName,
- })
- },
reportFlagsCodeExampleInteraction: ({ optionType }) => {
posthog.capture('flags code example option selected', {
option_type: optionType,
@@ -3735,15 +3424,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
end_date: survey.end_date,
})
},
- reportSurveyArchived: ({ survey }) => {
- posthog.capture('survey archived', {
- name: survey.name,
- id: survey.id,
- created_at: survey.created_at,
- start_date: survey.start_date,
- end_date: survey.end_date,
- })
- },
reportSurveyEdited: ({ survey }) => {
const questionsWithShuffledOptions = survey.questions.filter((question) => {
return question.hasOwnProperty('shuffleOptions') && (question as MultipleSurveyQuestion).shuffleOptions
@@ -3781,9 +3461,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
source,
})
},
- reportSurveyEmptyStateViewed: () => {
- posthog.capture('survey empty state viewed')
- },
reportSurveyAiPromptSubmitted: ({ source }) => {
posthog.capture('survey AI prompt submitted', {
source,
@@ -3898,9 +3575,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
...LEGACY_ONBOARDING_EVENT_PROPS,
})
},
- reportOnboardingUseCaseSkipped: () => {
- posthog.capture('onboarding use case skipped')
- },
reportOnboardingProductSelectionPath: ({ path, properties }) => {
posthog.capture('onboarding product selection path', {
path,
@@ -3909,23 +3583,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([
has_browsing_history: properties?.hasBrowsingHistory,
})
},
- reportAIChatOnboardingStarted: ({ variant }) => {
- posthog.capture('ai chat onboarding started', {
- variant,
- })
- },
- reportAIChatOnboardingMessageSent: ({ stepKey, messageType }) => {
- posthog.capture('ai chat onboarding message sent', {
- step_key: stepKey,
- message_type: messageType,
- })
- },
- reportAIChatOnboardingStepTime: ({ stepKey, timeSeconds }) => {
- posthog.capture('ai chat onboarding step time', {
- step_key: stepKey,
- time_seconds: timeSeconds,
- })
- },
reportOnboardingProductToggled: ({ productKey, selected, recommendationSource }) => {
posthog.capture('onboarding product toggled', {
product_key: productKey,
diff --git a/frontend/src/scenes/experiments/ExperimentForm/createExperimentLogic.ts b/frontend/src/scenes/experiments/ExperimentForm/createExperimentLogic.ts
index 807d70e324df..49f272b5db8a 100644
--- a/frontend/src/scenes/experiments/ExperimentForm/createExperimentLogic.ts
+++ b/frontend/src/scenes/experiments/ExperimentForm/createExperimentLogic.ts
@@ -6,7 +6,6 @@ import { ApiError } from 'lib/api-error'
import { tryShowMCPHint } from 'lib/components/MCPHint/mcpHintLogic'
import { SetupTaskId, globalSetupLogic } from 'lib/components/ProductSetup'
import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'
-import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
import { featureFlagsLogic } from 'scenes/feature-flags/featureFlagsLogic'
import { projectLogic } from 'scenes/projectLogic'
import { teamLogic } from 'scenes/teamLogic'
@@ -89,23 +88,6 @@ export interface createExperimentLogicValues {
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface createExperimentLogicActions {
- reportExperimentCreated: (
- experiment: Experiment,
- metadata?:
- | {
- creation_source?: string
- has_linked_flag?: boolean
- }
- | undefined
- ) => {
- experiment: Experiment
- metadata:
- | {
- creation_source?: string | undefined
- has_linked_flag?: boolean | undefined
- }
- | undefined
- } // eventUsageLogic
updateFlag: (flag: FeatureFlagType) => {
flag: FeatureFlagType
} // featureFlagsLogic
@@ -218,14 +200,7 @@ export const createExperimentLogic = kea<createExperimentLogicType>([
projectLogic,
['currentProjectId'],
],
- actions: [
- eventUsageLogic,
- ['reportExperimentCreated'],
- featureFlagsLogic,
- ['updateFlag'],
- teamLogic,
- ['addProductIntent', 'addProductIntentForCrossSell'],
- ],
+ actions: [featureFlagsLogic, ['updateFlag'], teamLogic, ['addProductIntent', 'addProductIntentForCrossSell']],
})),
actions(() => ({
setExperiment: (experiment: Experiment) => ({ experiment }),
diff --git a/frontend/src/scenes/experiments/ExperimentTabContent/createDraftExperimentFromFlagLogic.ts b/frontend/src/scenes/experiments/ExperimentTabContent/createDraftExperimentFromFlagLogic.ts
index 834244257bb2..33812fe2bd0f 100644
--- a/frontend/src/scenes/experiments/ExperimentTabContent/createDraftExperimentFromFlagLogic.ts
+++ b/frontend/src/scenes/experiments/ExperimentTabContent/createDraftExperimentFromFlagLogic.ts
@@ -3,7 +3,6 @@ import { router } from 'kea-router'
import api from 'lib/api'
import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'
-import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
@@ -24,23 +23,6 @@ export interface createDraftExperimentFromFlagLogicValues {
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface createDraftExperimentFromFlagLogicActions {
- reportExperimentCreated: (
- experiment: Experiment,
- metadata?:
- | {
- creation_source?: string
- has_linked_flag?: boolean
- }
- | undefined
- ) => {
- experiment: Experiment
- metadata:
- | {
- creation_source?: string | undefined
- has_linked_flag?: boolean | undefined
- }
- | undefined
- } // eventUsageLogic
createDraftExperiment: () => {
value: true
}
@@ -69,7 +51,6 @@ export const createDraftExperimentFromFlagLogic = kea<createDraftExperimentFromF
props({} as CreateDraftExperimentFromFlagLogicProps),
connect({
- actions: [eventUsageLogic, ['reportExperimentCreated']],
values: [teamLogic, ['currentProjectId']],
}),
diff --git a/frontend/src/scenes/experiments/experimentLogic.tsx b/frontend/src/scenes/experiments/experimentLogic.tsx
index 99aca4e85298..fc5c19db1119 100644
--- a/frontend/src/scenes/experiments/experimentLogic.tsx
+++ b/frontend/src/scenes/experiments/experimentLogic.tsx
@@ -569,23 +569,6 @@ export interface experimentLogicActions {
reportExperimentAiSummaryRequested: (experiment: Experiment) => {
experiment: Experiment
} // eventUsageLogic
- reportExperimentCreated: (
- experiment: Experiment,
- metadata?:
- | {
- creation_source?: string
- has_linked_flag?: boolean
- }
- | undefined
- ) => {
- experiment: Experiment
- metadata:
- | {
- creation_source?: string | undefined
- has_linked_flag?: boolean | undefined
- }
- | undefined
- } // eventUsageLogic
reportExperimentDashboardCreated: (
experiment: Experiment,
dashboardId: number
@@ -663,9 +646,6 @@ export interface experimentLogicActions {
reportExperimentReleaseConditionsViewed: (experimentId: ExperimentIdType) => {
experimentId: ExperimentIdType
} // eventUsageLogic
- reportExperimentResultsLoadingTimeout: (experimentId: ExperimentIdType) => {
- experimentId: ExperimentIdType
- } // eventUsageLogic
reportExperimentSharedMetricAssigned: (
experimentId: ExperimentIdType,
sharedMetric: SharedMetric
@@ -1359,12 +1339,10 @@ export const experimentLogic = kea<experimentLogicType>([
['loadTags'],
eventUsageLogic,
[
- 'reportExperimentCreated',
'reportExperimentViewed',
'reportExperimentExposureCohortCreated',
'reportExperimentVariantScreenshotUploaded',
- 'reportExperimentResultsLoadingTimeout',
'reportExperimentReleaseConditionsViewed',
'reportExperimentHoldoutAssigned',
'reportExperimentSharedMetricAssigned',
diff --git a/frontend/src/scenes/surveys/surveyLogic.tsx b/frontend/src/scenes/surveys/surveyLogic.tsx
index 6a4fc819e8f1..178459eaf9b8 100644
--- a/frontend/src/scenes/surveys/surveyLogic.tsx
+++ b/frontend/src/scenes/surveys/surveyLogic.tsx
@@ -783,9 +783,6 @@ export interface surveyLogicValues {
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface surveyLogicActions {
- reportSurveyArchived: (survey: Survey) => {
- survey: Survey
- } // eventUsageLogic
reportSurveyConsolidatedResultsQuery: (
survey: Survey,
totalDurationMs: number,
@@ -1527,7 +1524,6 @@ export const surveyLogic = kea<surveyLogicType>([
[
'reportSurveyCreated',
'reportSurveyEdited',
- 'reportSurveyArchived',
'reportSurveyViewed',
'reportSurveyCycleDetected',
'reportSurveyConsolidatedResultsQuery',