URL Parameters
Debug, verify, opt out, and refresh the SDK with query strings.
URL Parameters
Four query parameters that the Otter A/B SDK watches for. Use them to debug a page, confirm an install, opt yourself out of tests, or reset your visitor state.
The SDK looks for these parameters on page load and acts on them before fetching any test configuration. They're safe to use in production — visitors won't trigger them by accident, and most of them strip themselves from the URL after running so they don't pollute analytics or get shared.
For QA workflows, combine them: open a page with ?optimo-refresh to reset your visitor state, then reload with ?optimo-debug to watch a fresh assignment in the console.
| Parameter | What it does |
|---|---|
?optimo-optout https://your-site.com/page?optimo-optout | Bypass the SDK on this page load. No tests run, no events fire, the anti-flicker style is removed immediately. Useful for excluding your own browsing or for support agents reproducing issues without entering tests. |
?optimo-verify=YOUR_API_KEY https://your-site.com/?optimo-verify=YOUR_API_KEY | Confirms the SDK loaded with your key by sending a verification ping back to Otter A/B. The dashboard's installation checker uses this to mark a project as verified. |
?optimo-debug https://your-site.com/page?optimo-debug | Enables verbose [Optimo] logging in the browser console. Shows every test evaluated, why each variant was assigned or skipped, and any targeting / trigger gates that ran. |
?optimo-refresh https://your-site.com/page?optimo-refresh | Wipes the visitor UUID, cached test config, cached variants, and any queued events from this browser, then asks the server to clear the visitor record. Use when QAing a fresh-visitor experience without opening an incognito window. The page reloads with the parameter stripped. |
Preview-mode parameters (?optimo-preview and ?optimo-variant) are documented in the Preview Mode section.
Frequently asked questions
Quick answers to the questions teams ask most about this part of Otter A/B.