Guía de cumplimiento

CCPA y consentimiento de cookies: lo que exige la ley de California

Cómo afecta CCPA/CPRA a las cookies y el rastreo en tu sitio. Cubre requisitos de exclusión, obligaciones "Do Not Sell" y diferencias con el RGPD.

Publicado el

CCPA y consentimiento de cookies: lo que exige la ley de California

The California Consumer Privacy Act (CCPA), and its 2023 expansion (CPRA, sometimes called CCPA 2.0), are the closest thing the US has to GDPR. Closest, not identical. The two laws work on different models, target different rights, and require different banner UX. Bolting a GDPR banner onto a CCPA-relevant site is a mistake I see constantly. In California it can actually get you sued.

This guide covers what California requires for cookies, where it diverges from GDPR, and what a compliant banner needs in 2026.

CCPA, CPRA, CPPA: too many initialisms

The acronyms confuse everyone. The short version:

  • CCPA (California Consumer Privacy Act) — passed 2018, in effect since January 2020.
  • CPRA (California Privacy Rights Act) — passed by ballot in 2020, amended and expanded CCPA, in effect since January 2023.
  • CPPA (California Privacy Protection Agency) — the regulator created by CPRA. Took over enforcement from the California Attorney General in mid-2023.

Most people say “CCPA” to mean the combined CCPA+CPRA framework. That's usually fine, but when reading legal commentary, watch for which one the writer actually means.

The opt-out model

This is the headline difference from GDPR. CCPA doesn't require you to ask permission before setting cookies. It requires you to give visitors a way to opt out after the fact.

In practice that means:

  • You can drop analytics and advertising cookies on the very first pageview without asking first.
  • You must show a “Do Not Sell or Share My Personal Information” link in a clear location. Most sites put it in the footer.
  • If a visitor clicks that link, you must stop selling and sharing their data within 15 days.
  • You must honour browser-level signals like Global Privacy Control (GPC). More on GPC below — it's the part most sites get wrong.

This is the inverse of GDPR's model. GDPR says no by default and the visitor has to actively say yes. CCPA says yes by default and the visitor can say no later.

What counts as a “sale” or “share”

The wording matters because the opt-out applies specifically to sales and shares. Both are defined more broadly than the everyday meanings suggest.

A sale is any disclosure of personal information for monetary or “other valuable consideration.” Most people read “sale” as “we got paid for the data,” but California's definition is much wider. Sharing data with a third-party analytics or advertising platform in exchange for them showing your ads to that user is a sale. The Sephora settlement (August 2022, $1.2M) was about exactly this: Sephora argued they weren't selling data when they shared it with analytics providers. The Attorney General disagreed.

A share (added by CPRA) is disclosure for cross-context behavioural advertising — basically retargeting. If your site fires the Meta Pixel and a Facebook user later sees your ad on Facebook because of that, you're sharing.

So in cookie terms: virtually every analytics or advertising cookie on your site, except your own first-party session cookie, probably falls under either sale or share. The opt-out applies to all of them.

Global Privacy Control: the underrated requirement

GPC is a browser-level signal. The visitor enables it in their browser settings, and the browser sends a Sec-GPC: 1 HTTP header plus a JavaScript navigator.globalPrivacyControl property on every request. It's a standing “opt me out” signal that doesn't require the visitor to click anything on your site.

The CPPA's position is unambiguous: GPC must be treated as a valid opt-out signal. If a visitor with GPC enabled lands on your site, you must opt them out of sale/share automatically, without showing them a banner or making them do anything.

This is the part most sites miss. Even sites with otherwise-decent banners often ignore GPC entirely. The Sephora settlement was largely about this: Sephora's banner was technically present, but their tagging continued for visitors who had GPC enabled. The CPPA fined and the California AG agreed.

To handle GPC correctly, your CMP needs to:

  1. Read navigator.globalPrivacyControl on every page load.
  2. If it's true, set the visitor's consent state to opted-out before firing any tracking scripts.
  3. Suppress the opt-out banner, or show a confirmation that they're already opted out.

ConsentTrustee does this automatically. If you're implementing manually, check navigator.globalPrivacyControl === true at the top of your consent-init code and short-circuit the rest.

Sensitive Personal Information

CPRA added a new category: Sensitive Personal Information (SPI). This includes precise geolocation, race, religion, sexual orientation, health data, financial account login data, biometric data, and a few others. For SPI, visitors have a separate “right to limit use” alongside the regular opt-out, and you need a separate disclosure link.

For most cookie banners, the SPI dimension is small. It mostly comes up if you're targeting ads based on health interests or precise location. But if you are, your banner needs a “Limit the Use of My Sensitive Personal Information” link alongside the “Do Not Sell or Share” one.

What a CCPA-compliant banner looks like

Minimum requirements:

  • A “Do Not Sell or Share My Personal Information” link, visible from every page. Footer is the most common location.
  • A notice at collection. Either inline (a banner that mentions what's being collected) or linked from your privacy policy in a visible spot.
  • Automatic GPC handling for visitors signaling GPC, before any tracking fires.
  • A way to opt out without a login or contact form. Most lawsuits stem from sites that made opt-out harder than it needed to be.
  • A “Limit Use of SPI” link if you collect any sensitive personal information.

You do not need:

  • A banner that blocks all tracking until consent. That's GDPR.
  • A granular preferences modal. CCPA doesn't have categories — it's binary opt-out.
  • An “Accept all” button. No opt-in is needed.

Combining GDPR and CCPA in one banner

If you serve both EU and California traffic, you have two reasonable options.

Option 1: geo-targeted banners. Detect the visitor's region (IP geolocation plus maybe browser locale) and show different banner UX based on where they're from. EU visitors get the opt-in flow with Accept/Reject/Customize. California visitors get a “Do Not Sell” link in the footer and nothing blocks tracking by default.

Option 2: GDPR-style banner everywhere. Show the opt-in banner to all visitors, including Americans. This is over-compliance for CCPA. You're treating CCPA visitors as though they were GDPR visitors, which is allowed but costs you a chunk of analytics signal you didn't legally need to lose.

Most larger sites use Option 1. ConsentTrustee's geotargeting feature handles the region detection and rule-switching automatically. For self-rolled banners, IP-based geolocation services like Cloudflare's or MaxMind's are the usual approach.

The fines and settlements

The CPPA started enforcement in mid-2023 and has been more aggressive than people expected. A non-exhaustive list:

  • Sephora — $1.2M settlement (August 2022) for not treating GPC as an opt-out and for not honouring opt-out requests within 15 days.
  • DoorDash — $375k civil penalty (February 2024) for sharing personal information without notice or opt-out.
  • Honda — $632k fine (March 2024) for several violations including making opt-out harder than opt-in.

The amounts look small compared to GDPR's headline fines (€150M against Google), but the per-violation math is harsher. CCPA allows $2,500 per unintentional violation and $7,500 per intentional violation, and “per violation” can mean per consumer affected. A class action with 100,000 California residents adds up quickly. There's also a private right of action for data breaches, which Sephora and others have faced separately from the AG settlements.

What I'd read next

If you also serve EU visitors, GDPR Cookie Consent is the companion guide. If you're trying to figure out which cookies on your site count as a “sale” under California law, First-Party vs Third-Party Cookies breaks down what California treats as a sale by cookie type. And the integration guide covers ConsentTrustee's geotargeting setup if you want one banner that handles both EU and US rules.