CookieRule

CCPA Cookies: Does California Require Consent or an Opt-Out?

CCPA cookies need notice and an opt-out, not consent. California does not make most sites ask before cookies run. A covered business has to tell visitors what it collects and let them stop the sale or sharing of their data. This guide covers who the law reaches, how it differs from the EU, when a banner makes sense and the one case where consent is required.

Matthias LöfflmannPublished · Updated · 8 min read
Laptop website sending cookies to ad trackers, with an opt-out switch tied to California, illustrating CCPA cookies
Key takeaways The short version, before the details.
  1. The CCPA uses an opt-out model. Cookies may run from the first page view, but visitors must be told about them and be able to say no to sale or sharing.
  2. It covers only for-profit businesses that pass one of three thresholds, so many small sites are outside it.
  3. Minors are the exception. Selling or sharing data from visitors under 16 needs opt-in consent first.

Opt-out. The California Consumer Privacy Act, as amended by the CPRA, does not ask a business to get permission before analytics or advertising cookies load. It asks for two things instead:

  • Notice. At or before the moment data is collected, tell visitors what you collect and why.
  • A way to object. If your cookies sell or share personal information, give visitors a clear way to stop it, and treat a browser privacy signal as that request.

Cookies can therefore run from the first page view, as long as the notice is there and the opt-out works. That is the opposite of the EU, where non-essential cookies must wait for a yes.

This article is general guidance, not legal advice. Check your own situation against the California Attorney General's CCPA page or ask a lawyer.

Who does CCPA apply to?

The CCPA applies to for-profit businesses that collect personal information from California residents and decide how it is used. Where the company is based does not matter. A shop in Ohio or Berlin with California customers can be covered. Nonprofits and government bodies generally are not.

CCPA thresholds a business must meet

A business is covered if it meets at least one of these:

ThresholdWhat it means
Annual gross revenueOver $25 million, adjusted for inflation. The adjusted figure has been $26,625,000 since January 2025.
Volume of dataBuys, sells or shares the personal information of 100,000 or more California consumers or households a year.
Share of revenueMakes 50% or more of annual revenue from selling or sharing personal information.

The second threshold is the one that catches mid-sized sites. If ad pixels on a popular blog pass data about 100,000 California visitors to ad networks each year, the blog can be covered even with modest revenue.

Are cookies personal information under California cookies law?

Often, yes. The CCPA's definition of personal information includes unique identifiers, online identifiers, IP addresses and browsing activity. A cookie ID that recognises the same browser across visits fits that definition.

What matters next is what the cookie does with that identifier:

  • Running your own site, such as login, cart or security cookies. This is collection, so it needs notice. It is not a sale.
  • Selling, meaning data passes to a third party for money or other valuable consideration. Some ad and data-broker tags fall here.
  • Sharing, meaning data passes to a third party for cross-context behavioural advertising, with or without payment. Most retargeting pixels fall here.

Selling and sharing trigger the opt-out. California's Attorney General settled with Sephora in 2022 over exactly this: third-party tracking on its site counted as a sale, and the company had not honoured opt-out signals.

CCPA notice at collection

The notice at collection lists the categories of personal information you collect, the purposes, whether each category is sold or shared, and how long you keep it. Online, the regulations let you give it through a conspicuous link on every page where data is collected. That is why many US sites put it in the footer.

Because cookies collect data as soon as the page loads, the notice has to be reachable from that first page, not hidden two clicks into a policy.

Do Not Sell or Share link and Global Privacy Control

A business that sells or shares personal information must offer a "Do Not Sell or Share My Personal Information" link, or the alternative "Your Privacy Choices" link the regulations allow. Choosing it must actually stop the selling or sharing, which for cookies means the ad tags stop loading.

The CCPA regulations also require businesses to treat an opt-out preference signal such as Global Privacy Control as a valid opt-out. No click is needed: if the browser sends the signal, the site has to act on it.

No dark patterns in the choice

The opt-out must be as easy to use as anything that encourages people to stay opted in. The CCPA states that agreement obtained through dark patterns does not count as consent.

CCPA vs GDPR on cookies

The EU's rules for cookies come from the ePrivacy Directive together with the GDPR. Its starting point is the opposite of California's.

