Skip to content

Commit 500db3c

Browse files
authored
Merge pull request #1137 from airweave-ai/feat/onboarding-funnel-final-step
Add PostHog tracking for onboarding completion event
2 parents ab67e21 + 6b1cb3b commit 500db3c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

frontend/src/pages/Onboarding.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,18 @@ export const Onboarding = () => {
321321

322322
const organization = await createOrgResponse.json();
323323

324+
// Track successful org creation
325+
posthog.capture('onboarding_completed', {
326+
org_id: organization.id,
327+
org_name: formData.organizationName,
328+
subscription_plan: formData.subscriptionPlan,
329+
billing_period: billingPeriod,
330+
team_members_invited: teamMembers.length,
331+
org_size: formData.organizationSize,
332+
user_role: formData.userRole,
333+
org_type: formData.organizationType,
334+
});
335+
324336
// Step 2: Update organization context
325337
setCurrentOrganization(organization);
326338

0 commit comments

Comments
 (0)