How a CMP works

A CMP loads before your other tags and detects where the visitor is. EU and UK visitors get an opt-in banner: nothing beyond strictly necessary cookies fires until they click Accept. US visitors usually get an opt-out model: analytics and ads can load, but the visitor must have an easy way to stop the sale or sharing of their data and targeted advertising.

The CMP stores the choice in a first-party cookie, passes it to Google Tag Manager, the Meta pixel and other tags, and logs it with a timestamp so you can show what the visitor saw and chose.

What US privacy laws expect

The CCPA, as amended by the CPRA, applies to for-profit businesses that do business in California and meet one threshold: gross annual revenue over $25 million (indexed for inflation), buying, selling or sharing the personal information of 100,000 or more California residents or households, or earning 50% or more of revenue from selling it. Colorado, Connecticut, Virginia, Texas and a growing list of states have similar laws.

  • Display a "Do Not Sell or Share My Personal Information" link if you sell or share data, and never require an account to use it.
  • Treat a Global Privacy Control (GPC) browser signal as a valid opt-out request.
  • After an opt-out, wait at least 12 months before asking the visitor to opt back in.
  • Show EU and UK visitors a true opt-in banner with an equally visible Reject button.

Setting it up with Google tags

If you advertise to European users, connect the CMP to Google Consent Mode v2. It sends four signals to Google tags: ad_storage, analytics_storage, ad_user_data and ad_personalization. For US traffic, configure the CMP to switch ad_storage and ad_personalization to denied when a visitor opts out or sends GPC. Then test in an incognito window with GPC enabled and confirm in Tag Assistant that the consent state changes.

Common mistakes

Hard-coding the Meta pixel in the theme so it fires outside the CMP. Showing a US-style "We use cookies, OK" notice to European visitors. Linking "Do Not Sell or Share" to an email address instead of an immediate toggle. Ignoring GPC because the banner was set up before the signal existed. Each one turns a compliance tool into evidence of non-compliance.