We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83fc39b commit 7271849Copy full SHA for 7271849
src/checkout/context/checkout.tsx
@@ -32,6 +32,7 @@ import {PAYG_CREDIT_EXPERIMENT_ID} from 'src/shared/constants'
32
import {CreditCardParams, RemoteDataState} from 'src/types'
33
import {getErrorMessage} from 'src/utils/api'
34
import {isFlagEnabled} from 'src/shared/utils/featureFlag'
35
+import {event} from 'src/cloud/utils/reporting'
36
37
export type Props = {
38
children: JSX.Element
@@ -310,6 +311,9 @@ export const CheckoutProvider: FC<Props> = React.memo(({children}) => {
310
311
throw new Error(response.data.message)
312
}
313
314
+ event('CheckoutSuccess', {
315
+ creditApplied: isPaygCreditActive.toString(),
316
+ })
317
setCheckoutStatus(RemoteDataState.Done)
318
} catch (error) {
319
console.error(error)
0 commit comments