Web Browsers

Third-Party Cookies and the Long Fight Over Their Future

Learn what third-party cookies do, why browsers diverged on blocking them, and what you can control today.

Key takeaways

  • Whether a cookie is third-party depends on the relationship between the cookie's owner and the site in the address bar.
  • Cross-site tracking is the main privacy concern, while sign-ins, embeds and fraud checks are the main legitimate uses.
  • Browsers differ, with some blocking or partitioning these cookies by default and others relying on user settings.
  • Blocking them reduces one tracking method but doesn't stop other techniques.

A third-party cookie is a small piece of data stored by a company other than the site whose address you're visiting, typically because the page loaded an ad, a video, a button or a script from that company. Because the same company appears on many sites, the cookie can help it recognize your browser across them.

Browsers have taken different positions on whether to allow this. Some block these cookies by default, while others leave more of the choice to you. This article explains how they work, why they're so contested and what you can do about them now.

First party, third party

A cookie is a named value a server asks your browser to save and send back on later requests. How cookies work in HTTP covers the mechanics and the attributes that control them.

Suppose you visit shop.example.com, and the page also loads an image from an advertising company's server. A cookie set by the shop is first-party. A cookie set or sent by the advertising server in that context is third-party, because it belongs to a different site from the one you chose to visit.

The same company can be first-party in one moment and third-party in another. A video service's cookie is first-party when you're on its own website and third-party when its player is embedded in a blog.

How cross-site tracking works

One ad server recognizing you on two sites
Your browser Sites A and B Ad server Visit site A 1 Page loads an ad from the ad server 2 Set cookie with an ID 3 the first time your browser is seen Later, visit site B 4 Send the same ID cookie 5 now both visits can be linked Your browser Sites A and B Ad server Visit site A 1 Page loads an ad from the ad server 2 Set cookie with an ID 3 the first time your browser is seen Later, visit site B 4 Send the same ID cookie 5 now both visits can be linked

With enough sites carrying the same company's code, it can assemble a picture of your interests from the pages you view. That picture can feed ad targeting, measure whether an ad led to a purchase and limit how often you see the same ad.

Cookies aren't the only tool. Pixels, redirects through tracking domains, login-based matching and fingerprinting can serve similar ends. Cookies, pixels and local storage compares them.

Same site is not always same company

Browsers decide what counts as "third party" from domain names, not from who owns what. Two addresses under the same registered domain, such as www.example.com and help.example.com, belong to the same site. Two different domains run by one company are different sites to the browser, even if you think of them as one brand.

That causes real friction. A business with separate domains for its store, its help desk and its sign-in page may find that blocking third-party cookies breaks the handoff between them. It also means a tracking company can't be identified by its logo alone. What matters is which domain receives the request.

What third-party cookies are used for

Not every use is advertising. Common ones include:

  • keeping you signed in to an embedded service, such as a comment system
  • single sign-on across related domains
  • embedded payment or chat widgets
  • fraud detection that recognizes a returning device
  • measuring ad effectiveness
  • remembering preferences inside an embedded player

When browsers block them, some of these break unless the site adopts another approach. That is why the transition has been slow and disputed.

A short history of the fight

Selected turning points for cookies
1994 Cookies appear in the Netscape browser. 2011 RFC 6265 documents how cookies behave. 2019 Firefox turns on default protection against many tracking cookies. 2020 Safari blocks third-party cookies by default; Google announces a plan to phase them out in Chrome. 2024 Google drops the full phase-out plan in favor of user choice. 2025 Google says it won't add a new standalone choice prompt and later winds down much of its replacement project. 1994 Cookies appear in the Netscape browser. 2011 RFC 6265 documents how cookies behave. 2019 Firefox turns on default protection against many tracking cookies. 2020 Safari blocks third-party cookies by default; Google announces a plan to phase them out in Chrome. 2024 Google drops the full phase-out plan in favor of user choice. 2025 Google says it won't add a new standalone choice prompt and later winds down much of its replacement project.

Google's proposed replacements, grouped under the name Privacy Sandbox, aimed to support advertising and measurement without cross-site identifiers. They drew scrutiny from competition regulators, who worried about Google's position, and from privacy advocates, who questioned how private the replacements were. The company's plans changed more than once, so check current browser documentation for where things stand.

The arguments on each side

People disagree about this for reasons worth taking seriously.

