A geo cookie banner shows each visitor the consent rule that fits where they are: opt-in for the EU, EEA, UK and Switzerland, opt-out for the United States, and a rule you choose for the rest of the world. ClearCrumb does this out of the box, without an IP database or a remote lookup. Visitors whose region is unknown always get the strict opt-in banner.
What is a geo cookie banner?
Privacy laws do not agree on one model. The GDPR and UK GDPR, and the Swiss data protection law, say that nothing optional may run before the visitor says yes. Most US state privacy laws work the other way round: tracking may run, but people must be able to opt out of the sale or sharing of their data. A single banner for everyone is either too strict for some visitors or not strict enough for others.
A geo cookie banner solves this by asking one question first: where is this visitor? ClearCrumb answers it on every first visit, then shows the matching banner. The buttons, the text and the default for each cookie category all follow the region. Necessary cookies are always on, everywhere.
The strictest setup is still one click away. If you prefer one banner for the whole world, switch the region rules off and every visitor gets the opt-in banner (see the last section below).
Which banner does each region get?
This table shows what the geo cookie banner does for each group of visitors with the default settings.
| Visitor from | Rule | Banner buttons |
|---|---|---|
| EU/EEA, UK, Switzerland | Opt-in: nothing optional runs before a yes | Preferences · Reject all · Accept all |
| United States | Opt-out: allowed until the visitor says no | Preferences · Do not sell or share my info · OK |
| Rest of the world | Your choice: opt-in (default), notice only or no banner | Depends on the rule |
| Unknown | Opt-in | Preferences · Reject all · Accept all |
A few details behind the table:
- EU, EEA, UK, Switzerland covers the 27 EU countries, Iceland, Liechtenstein, Norway, the United Kingdom and Switzerland. This rule is always opt-in and cannot be changed. Reject all is the same size and colour as Accept all.
- United States includes Puerto Rico, Guam, the US Virgin Islands, American Samoa, the Northern Mariana Islands and the US minor outlying islands. US visitors see the title “Your privacy choices”.
- Rest of the world uses opt-in unless you pick another rule. With Notice, everything runs and visitors can change it with Preferences or OK. With No banner, only the small cookie settings button shows.
Every choice is saved to the consent log together with the region and the country, so you can later see which rule a visitor was shown. Read more in the GDPR consent log guide.

How is the visitor’s country found?
ClearCrumb never looks up IP addresses. Instead, your server reads the country from a header that your host or CDN already adds to each request. ClearCrumb checks the common ones in this order: Cloudflare, Amazon CloudFront, GeoIP headers set by many hosts, X-Country-Code, Vercel and Google App Engine. Unknown or Tor values from Cloudflare count as no country.
Here is what happens on a first visit:
- The page loads and the banner waits until the region is known.
- The banner asks your site once, through a small request to
clearcrumb/v1/regionthat is never cached. The answer holds only the region and the two-letter country code, never the IP address. - If no header is there, the visitor’s time zone decides.
- If the server has not answered after 2.5 seconds, the time zone decides too, so visitors never wait.
- When the region is still unknown, ClearCrumb uses opt-in.
The result is remembered for the rest of the browser session, so later page views do not ask again.
On Cloudflare, the country header is there by default. For per-US-state rules in Pro, turn on “Add visitor location headers” under Rules → Managed Transforms.

Does it work with page caching?
Yes. Because the region check happens in the browser, a cached page never shows the wrong banner. Your cache plugin or CDN can store one copy of each page for all visitors; the geo cookie banner decides per visitor after the page has loaded. The region request itself sends no-cache headers, so a CDN does not keep one visitor’s answer for the next.
You do not need to exclude pages from the cache or add cache rules for geo targeting. For plugin-specific notes, see cookie banner cache plugin settings.
How is Global Privacy Control honoured?
Some browsers and extensions send a Global Privacy Control (GPC) signal that means “do not sell or share my data”. Browsers expose it to pages as navigator.globalPrivacyControl. Several US state laws require sites to treat it as a valid opt-out.
When a US visitor’s browser sends GPC and the US rule is opt-out, ClearCrumb saves an opt-out of marketing automatically and shows a short note instead of the banner: “Your Global Privacy Control signal is honoured: no sale or sharing.” Preferences and statistics stay on, as the opt-out rule allows. The visitor can still open Preferences later and change anything.
These choices appear in the consent log as GPC opt-out, and the dashboard counts them with rejections. In opt-in regions, GPC changes nothing, because marketing is already off until the visitor says yes.
The cookie policy that ClearCrumb writes for you also mentions the “Do not sell or share my info” button and the GPC signal when the US rule is opt-out.
How do I change the geo cookie banner rules?
Go to ClearCrumb → Banner and find the Regions card.
- Leave Different rules per region switched on to use the geo cookie banner.
- Under United States, pick Opt-out + Global Privacy Control (the default) or Opt-in (like the EU).
- Under Rest of the world, pick Opt-in (safest), Notice: everything runs, visitors can change it or No banner, only the settings button.
- Save the banner. Visitors see the new rule straight away.
Switch Different rules per region off to show the opt-in banner to everyone, which is the strictest setup. The card then says “Every visitor gets the opt-in banner.”
The region rule also sets the defaults that tools like Google see before a choice. See Google Consent Mode v2 for how ClearCrumb passes them on, and cookie banner design for layouts and text.
ClearCrumb Pro adds per-US-state rules, so you can treat a visitor from California differently from one in Texas. ClearCrumb helps you meet consent rules; it is not legal advice.
Geo cookie banner: questions
Does a geo cookie banner need an IP database?
No. ClearCrumb reads the country header that Cloudflare or your host already sends, and falls back to the visitor’s time zone. No IP address leaves your server and no third-party lookup is made.
What does a visitor see when the country is unknown?
The opt-in banner with Preferences, Reject all and Accept all. Unknown always means the strictest rule, so you never under-protect a visitor from the EU.
Can I show the same banner to every visitor?
Yes. Switch off Different rules per region in the Regions card. Every visitor then gets the opt-in banner, whatever their country.
Does the geo cookie banner work behind a CDN?
Yes. The region request is never cached and the banner picks the rule in the browser, so full-page caching and CDNs keep working.