Menu
FeaturesPricingAboutFAQGuidesNPS calculatorTemplatesSign inView 7-day trial

Detecting repeat exposure to an introductory tour

Persistent dismissal flag

When a visitor completes or closes the introductory walkthrough, write a small flag to their browser storage so the tour never reappears. Use a namespaced key such as app_onboard_v1_complete with a boolean value. On each page load, read the flag before deciding whether to inject the tour script. If the flag is absent, start the tour; if present, skip it entirely.

Cross-device consideration

The flag lives only in the current browser profile. A person switching from desktop Chrome to mobile Safari will see the tour again unless you also store the dismissal state on your backend. After the final step, send a lightweight POST to /api/onboard/complete with the user ID. On subsequent logins, the server can return a tour_dismissed: true field that the client respects before checking local storage.

Worked example: returning contributor

Maria finishes the tour on her work laptop on Tuesday. The client sets localStorage.setItem('app_onboard_v1_complete', 'true') and POSTs completion. Thursday she logs in from a home tablet. The server responds with tour_dismissed: true, the client sees the flag, and no tour loads. Friday she clears browser data on the laptop; the local flag disappears, but the server still returns tour_dismissed: true, so the tour stays hidden.

Verification checklist

  • Flag key includes version number for future tour revisions.
  • Server endpoint idempotent: repeated POSTs do not error.
  • Client reads server flag before local flag.
  • Clearing browser data does not resurrect the tour.

Result: a returning contributor never sees the introductory walkthrough twice, regardless of device or cache clearing.

Related: Onboarding Tours features.