chore: add event tracking for billing (#7277)

fix AFF-1226
This commit is contained in:
pengx17
2024-06-20 03:33:07 +00:00
parent ddf72733e1
commit a085e507b4
8 changed files with 127 additions and 9 deletions

View File

@@ -53,6 +53,10 @@ export const Component = () => {
: !!subscriptionService.subscription.pro$.value;
if (!subscribed) {
setMessage('Creating checkout...');
mixpanel.track('PlanUpgradeStarted', {
type: plan,
category: recurring,
});
try {
const checkout = await subscriptionService.createCheckoutSession({
idempotencyKey,