@@ -22,11 +22,7 @@ type AddEventCTA = HasSub & {
2222 source : string ;
2323 event_types ?: string ;
2424} ;
25- type CheckoutUI = {
26- isNewCheckout : boolean ;
27- } ;
2825type BillingInfoUpdateEvent = {
29- isNewBillingUI : boolean ;
3026 isStripeComponent : boolean ;
3127 referrer ?: string ;
3228} ;
@@ -51,7 +47,7 @@ export type ProductUnavailableUpsellAlert = {
5147
5248type GetsentryEventParameters = {
5349 'add_event_cta.clicked_cta' : AddEventCTA ;
54- 'am_checkout.viewed' : HasSub & CheckoutUI ;
50+ 'am_checkout.viewed' : HasSub ;
5551 'billing_details.updated_billing_details' : BillingInfoUpdateEvent ;
5652 'billing_details.updated_cc' : BillingInfoUpdateEvent ;
5753 'billing_failure.button_clicked' : {
@@ -80,16 +76,15 @@ type GetsentryEventParameters = {
8076 'checkout.change_contract' : Checkout ;
8177 'checkout.change_plan' : Checkout ;
8278 'checkout.click_continue' : { step_number : number ; step_id ?: string } & Checkout ;
83- 'checkout.data_slider_changed' : { data_type : string ; quantity : number } & CheckoutUI ;
79+ 'checkout.data_slider_changed' : { data_type : string ; quantity : number } ;
8480 // no sub here;
85- 'checkout.data_sliders_viewed' : Record < PropertyKey , unknown > & CheckoutUI ;
81+ 'checkout.data_sliders_viewed' : Record < PropertyKey , unknown > ;
8682 // only used for checkout v3
8783 'checkout.exit' : HasSub ;
88- 'checkout.ondemand_budget.turned_off' : Record < PropertyKey , unknown > & CheckoutUI ;
89- 'checkout.ondemand_budget.update' : OnDemandBudgetUpdate & CheckoutUI ;
84+ 'checkout.ondemand_budget.turned_off' : Record < PropertyKey , unknown > ;
85+ 'checkout.ondemand_budget.update' : OnDemandBudgetUpdate ;
9086 'checkout.ondemand_changed' : { cents : number } & Checkout ;
91- 'checkout.payg_changed' : { cents : number ; method ?: 'button' | 'textbox' } & Checkout &
92- CheckoutUI ;
87+ 'checkout.payg_changed' : { cents : number ; method ?: 'button' | 'textbox' } & Checkout ;
9388 'checkout.product_select' : Partial <
9489 Record <
9590 AddOnCategory ,
@@ -99,8 +94,7 @@ type GetsentryEventParameters = {
9994 }
10095 >
10196 > &
102- HasSub &
103- CheckoutUI ;
97+ HasSub ;
10498 'checkout.transactions_upgrade' : {
10599 previous_transactions : number ;
106100 transactions : number ;
@@ -110,8 +104,7 @@ type GetsentryEventParameters = {
110104 // no sub here
111105 'checkout.upgrade' : Partial <
112106 Record < DataCategory | `previous_${DataCategory } `, number | undefined >
113- > & { previous_plan : string } & Checkout &
114- CheckoutUI ;
107+ > & { previous_plan : string } & Checkout ;
115108 'data_consent_modal.learn_more' : Record < PropertyKey , unknown > ;
116109 'data_consent_priority.viewed' : Record < PropertyKey , unknown > ;
117110 'data_consent_settings.updated' : { setting : string ; value : FieldValue } ;
@@ -165,13 +158,14 @@ type GetsentryEventParameters = {
165158 applyNow : boolean ;
166159 daysLeft : number ;
167160 partner : undefined | string ;
168- } & HasSub &
169- CheckoutUI ;
161+ } & HasSub ;
170162 'partner_billing_migration.modal.clicked_cta' : {
171163 daysLeft : number ;
172164 partner : undefined | string ;
173165 } & HasSub ;
174166 'past_due_modal.seen' : HasSub ;
167+ 'payg_inline_form.ondemand_budget.turned_off' : Record < PropertyKey , unknown > ;
168+ 'payg_inline_form.ondemand_budget.update' : OnDemandBudgetUpdate ;
175169 'performance.quota_exceeded_alert.displayed' : {
176170 referrer : string ;
177171 traceItemDataset : string ;
@@ -196,17 +190,26 @@ type GetsentryEventParameters = {
196190 'replay.list_page.viewed' : UpdateProps ;
197191 'sales.contact_us_clicked' : {
198192 source : string ;
199- } & HasSub &
200- CheckoutUI ;
193+ } & HasSub ;
201194 'spend_allocations.open_form' : { create_or_edit : string } & HasSub ;
202195 'spend_allocations.submit' : { create_or_edit : string } & HasSub ;
203196 'subscription_page.display_mode.changed' : {
204197 display_mode : 'usage' | 'cost' ;
205198 } & HasSub ;
206- 'subscription_page.usagelog_filter.clicked' : { selection : string } ;
207- 'subscription_page.viewed' : {
208- page_tab : string ;
199+ 'subscription_page.download_reports.clicked' : {
200+ reportType : 'summary' | 'project_breakdown' ;
201+ } ;
202+ 'subscription_page.usage_overview.add_on_toggled' : {
203+ addOnCategory : AddOnCategory ;
204+ isOpen : boolean ;
205+ } & HasSub ;
206+ 'subscription_page.usage_overview.row_clicked' : {
207+ dataCategory : DataCategory ;
209208 } & HasSub ;
209+ 'subscription_page.usage_overview.transform_changed' : {
210+ transform : string ;
211+ } & HasSub ;
212+ 'subscription_page.usagelog_filter.clicked' : { selection : string } ;
210213 'trial_ended_notice.dismissed_understood' : HasSub ;
211214 'trial_reset_notification.modal_dismissed' : HasSub ;
212215 'upgrade_now.alert.dismiss' : UpdateProps ;
@@ -240,7 +243,7 @@ type UpdateProps = Pick<Subscription, 'planTier' | 'canSelfServe' | 'channel'> &
240243
241244export type GetsentryEventKey = keyof GetsentryEventParameters ;
242245
243- const getsentryEventMap : Record < GetsentryEventKey , string > = {
246+ export const GETSENTRY_EVENT_MAP : Record < GetsentryEventKey , string > = {
244247 'power_icon.clicked' : 'Clicked Power Icon' ,
245248 'github.multi_org.upsell' : 'Github Multi-Org Upsell Clicked' ,
246249 'growth.clicked_enter_sandbox' : 'Growth: Clicked Enter Sandbox' ,
@@ -306,16 +309,20 @@ const getsentryEventMap: Record<GetsentryEventKey, string> = {
306309 'billing_failure.updated_cc' : 'Billing Failure: Updated CC' ,
307310 'add_event_cta.clicked_cta' : 'Add Event CTA: Clicked CTA' ,
308311 'subscription_page.usagelog_filter.clicked' : 'Usage Log Filter: Clicked' ,
309- 'subscription_page.viewed' : 'Subscription Page: Viewed' ,
312+ 'subscription_page.download_reports.clicked' :
313+ 'Subscription Page: Download Reports Clicked' ,
310314 'sales.contact_us_clicked' : 'Clicked Contact Sales' ,
311315 'disabled_member_view.loaded' : 'Disabled Member View: Loaded' ,
312316 'disabled_member_view.clicked_upgrade_request' :
313317 'Disabled Member View: Clicked Upgrade Request' ,
314318 'disabled_member_view.clicked_leave_org' : 'Disabled Member View: Clicked Leave Org' ,
315- 'ondemand_budget_modal.ondemand_budget.turned_off' : 'Disabled On-demand Budget' ,
316- 'ondemand_budget_modal.ondemand_budget.update' : 'Update On-demand Budget' ,
317- 'checkout.ondemand_budget.turned_off' : 'Checkout: Disabled On-demand Budget' ,
318- 'checkout.ondemand_budget.update' : 'Checkout: Update On-demand Budget' ,
319+ 'ondemand_budget_modal.ondemand_budget.turned_off' : 'Disabled PAYG Budget' ,
320+ 'ondemand_budget_modal.ondemand_budget.update' : 'Update PAYG Budget' ,
321+ 'payg_inline_form.ondemand_budget.turned_off' :
322+ 'PAYG In-line Form: Disabled PAYG Budget' ,
323+ 'payg_inline_form.ondemand_budget.update' : 'PAYG In-line Form: Update PAYG Budget' ,
324+ 'checkout.ondemand_budget.turned_off' : 'Checkout: Disabled PAYG Budget' ,
325+ 'checkout.ondemand_budget.update' : 'Checkout: Update PAYG Budget' ,
319326 'trial_reset_notification.modal_dismissed' : 'Trial Reset Notification: Modal Dismissed' ,
320327 'growth.disabled_dashboard.viewed' : 'Growth: Disabled Dashboard Viewed' ,
321328 'product_unavailable_upsell_alert.viewed' : 'Product Unavailable Upsell: Viewed Alert' ,
@@ -352,11 +359,17 @@ const getsentryEventMap: Record<GetsentryEventKey, string> = {
352359 'gen_ai_consent.in_drawer_clicked' : 'Gen AI Consent: Clicked In Drawer' ,
353360 'gen_ai_consent.view_in_settings_clicked' : 'Gen AI Consent: View in Settings Clicked' ,
354361 'subscription_page.display_mode.changed' : 'Subscription Page: Display Mode Changed' ,
362+ 'subscription_page.usage_overview.row_clicked' :
363+ 'Subscription Page: Usage Overview Row Clicked' ,
364+ 'subscription_page.usage_overview.transform_changed' :
365+ 'Subscription Page: Usage Overview Transform Changed' ,
366+ 'subscription_page.usage_overview.add_on_toggled' :
367+ 'Subscription Page: Usage Overview Add On Toggled' ,
355368} ;
356369
357370const trackGetsentryAnalytics = makeAnalyticsFunction <
358371 GetsentryEventParameters ,
359372 { organization : Organization }
360- > ( getsentryEventMap ) ;
373+ > ( GETSENTRY_EVENT_MAP ) ;
361374
362375export default trackGetsentryAnalytics ;
0 commit comments