QuestionCCPA (California)GDPR and ePrivacy (EU)
Default for non-essential cookiesMay run, with noticeBlocked until the visitor agrees
Visitor actionOpt out of sale or sharingOpt in per purpose
Exempt cookiesNo consent model to be exempt from. Notice still appliesStrictly necessary cookies need no consent
Who is coveredBusinesses over a thresholdAny site storing or reading cookies on EU visitors' devices
Browser signalGlobal Privacy Control must be honouredNo equivalent legal duty

A banner built for California is not enough for Europe. A banner built for Europe does give California visitors more than the law asks. For what counts as exempt in the EU, see strictly necessary cookies.

The CCPA never says "cookie banner". It requires a notice and, if you sell or share, an opt-out. A banner is one convenient way to deliver both.

  • You are not covered by the CCPA. No CCPA banner is needed, though other state laws or EU visitors may still require one.
  • You are covered but do not sell or share. A footer link to your notice at collection can be enough. A banner is optional.
  • You are covered and run ad or retargeting tags. You need the opt-out link and GPC handling. A banner is the easiest place to show the link on the first visit and to switch the tags off when someone uses it.

Several other states, including Colorado, Connecticut and Virginia, follow a similar opt-out approach for targeted advertising, each with its own thresholds. Colorado also requires sites to honour universal opt-out signals like GPC.

Minors are the one place where California switches to opt-in. A business may not sell or share the personal information of a consumer it knows is under 16, or wilfully ignores is under 16, unless:

  • the consumer, aged 13 to 15, has opted in, or
  • a parent or guardian has opted in for a child under 13.

For a site aimed at teenagers, a game for children or a school product, letting ad cookies run until someone objects is not an option. Those cookies have to wait for consent, exactly as in the EU.

How to set up CCPA cookies for US visitors

In CookieRule you choose a rule per region on the Banner page, under Privacy. A new configuration starts the United States on Allow, let them object, the opt-out model described above:

  • Every category runs from the first page view, and the banner is shown.
  • The banner text ends with a Do Not Sell or Share My Personal Information link. After the banner is closed, the link floats in the bottom-left corner for as long as Marketing is allowed.
  • One click on the link turns Marketing off and records the choice in your consent log.
  • If the browser sends Global Privacy Control, Marketing is off from the first page view, before any click.

To put the link in your own footer instead, add the attribute to any element. The floating link then disappears on that page:

<a href="#" data-cookierule-optout>Do Not Sell or Share My Personal Information</a>

When to choose Ask first for US visitors

CookieRule treats the United States as one region and does not look up the visitor's state. A visitor from California and one from Texas get the same rule. Switch the United States to Ask first, where nothing except Necessary runs until the visitor allows it, when:

  • your audience includes visitors under 16, so ad cookies need opt-in;
  • your tags process sensitive data, which several state laws only allow with consent;
  • you would rather run one strict rule everywhere than keep track of state-by-state differences.

Visitors whose country cannot be determined always get Ask first. The regions guide lists every region and rule.

An opt-out for California, opt-in for Europe, one banner

CookieRule applies the right rule for each region, honours Global Privacy Control and logs every choice.

See how CookieRule works
Cookie banner with a regional switch between opt-out for the United States and opt-in for Europe

Frequently asked questions

No, not by name. The CCPA requires a notice at collection and, when cookies sell or share personal information, an opt-out link that honours Global Privacy Control. A banner is a practical way to show both on the first visit, but a covered business that does not sell or share can meet the notice duty with a conspicuous footer link.

Generally no. Cookies may run before the visitor acts, provided they get notice and can opt out of sale or sharing. The exception is minors: selling or sharing data from a consumer known to be under 16 needs opt-in consent, given by a parent or guardian when the child is under 13.

For-profit businesses handling California residents' personal information that meet one threshold: over $25 million in annual revenue (inflation adjusted), buying, selling or sharing data on 100,000 or more California consumers or households a year, or earning half their revenue from selling or sharing it. Location of the business does not matter.

Usually. The CCPA counts unique and online identifiers, IP addresses and browsing activity as personal information, so a cookie that recognises a browser across visits qualifies. Collecting it needs notice. Passing it to third parties for payment, or for cross-context behavioural advertising, counts as selling or sharing and triggers the opt-out.

The EU rules are opt-in: non-essential cookies wait until the visitor agrees, and only strictly necessary cookies are exempt. The CCPA is opt-out: cookies can run with notice, and visitors can stop sale or sharing. The CCPA also covers only businesses above a threshold and requires honouring Global Privacy Control.