Sub topic 3
Writing Onboarding Copy
This chapter assumes you know basic app screens and forms, and that you understand analytics events: a logged record that a user did something, such as finishing a step.
Writing onboarding copy
Keep each onboarding message to one action. Name the benefit in the first few words, and use the verb the button performs ("Create project," not "Submit"). Remove any sentence that a user does not need in order to act.
Making onboarding accessible
Screen reader users hear each element's label, so every button and step title needs a clear text label. Do not rely on color alone to show progress. Keep focus on the current step when the screen changes, and make sure users can complete every step with a keyboard.
Tracking progress, skipping, and resuming
Store progress as data, not as a screen position. Record completed and skipped steps, then compute the next step from them. A user who closes the app mid-flow then returns to the right place.
type StepId = "welcome" | "profile" | "connect" | "done";
const steps: StepId[] = ["welcome", "profile", "connect", "done"];
interface OnboardingState {
completed: StepId[];
skipped: StepId[];
}
function nextStep(state: OnboardingState): StepId {
const handled = new Set<StepId>([...state.completed, ...state.skipped]);
return steps.find((s) => !handled.has(s)) ?? "done";
}
console.log(nextStep({ completed: ["welcome"], skipped: ["profile"] })); // "connect"Measuring onboarding with a funnel
A funnel counts how many distinct users reach each step, in order. The drop between two steps shows where people leave. Count users, not events, so one user who fires a step twice still counts once.
Testing and iterating on changes
Change one step at a time and split new users randomly between the current flow and the new one. Compare completion rates for the same funnel. Wait for enough users to rule out chance differences before you pick a winner.
Common pitfalls and how to avoid them
- Asking for permissions on the first screen, before the user sees any value.
- Making skip impossible, which traps users who want to explore first.
- Counting page views instead of completed steps, which hides drop-off.
- Ending a test early because one day's numbers look good.
Exercise
A user skipped "profile" and completed "welcome." Using nextStep, which step is shown next, and why?
Show answer
"connect". The function removes every completed and skipped step from the list, so the first remaining step is "connect".