From 607e0b0343c06eba994c8d003f7a24ae3f191a0d Mon Sep 17 00:00:00 2001 From: Rebeka Dekany <50901361+rebekadekany@users.noreply.github.com> Date: Tue, 21 Jul 2026 14:22:15 +0200 Subject: [PATCH] [web] Add paymentMethod segment to payment-page-form events (#35583) * Add paymentMethod segment to `payment-page-form-submit` event * Add paymentMethod segment to `payment-page-form-success` event GitOrigin-RevId: 7ad1d18d3f4ed38d39f4336790581604ddae749e --- services/web/types/subscription/analytics-event.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/web/types/subscription/analytics-event.ts b/services/web/types/subscription/analytics-event.ts index 9d13d48124..c2cb1a4a0b 100644 --- a/services/web/types/subscription/analytics-event.ts +++ b/services/web/types/subscription/analytics-event.ts @@ -3,12 +3,14 @@ import { PaymentProvider, StripePaymentProviderService, } from './dashboard/subscription' +import { PaymentMethod } from './payment-method' import { RecurlyPlanCode } from './plan' type PaymentPageFormSubmitEventBaseSegmentation = { currencyCode: CurrencyCode plan_code?: string isPaypal: boolean + paymentMethod: PaymentMethod upgradeType: 'standalone' referrer?: string } @@ -46,6 +48,7 @@ type PaymentPageFormSuccessEventStripeSegmentation = payment_provider: StripePaymentProviderService stripe_price_id: string stripe_price_lookup_key: string + paymentMethod: PaymentMethod } type PaymentPageFormSuccessEventRecurlySegmentation =