mirror of
https://github.com/multica-ai/multica.git
synced 2026-08-02 18:13:27 +02:00
Issue funnel attribution: `onboarding_completed` previously joined to `onboarding_started` on `distinct_id` alone, which collapsed skip_existing / invite_accept completions into the same bucket as real funnel completions. PostHog's 30-day backfill could only link 20 / 152 completions back to a start. Generate an `onboarding_session_id` on `onboarding_started`, persist it to client storage so it survives reloads, attach it as a property on every onboarding event (client and server), and clear it on `onboarding_completed`. Skip / invite paths never receive a session id; HogQL funnels filter `onboarding_session_id IS NOT NULL` to isolate real funnel completions from soft completions. Co-authored-by: multica-agent <github@multica.ai>
21 lines
465 B
TypeScript
21 lines
465 B
TypeScript
export type {
|
|
OnboardingStep,
|
|
OnboardingCompletionPath,
|
|
QuestionnaireAnswers,
|
|
TeamSize,
|
|
Role,
|
|
UseCase,
|
|
} from "./types";
|
|
export {
|
|
saveQuestionnaire,
|
|
completeOnboarding,
|
|
joinCloudWaitlist,
|
|
} from "./store";
|
|
export { ONBOARDING_STEP_ORDER } from "./step-order";
|
|
export { recommendTemplate, type AgentTemplateId } from "./recommend-template";
|
|
export {
|
|
startOnboardingSession,
|
|
getOnboardingSessionId,
|
|
clearOnboardingSession,
|
|
} from "./session";
|