Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(onboarding): fire subscription_success for free-tier selection (#2727)
Evan Hutnik07a04a5e4bcd
diff --git a/js/app/packages/app/component/interactive-onboarding/lessons/choose-plan.tsx b/js/app/packages/app/component/interactive-onboarding/lessons/choose-plan.tsxindex 8852290ac6..2040400f40 100644--- a/js/app/packages/app/component/interactive-onboarding/lessons/choose-plan.tsx+++ b/js/app/packages/app/component/interactive-onboarding/lessons/choose-plan.tsx@@ -23,7 +23,10 @@ function ChoosePlanDemo(props: LessonContentProps) {const handleCheckout = async (tier: string) => {if (loading()) return;if (tier === 'free') {- analytics.track('subscription_start', { type: tier });+ // Free bypasses Stripe, so fire subscription_success directly here to+ // stay symmetric with the paid path (which fires it on Stripe return+ // via Root.tsx's ?subscriptionSuccess handler).+ analytics.track('subscription_success', { type: tier });// Advance to the launch step rather than leaving onboarding.props.advance();return;