diff --git a/frontend/src/lib/utils/eventUsageLogic.ts b/frontend/src/lib/utils/eventUsageLogic.ts index 4ffa1b9efe939..1649fe5a211df 100644 --- a/frontend/src/lib/utils/eventUsageLogic.ts +++ b/frontend/src/lib/utils/eventUsageLogic.ts @@ -446,6 +446,8 @@ export const eventUsageLogic = kea([ reportFailedToCreateFeatureFlagWithCohort: (code: string, detail: string) => ({ code, detail }), reportFeatureFlagCopySuccess: true, reportFeatureFlagCopyFailure: (error) => ({ error }), + reportFeatureFlagScheduleSuccess: true, + reportFeatureFlagScheduleFailure: (error) => ({ error }), reportInviteMembersButtonClicked: true, reportDashboardLoadingTime: (loadingMilliseconds: number, dashboardId: number) => ({ loadingMilliseconds, @@ -1063,6 +1065,12 @@ export const eventUsageLogic = kea([ reportFeatureFlagCopyFailure: ({ error }) => { posthog.capture('feature flag copy failure', { error }) }, + reportFeatureFlagScheduleSuccess: () => { + posthog.capture('feature flag scheduled') + }, + reportFeatureFlagScheduleFailure: ({ error }) => { + posthog.capture('feature flag schedule failure', { error }) + }, reportInviteMembersButtonClicked: () => { posthog.capture('invite members button clicked') }, diff --git a/frontend/src/scenes/feature-flags/featureFlagLogic.ts b/frontend/src/scenes/feature-flags/featureFlagLogic.ts index 6b39cd119dae8..c40938c5ea6da 100644 --- a/frontend/src/scenes/feature-flags/featureFlagLogic.ts +++ b/frontend/src/scenes/feature-flags/featureFlagLogic.ts @@ -883,8 +883,12 @@ export const featureFlagLogic = kea([ filters: NEW_FLAG.filters, active: NEW_FLAG.active, }) + eventUsageLogic.actions.reportFeatureFlagScheduleSuccess() } }, + createScheduledChangeFailure: ({ error }) => { + eventUsageLogic.actions.reportFeatureFlagScheduleFailure({ error }) + }, deleteScheduledChangeSuccess: ({ scheduledChange }) => { if (scheduledChange) { lemonToast.success('Change has been deleted')