Open the console

Rolling Out an Onboarding Checklist Behind a Feature Flag

Shipping a new checklist to everyone at once makes a bad step costly to undo. Gating it behind a flag lets you roll back a single cohort instead of the whole product.

Rolling Out an Onboarding Checklist Behind a Feature Flag

Why gate a checklist at all

A checklist looks like a low-risk feature: it's a widget, not a core workflow, so it's tempting to ship a new version of it to every account the moment it's ready. The risk isn't that the checklist breaks the app — it's that a step is wrong in a way you only notice once real users hit it. A step that points at a renamed button, asks for a permission the account doesn't have, or fires its completion event on the wrong trigger will quietly teach a cohort of new users that the checklist is unreliable, and you won't know until support tickets or a drop in completion rate tell you. Gating the rollout behind a feature flag turns that into a problem you can contain to a small group and reverse in seconds, rather than one you discover after it's already reached everyone who signed up that day.

What the flag should gate: the step set, not the widget

The useful granularity is the step definition, not whether the checklist appears at all. If the flag is all-or-nothing — checklist on or off — you lose the ability to test a changed step 3 without also hiding steps 1, 2, 4, and 5 from the test cohort, which gives you no signal about the one thing you actually changed. Keep the widget itself unconditional and let the flag decide which version of the step list the API returns for a given account:

func stepsForAccount(accountID string, flags FlagSet) []Step {
  if flags.Enabled("checklist-v2-step3", accountID) {
    return stepsV2
  }
  return stepsV1
}

This keeps the comparison clean: everyone sees a checklist, only the flagged cohort sees the changed step, and the completion data for that one step is comparable across the two groups because nothing else moved. See the API docs for how the steps endpoint is structured if you're adding a branch like this to your own handler.

Assigning the flag: account ID, not session or cookie

A checklist's progress is tied to the account record, so the flag assignment has to be too — not to a session or a browser cookie, both of which can change mid-rollout and put the same account on two different step sets across two devices or after a cache clear. Hash the account ID into a bucket deterministically so the same account always lands in the same group for the life of the flag, rather than re-rolling the assignment on every request. If you're already tracking progress before signup against an anonymous visitor, decide at signup time whether that anonymous flag assignment carries over to the new account ID or gets re-rolled — carrying it over is usually the right default, so a visitor who started on the new step set doesn't get swapped mid-flow onto the old one the moment they create an account.

Rolling back a step that isn't working

The entire reason to do this behind a flag is the rollback path: when a step turns out to be wrong, you flip the flag back to 0% for the affected cohort and the next page load serves the old step set, no deploy required. That only works cleanly if the old step definitions are still in the codebase and not deleted the moment the new ones ship — keep both versions available until the rollout is fully decided one way or the other, then delete the losing one as a separate cleanup change. A step that's ambiguous to roll back (for example, one that writes a value to a field the old step doesn't know how to read) is a sign the step design coupled progress state to the step definition more tightly than it should have; keeping progress storage and step definitions separate is what makes a flagged rollout reversible instead of a one-way migration.

What to measure before widening the rollout

The decision to go from a flagged cohort to 100% should rest on per-step completion rate for the flagged group compared to the control group on the same step, not on whether the flagged cohort completes the checklist overall — a cohort that's smaller and possibly skewed toward early adopters can look better on aggregate numbers for reasons that have nothing to do with the step you changed. No benchmark exists for what a “safe” step change should do to completion rate; that threshold is specific to your product and has to come from watching your own flagged cohort against your own control, not from an industry figure. Track it with the same event pipeline described in piping checklist completions into your analytics, segmented by the flag's bucket, before deciding the new step set is ready for everyone.

Try it on your app