Beyond California, the US state privacy laws share a common pattern: visitors can opt out of the sale of their personal data, of targeted advertising and of certain kinds of profiling, and an increasing number of states mandate that you honour a browser privacy signal as that opt-out. Sensitive data is handled differently, because most of these states require opt-in consent before you can process it.
Most WordPress sites serving US visitors don't need a different banner per state. One opt-out that stops the advertising plugins and pixels, honors Global Privacy Control, and handles sensitive data covers the lot. The sensitive-data question matters most for form plugins, where several states switch from opt-out to opt-in.
| Requirement | What the law expects |
|---|---|
| Opt-out rights | Give visitors a way to opt out of the sale of personal data, targeted advertising and certain profiling, through the banner or a persistent link |
| Universal opt-out signals | A growing number of states require you to honour a browser signal such as Global Privacy Control as an opt-out; the list expands as new laws take effect |
| Sensitive data | Most of these states require opt-in consent before processing sensitive data. Maryland goes further: strictly necessary use only, with no sale of sensitive data permitted |
| Minors | Targeted advertising or sale involving known minors requires opt-in consent, and some states prohibit it entirely. Age bands vary by state |
| Request channels | Provide a privacy notice and a mechanism for access, deletion, correction and portability requests where the state grants those rights |
How CookieBeam's US Opt-Out States preset handles it
CookieBeam provides a regional preset designed for visitors from US states with privacy laws. Applying it generates an editable rule that ships with the following starting values.
Of the states the preset covers, the laws of Colorado, Connecticut, Delaware, Maryland, Minnesota, Montana, New Hampshire, New Jersey, Oregon and Texas require you to honor a universal opt-out signal such as Global Privacy Control. The preset honors it in every state it covers, which is the simpler rule to run.
| Setting | CookieBeam preset |
|---|---|
| Who it matches | Visitors in 18 states (Colorado, Connecticut, Delaware, Iowa, Indiana, Kentucky, Maryland, Minnesota, Montana, Nebraska, New Hampshire, New Jersey, Oregon, Rhode Island, Tennessee, Texas, Utah and Virginia) |
| Banner mode | Opt-out: tags run from the first page view until the visitor opts out |
| Buttons | "Accept Cookies" and "Reject All" on the first layer, plus "Your Opt-Out Rights", which opens the US opt-out panel |
| Persistent opt-out link | Off when the rule is created; turn on the rule's Do-Not-Sell link option to keep "Your Opt-Out Rights" available after the first choice |
| Google Consent Mode defaults | All storage types start granted until the visitor opts out |
| Global Privacy Control | Honored automatically as an opt-out, with no click needed; it cannot be switched off for visitors this preset matches |
| Stored choice | Expires after 365 days, then the visitor is asked again |
Where WordPress sites leak data
- Tracking plugins. Analytics, pixel and form plugins inject their own scripts. When the WP Consent API plugin is installed, CookieBeam relays the visitor's choice to it, and plugins that read consent through that API (such as WooCommerce and Site Kit) respect the banner. Plugins that don't check the API need their scripts blocked separately.
- Theme and header-script plugins. A pixel dropped into
header.phpor added through an "insert headers" plugin fires before anything else can intervene, unless it's written as inert markup that CookieBeam activates. - Optimisation plugins. Delay-JavaScript features can reorder scripts so that a pixel loads ahead of the banner. The CookieBeam plugin excludes itself from WP Rocket, LiteSpeed Cache, Autoptimize, SiteGround Optimizer and Perfmatters; for any other optimiser, exclude
cdn.cookiebeam.commanually.
Sensitive data in WordPress forms
Form, booking and membership plugins are where WordPress sites collect health details, precise location or other data the state laws treat as sensitive. Most states require opt-in consent before processing it, and a cookie banner can't stand in for a form-level consent field. Add an explicit consent checkbox to those forms and keep their tracking scripts out of the advertising category. The sensitive data guide lists what counts by state.
Set up CookieBeam on WordPress for the US state privacy laws
Publish your banner first
Build the banner in CookieBeam, set up its consent categories, and publish it to production so the loader script has a live configuration to serve. See the quickstart.
Install the CookieBeam plugin
Open Plugins › Add New Plugin › Upload Plugin in WordPress, upload the CookieBeam plugin zip and activate it. The plugin isn't listed in the WordPress.org directory yet, so a search there won't return it.
Paste the banner ID
Copy the banner ID from Deployment › Install in CookieBeam and paste it into Settings › CookieBeam in WordPress, then save. The plugin places the loader first in <head> and prevents caching and optimisation plugins from deferring it. If you previously pasted a CookieBeam script tag into the theme, remove it so the banner doesn't load twice.
Add a "Cookie settings" link
Create a menu or footer link pointing to #cookiebeam-settings (classic themes also get a CookieBeam box under Appearance › Menus) so visitors can reopen their preferences and change their choice at any time.
Apply the US Opt-Out States preset
On the banner's Regional settings page, add a rule from the US Opt-Out States framework preset. It matches visitors in 18 states (Colorado, Connecticut, Delaware, Iowa, Indiana, Kentucky, Maryland, Minnesota, Montana, Nebraska, New Hampshire, New Jersey, Oregon, Rhode Island, Tennessee, Texas, Utah and Virginia) with an opt-out banner: tags run from the first page view until the visitor opts out. Its preferences button reads "Your Opt-Out Rights" and opens the US opt-out panel. Turn on the rule's Do-Not-Sell link option so a persistent link stays available after the first choice. Add the CCPA/CPRA preset too for California visitors. See regional rules.
Mark the tags that sell or share
Advertising pixels and data-sharing tags belong in the marketing category. Scripts that appear in your reviewed scan inventory are managed by CookieBeam once you turn on blocking; scripts hard-coded in the page need inert markup (type="text/plain" with a data-category attribute) so CookieBeam can control them. See script blocking. In opt-out mode these tags run by default and are deactivated once the visitor opts out.
Save, publish and test
Click Save Settings, then Publish in the banner header. Changes to rules only take effect for visitors after you publish. Full install instructions: WordPress install docs.
Test your WordPress site like a visitor from a US privacy-law state
- Open the site in a fresh browser profile from one of the covered states, or with a geo-simulated preview, and confirm the opt-out banner appears.
- Open the opt-out choices, opt out of sale and targeted advertising, reload the page and check the Network tab: advertising pixels should no longer be loading.
- In a GPC-enabled browser, load the site fresh and verify that advertising tags never fire without any click required.
- Confirm the persistent opt-out link is still accessible after the visitor has made their first choice.
- Clear the page cache and any optimisation-plugin cache after publishing, then run the checks again while logged out, because logged-in administrators often see a different set of scripts.
The cookie banner QA checklist walks through additional checks.
Frequently Asked Questions
Do I need a separate banner for each US state?
No. One regional rule can cover every opt-out state, with the California preset alongside it for California. Applying the strictest common behaviour across all US visitors is usually simpler than tracking each state threshold individually.
Is a plugin required to add a cookie banner on WordPress?
Not strictly, but it's the easiest way. The CookieBeam plugin loads the script first in the head and shields it from optimisation plugins. You can also add the loader to the theme manually; see WordPress cookie consent without a plugin.
Does page caching interfere with the banner?
No. Full-page caching works fine because the banner resolves consent in the browser. The problem is an optimiser that delays or combines the banner script, and the plugin prevents that for the most common optimisation plugins.
Do the US state privacy laws require a cookie banner?
Not an opt-in banner for ordinary cookies. They require an opt-out covering sale, targeted advertising and profiling, and several states also mandate automatic handling of Global Privacy Control. Sensitive data is a separate matter: most of these states require opt-in consent before you process it.
Which states does the US opt-out preset cover?
The US Opt-Out States preset matches 18 states: Colorado, Connecticut, Delaware, Iowa, Indiana, Kentucky, Maryland, Minnesota, Montana, Nebraska, New Hampshire, New Jersey, Oregon, Rhode Island, Tennessee, Texas, Utah and Virginia. California has its own CCPA/CPRA preset.
Related guides and sources
For WordPress: WordPress cookie consent: the complete implementation guide. For the law: US state privacy cookie banner checklist, which states require universal opt-out signals, sensitive data under US state privacy laws. Other platforms: US privacy law setup by platform.
Primary sources: Global Privacy Control specification.
This page summarises the law as we understand it in October 2026 for website and cookie decisions. It is not legal advice. Statutes, regulations and regulator guidance change, so check the current text with counsel before relying on any threshold or date mentioned here. CookieBeam's regional presets are configurable starting points, not a legal determination for your site.