Those who favor blocking say that most people don't expect to be followed from site to site, that consent banners don't give meaningful control, and that data collected for ads can be sold, leaked or used to infer sensitive traits. Strong defaults protect people who never open settings.

Those who urge caution say that advertising funds much free content, that smaller publishers depend on measurable ads, and that removing cookies can push tracking into less visible methods. Some also argue that when a few large companies hold signed-in data of their own, blocking cross-site cookies strengthens their advantage over everyone else.

Both concerns can be true at once, which helps explain why standards bodies, regulators and companies keep negotiating.

How browsers differ

In broad terms:

  • Safari blocks third-party cookies by default as part of its tracking prevention.
  • Firefox isolates cookies by site by default in its standard protection, so a third party gets a separate jar for each site you visit.
  • Chrome has kept third-party cookies available in normal browsing, with settings to block them, and blocks them by default in private windows.
  • Other browsers, including several privacy-focused ones, often block them outright.

Details change, so verify in your browser's privacy settings. Comparing the major browsers and privacy-focused browsers give wider context.

Partitioning and other compromises

Instead of blocking outright, a browser can partition cookies: an embedded service gets storage, but a separate copy for each top-level site. A chat widget can remember your session on one shop without recognizing you on another. A cookie attribute called Partitioned lets developers opt into this behavior in supporting browsers.

For cases that need cross-site access, such as a shared sign-in, browsers offer the Storage Access API, which lets embedded content ask permission, sometimes with a prompt after you interact with it.

The SameSite cookie attribute also limits when cookies travel with cross-site requests. A cookie meant for third-party use generally needs SameSite=None together with Secure.

Tracking that moved into first-party territory

When browsers tightened rules for third-party cookies, some tracking shifted to first-party storage. A script from another company, running directly in a page, can write a cookie that belongs to the site you're visiting. The identifier is then first-party in the browser's eyes, although an outside service may read it.

Sites can also point a subdomain of their own at a tracking company through a DNS alias, so requests look first-party. Several browsers and content blockers have added defenses against these arrangements, such as shortening the life of certain script-set cookies or checking where an alias leads. CNAME records explains the underlying DNS feature.

Another route skips browser storage. A site you've signed in to can share a scrambled form of your email address with partners, who match it against their own records. Cookie settings have no effect on that exchange.

What you can do

  1. Open your browser's privacy settings and look at the cookie or tracking section.
  2. Block third-party cookies, or choose a stricter protection level.
  3. If a site breaks, add an exception for that site only.
  4. Clear existing cookies if you want a fresh start, remembering it signs you out.
  5. Review ad personalization settings in your large accounts.
  6. Consider a reputable content blocker, as how ad blockers work describes.

Signals such as Global Privacy Control tell sites you want to opt out of certain sharing. Some places give such signals legal weight and others don't, and rules have been changing, so check what applies where you live.

What website owners should do

If your site relies on embedded sign-in, payments or widgets, test it with third-party cookies blocked. Check login flows, embedded players and checkout frames. Move to first-party storage where possible, use partitioned cookies for embeds that only need per-site state, and request storage access when cross-site access is truly required.

The cookie attribute explainer helps you read the headers your server sends. Think also about measurement: if your reports depend on cross-site identifiers, they've probably been undercounting some browsers for a while.

Testing the effect on yourself

You can try a stricter setting for a week and see what breaks. Turn on third-party cookie blocking, then use your usual sites normally. Note any login that loops, video that won't load or comment box that stays empty.

For each, add an exception for that site only, and ask yourself whether the feature is worth it. Most people end up with a short list. If you open developer tools, some browsers will also report in the Console or an issues panel when a cookie was blocked, which helps you connect a broken widget with its cause.

What blocking won't solve

Without third-party cookies, trackers can still use first-party data shared between companies, identifiers based on your email address, redirect-based tracking or browser fingerprinting. Signing in with the same email across services links your activity regardless of cookies. Cross-device tracking goes further.

So blocking is worthwhile and incomplete. Combine it with careful sign-in habits, a browser with strong defaults and a skeptical eye on what you volunteer.

Common questions

Will blocking them break websites?

Occasionally, mostly embedded logins and widgets. Per-site exceptions solve most cases.

Does private browsing block them?

Many browsers apply stricter cookie rules in private windows, but private mode mainly avoids saving local history. It doesn't make you anonymous.

They're supposed to reflect your choice, depending on local law and how the site is built. Browser settings work regardless of what a banner does.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Web Browsers →

Latest news on this topic