Keeping Onboarding Checklist Progress Out of Production
A QA account clicking through every step in staging shouldn't leave a trail that shows up when the same checklist runs in production. How to keep the two separate.
Most teams test the onboarding checklist the same way they test everything else: by clicking through it on a staging environment, repeatedly, with the same two or three test accounts, until it looks right. That's the correct way to test it. The problem shows up later, when staging and production point at the same onboarding backend — the same instance, the same API key, sometimes even the same database — and the QA account's completed steps, dismissed prompts and half-finished runs start showing up in dashboards meant to answer a production question: how many real users finish step three. A checklist that looks 40% complete because a tester clicked through it eight times during a demo is not a signal anyone should be making decisions from, and the fix is cheaper before that data exists than after.
Why this slips through more easily than other test-data problems
Most backend services get a staging/production split by default, because the cost of mixing them is obvious: a staging payment hitting a production ledger, a staging email going to a real customer. Onboarding progress doesn't trip the same alarm. Writing a completion record for a test user feels harmless — nothing charges a card, nothing sends an email, nothing external happens. So it's common for a team to wire the checklist up once, point every environment at the same project, and only notice the mixing when someone pulls completion numbers for a board update and the staging team's QA pass is sitting in the same table as real signups. By then the fix is a cleanup script, not a config change.
Separate by project, not by a flag in the data
The reliable separation is a different project (a different set of credentials, a different embed) per environment, the same way a payment processor gives you separate test and live API keys rather than a "test: true" column on a shared one. Tagging staging records with a flag and filtering them out in every query works until someone writes a new query, a new dashboard or a new export and forgets the filter — and the record exists in the same place a real user's record does, so a bug that drops the filter doesn't error, it just quietly includes test noise. Two separate projects make the mistake structurally harder: a query against the production project's data cannot accidentally include a row that was never written there.
// one key per environment, set from the environment itself
CHECKLIST_PROJECT_ID := os.Getenv("CHECKLIST_PROJECT_ID") // staging and prod differ
CHECKLIST_API_KEY := os.Getenv("CHECKLIST_API_KEY")
What this costs you, and what it buys back
The honest downside of a second project is that staging's checklist starts from zero every time someone resets the staging database, and a tester who wants to see what the "halfway done" state looks like has to click halfway through again rather than inheriting a conveniently pre-populated account. That's a real cost on a team that resets staging often. It's worth paying anyway, because the alternative cost is worse and shows up later: every number anyone pulls from the production project — completion rate, drop-off by step, time to finish — is trustworthy by construction rather than trustworthy until someone checks who logged in from the test harness last week. See importing existing progress for the related case of migrating real users' state between projects without the same contamination risk.
Preview mode is not the same thing as staging
It's tempting to reach for the product's own preview mode to test checklist changes instead of standing up a second project, and for pure visual QA — does this copy fit, does this step render — that's the right tool, because preview mode is designed to not write real completion records at all. It stops being the right tool the moment the test needs to exercise the actual write path: webhook-triggered steps, server-side completion calls, anything that has to prove the integration code works end to end rather than just that the widget renders. That kind of test needs a real project behind it, which is exactly the case this piece is about keeping separate from production.
What to check if you're not sure which you have today
If staging and production currently share a project, the fastest way to confirm it without guessing is to complete one step in staging right now and check whether a new row shows up in the production dashboard's recent activity. If it does, the fix is creating a second project and repointing staging's environment variables at it — not filtering the existing data, which only hides the next mistake rather than preventing it. Full setup for creating and switching projects is in the docs.