File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
apps/studio/components/interfaces/Organization/BillingSettings/Subscription Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,13 @@ const PlanUpdateSidePanel = () => {
126
126
useEffect ( ( ) => {
127
127
if ( visible ) {
128
128
setSelectedTier ( undefined )
129
+ sendEvent ( {
130
+ action : TelemetryActions . STUDIO_PRICING_SIDE_PANEL_OPENED ,
131
+ properties : {
132
+ currentPlan : subscription ?. plan ?. name ,
133
+ } ,
134
+ groups : { organization : slug ?? 'Unknown' } ,
135
+ } )
129
136
}
130
137
// eslint-disable-next-line react-hooks/exhaustive-deps
131
138
} , [ visible ] )
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ export enum TelemetryActions {
70
70
IMPORT_DATA_ADDED = 'import_data_added' ,
71
71
SQL_EDITOR_QUERY_RUN_BUTTON_CLICKED = 'sql_editor_query_run_button_clicked' ,
72
72
STUDIO_PRICING_PLAN_CTA_CLICKED = 'studio_pricing_plan_cta_clicked' ,
73
+ STUDIO_PRICING_SIDE_PANEL_OPENED = 'studio_pricing_side_panel_opened' ,
73
74
}
74
75
75
76
/**
@@ -1059,6 +1060,19 @@ export interface StudioPricingPlanCtaClickedEvent {
1059
1060
groups : { organization : string }
1060
1061
}
1061
1062
1063
+ /**
1064
+ * User opened the pricing side panel in studio.
1065
+ *
1066
+ * @group Events
1067
+ * @source studio
1068
+ * @page /billing?panel=subscriptionPlan
1069
+ */
1070
+ export interface StudioPricingSidePanelOpenedEvent {
1071
+ action : TelemetryActions . STUDIO_PRICING_SIDE_PANEL_OPENED
1072
+ properties : { currentPlan ?: string }
1073
+ groups : { organization : string }
1074
+ }
1075
+
1062
1076
export type TelemetryEvent =
1063
1077
| SignUpEvent
1064
1078
| SignInEvent
@@ -1119,3 +1133,4 @@ export type TelemetryEvent =
1119
1133
| SendFeedbackButtonClickedEvent
1120
1134
| SqlEditorQueryRunButtonClickedEvent
1121
1135
| StudioPricingPlanCtaClickedEvent
1136
+ | StudioPricingSidePanelOpenedEvent
You can’t perform that action at this time.
0 commit comments