Consent UX
Designing region-aware consent without overwhelming users
EU and UK rules expect consent before tags fire, and most US state laws run on opt-out. Here’s how one banner can serve both without burying visitors in legal clutter.
Consent UX 3 min read The UserGuard team

- Region-aware consent comes down to two patterns: prior consent before non-essential tags in the EU and UK, and notice plus opt-out in most US states. The banner adapts by country, and inside the US every visitor gets the consent model you set.
- Some things shouldn’t vary by region. Accept and reject use the same button style, in the same color, in all five banner layouts, and Global Privacy Control is honored automatically wherever the signal arrives.
- Every consent event is logged with the region and language it was collected under, plus banner version, GPC signal, per-category choices and timestamp, and exports as CSV.
How many consent patterns does a global site need?
Two. Most of the complexity in region-aware consent comes down to two patterns. Under the GDPR and ePrivacy rules, and the UK's equivalents, nothing non-essential fires until the visitor opts in, and rejecting has to be as easy as accepting. Most US state laws run the other way, with an opt-out regime built on notice, a working Do Not Sell or Share mechanism, and honoring Global Privacy Control.
Which laws reach your business depends on where your visitors are and on thresholds that differ by state, and this post isn't legal advice, so confirm your scope with counsel. The design question is easier than the legal one. You want a single banner that behaves correctly for each visitor, and you shouldn't have to become an expert first.
How region configuration works
UserGuard's banner is built around those two patterns. Visitors in the EU, the UK, Switzerland, Iceland, Liechtenstein and Norway get prior consent by default, matched by country at request time, and everyone else, US visitors included, gets the mode you choose as your default, which starts as opt-in. The UK is one more opt-in country on that list, and we track its rules as they change. The banner adapts by country, so inside the US every visitor gets the consent model you set. Choose the one your strictest state needs.
Underneath that, Consent Mode v2 defaults and script blocking rules hold non-essential tags until the visitor's region and choice allow them. The blocking rules are 22 built-in patterns plus your own substring rules and script markup. You should be able to look at your configuration and see what's blocked where, without having to dig for it.
What should stay the same in every region?
The choice itself shouldn't look different from one place to another. Accept and reject use the same button style, with the same color, size and weight, in every one of the banner's five layouts and under both the opt-in and opt-out models. A banner that buries reject in one market creates an asymmetry regulators have fined. The preference center stays reachable after the first choice and has its own one-click reject all, so changing your mind doesn't take any digging.
Global Privacy Control is honored automatically wherever the signal arrives, and that handling is never paywalled. Honoring it globally is easier and safer than maintaining a dozen geographic carve-outs that drift out of date. For US visitors, a Do Not Sell or Share link that you place on your site ties into the same system.
Adding banner languages
A banner a visitor can't read isn't collecting informed consent, whatever mode it runs in. UserGuard doesn't translate your banner automatically. You add the translations yourself, from 22 language presets or any BCP 47 language tag, with support for right-to-left scripts, and the banner picks one from the visitor's browser language.
That matters most where the prior-consent rules apply, since a visitor in the EU is also among the least likely to want your banner in English.
Keeping the region on each record
Every consent event is logged with the region and language it was collected under, along with the banner version, any GPC signal, the per-category choices and a timestamp, and you can export the log as CSV. If a question ever comes in from a specific market, you can answer it with the rule set that visitor got, so you don't have to guess.
The cheapest check is one you run yourself. Load your site through a VPN endpoint in another country, watch the network tab before you click anything, and see whether the behavior matches what you configured. It takes about ten minutes, and you'll trust your banner more than you would from any diagram of it.
Go deeper: the UserGuard cookie banner · consent analytics by region
Keep reading