Where the widget shows up
The rules for when Coohoo appears on a site and when it stays hidden.
Coohoo is built for staging, the private test copy of your site. It switches itself off on your live site, so your real visitors never see it.
The rules
The widget decides where to appear by looking at the host, the main part of the web address.
- Your production domain: never. Not even with
?reviewin the address. - A production domain is set: the widget shows on every other host.
- No production domain is set: the widget shows only on these hosts:
localhost*.vercel.app,*.netlify.appand*.pages.dev- hosts whose first part is
staging,stage,preview,dev,develop,test,qaoruat - any address with
?reviewin it
A visit with ?review is remembered for that host in that browser. Later pages work without it.
Examples
| Address | Production domain set to acme.com | No production domain |
|---|---|---|
acme.com | Hidden | Hidden |
acme.com/?review | Hidden | Shows |
staging.acme.com | Shows | Shows |
acme.vercel.app | Shows | Shows |
localhost:3000 | Shows | Shows |
client-preview.example.net | Shows | Hidden until you add ?review |
In the last row, the first part of the host is client-preview. That is not on the list, so Coohoo waits for ?review.
How to set the production domain
- Open the dashboard and find your project card.
- Click the ⋮ menu on the card, then Edit details.
- Type your live site's address in the production domain field.
If something looks wrong
- The widget is hidden on staging. Your host may not be on the list. Add
?reviewto the address once. - The widget is hidden even with
?review. You are on the production domain. That is on purpose: Coohoo never shows there. - The widget shows on your live site. No production domain is set, and the address matched a rule. Set the production domain now.
Tip: Set the production domain even if you only use preview links today, so the widget can never leak onto your live site, whatever hosting you move to.