Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

Third-Party Cookies: What Changed, What Still Works and What to Do

Third-party cookies in 2026: what Chrome and Safari on Mac really do, what breaks in your tracking, and how to replace them with first-party data.

Published on
19/11/2026
Updated on
19/11/2026
Reading time
15 min
Third-Party Cookies: What Changed, What Still Works and What to Do

Tools

On this page

In short

A third-party cookie is set by a domain other than the site you are visiting, usually an ad network, an analytics tool or an embedded widget. Safari on Mac has blocked them by default since 2020. Google dropped its plan to phase them out of Chrome in 2025, so Chrome still accepts them unless the user turns them off. Build your tracking so it works with first-party data, and treat third-party cookies as a signal that varies by browser, not a fixed input.

Want to go further? Ask

Quick quiz

Which way of finding customers online fits you best?

Question 1 of 425%
How do your customers find businesses like yours?

A cookie is a small piece of text that a server asks the browser to store. The browser then sends it back with every later request to the domain that set it. A cookie is first-party when its domain matches the site in the address bar. It is third-party when another domain sets it, and that happens when the page you read loads code from someone else.

Take a blog at blog.example.com that embeds an ad served from ads.network.com. The ad server's response includes a header like this one:

Set-Cookie: uid=8f2c91; Domain=ads.network.com; Path=/; Max-Age=31536000; Secure; SameSite=None

Each attribute matters. Domain=ads.network.com means the cookie belongs to the ad network, not to the blog. Max-Age=31536000 keeps it for 365 days. Secure limits it to HTTPS. SameSite=None tells the browser to send it on cross-site requests. Without that last attribute, Chrome treats the cookie as SameSite=Lax, which blocks it in most embedded contexts. That default has applied since 2020. It is why ad cookies used to work across sites without any special setup.

The result is that the ad network can recognize the same uid on your blog, on a news site and on a shop, and link those visits into one profile. That is the whole mechanism behind cross-site retargeting, frequency caps and most cross-site attribution.

How a third-party cookie gets set and read

  1. You open site AThe page loads a script or an ad from ads.network.com.
  2. The ad server answersIts response carries Set-Cookie with Domain=ads.network.com.
  3. The browser stores the cookieIt belongs to ads.network.com, not to site A.
  4. You open site BSite B also loads code from ads.network.com.
  5. The ad server reads itIt recognizes the same ID and links both visits.

Where things stand in 2027

For years, the story was that Chrome would block third-party cookies and the rest of the web would follow. That is not what happened. Safari moved first, and Chrome moved in stages, then stopped.

In March 2020, WebKit engineer John Wilander announced that Safari would fully block third-party cookies by default. He called it the first mainstream browser to fully block third-party cookies by default and pointed sites that still needed cross-site cookie access to the Storage Access API. Safari 13.1 on macOS shipped that behavior, and it has stayed in place since.

Chrome took a longer path. Google first planned to phase out third-party cookies in 2022, then pushed the date back several times. On April 22, 2025, Anthony Chavez, VP of Privacy Sandbox, wrote that Google would maintain its current approach to offering users third-party cookie choice in Chrome and would not roll out a new standalone prompt for third-party cookies. In the same post, the page says that some Privacy Sandbox technologies are being phased out.

In practice, Chrome still accepts third-party cookies by default, and each user can block them in settings. Google says some Privacy Sandbox technologies are being phased out, so do not plan new work on them. Marketing and consent vendors go further and describe the APIs as retired, but Google's own page is the text to rely on.

Some articles still say that Chrome will remove third-party cookies in 2024 or that a phase-out date is coming. Those claims are out of date.

Google Privacy Sandbox blog post of April 22, 2025 on third-party cookie choice in Chrome
Google's April 2025 update on third-party cookies in Chrome

Key dates in the third-party cookie story

March 2020Safari blocks all third-party cookies by default, the first mainstream browser to do so.
April 22, 2025Google drops its planned standalone prompt for third-party cookies and keeps the choice in Chrome settings.
TodayChrome accepts third-party cookies unless the user blocks them, and Safari on Mac keeps blocking them.

Sources: WebKit blog, March 24, 2020; Google Privacy Sandbox blog, April 22, 2025

Blue isometric illustration of a browser window with a shield, and cookies passing between connected nodes
Third-party cookies move between sites only when the browser allows it.

Safari and Chrome on a Mac

If your visitors are on a Mac, the two browsers that matter most behave differently by default. Your analytics and your ad tags will show that difference as a gap between numbers from Safari and numbers from Chrome. Knowing the defaults helps you read that gap correctly.

Browser on MacThird-party cookies by defaultWhere the user changes itWhat it means for you
SafariBlocked for all cross-site contextsSafari, then Settings, then Privacy, then Manage Website DataCookie-based retargeting and cross-site attribution mostly fail. Embedded widgets need the Storage Access API.
ChromeAccepted, unless the user blocks themMore, then Settings, then Privacy and security, then Third-party cookiesCookie-based tracking still works for most visitors. Expect the share of visitors who block them to vary by audience.

The same visit, two browsers

Safari on Mac
  • Third-party cookies blocked by default since 2020
  • Cross-site ad IDs do not persist
  • Embedded content needs a storage access request
Chrome on Mac
  • Third-party cookies accepted by default
  • Each user can block them in Privacy and security
  • Cross-site ad IDs persist unless blocked

To check the Chrome setting, open More (the three-dot icon at the top right), then Settings, then Privacy and security, then Third-party cookies. The two options are Block third-party cookies and Allow third-party cookies, as Google's Chrome help page describes.

On Safari, go to Safari, then Settings, then Privacy. Apple's guide to managing cookies and website data on Mac covers the website data controls. Safari's full blocking is not a setting you turn on. It is the default, and it applies to cross-site cookies in every context.

Chrome help page on cookie settings, with the third-party cookies option
Where to change third-party cookie settings in Chrome

What breaks, and what keeps working

Losing third-party cookies does not kill your analytics. It removes specific capabilities, and they are the ones that depended on one ID following a person across domains. Start by listing what your stack actually does with those cookies. Unused tags are common, and removing them is the cheapest fix.

What usually breaks: cross-site retargeting, where an ad platform shows an ad on one site because you visited another. Frequency caps across sites, which stop working when the ad network cannot tell whether the same person already saw the ad. Attribution that depends on a third-party cookie to link an ad click to a later purchase on another domain. Login or account state shared between your site and a widget on another domain.

What keeps working: first-party analytics on your own domain, where the cookie belongs to your site and survives in every browser that allows first-party cookies. Conversions recorded on your server from your own form or checkout. Contextual ads that match the page content rather than the visitor's history. Modeled conversions from platforms that use consent signals.

A bigger risk than the cookie itself is the gap in your reports. If Safari traffic looks like it converts worse than Chrome traffic, the cause may be measurement, not behavior. Compare sessions with first-party data against the platform numbers before you change any budget. For the mechanics of setting up measurement, the conversion tracking guide covers GA4, Google Ads and Meta, and marketing attribution explains how each model credits a sale.

What still works without third-party cookies

  • Cross-site retargeting by cookie ID
  • Frequency caps across unrelated sites
  • Attribution that links an ad click to a purchase on another domain
  • First-party analytics on your own domain
  • Server-side events from your forms and checkout
  • Contextual targeting based on page content

How to replace third-party cookies, method by method

There is no single replacement for third-party cookies. Each method solves a different part of the problem, and most teams need two or three together. The methods below cover the whole range, from the simplest to the most technical. Each one has a principle, a good use case, advantages, limits and an example.

First-party data

Principle: collect what people tell you or do on your own site, and store it under your own domain, with consent. Email sign-ups, account creation, purchase history and on-site behavior all count.

When to use it: always. It is the base of every other method. If you have a list of customers who bought in the last 12 months, you do not need a third-party ID to reach them.

Advantages: the data is yours, it does not depend on a browser, and it is the most accurate signal you have about a customer.

Limits: it only covers people who already interacted with you. It does not find new audiences.

Example: a shop sends a post-purchase email with a link to a product guide. The click lands on a page where the visitor creates an account. From then on, the first-party ID links their browsing to the order without any third-party cookie.

Contextual targeting

Principle: match ads to the content of the page, not to the visitor. A page about running shoes gets a running shoe ad, whoever is reading it.

When to use it: for awareness campaigns, and when you want an ad that does not depend on past visits.

Advantages: no personal data is needed to decide the placement, and it works the same in every browser.

Limits: you cannot cap frequency per person, and you cannot follow a visitor back to a retargeting campaign.

Example: a software company places ads on articles about project management software, and it measures the result with a campaign-level UTM tag rather than a visitor-level cookie.

Server-side tagging

Principle: instead of the browser sending events straight to each vendor, your own server receives them and forwards the ones you choose. The cookie is set by your domain, which the browser trusts.

When to use it: when you run several platforms and want one place to control what each one receives. It also helps when ad blockers or browser limits drop client-side tags.

Advantages: more control over the data and fewer scripts on the page, since the browser talks to one domain you control.

Limits: you run and pay for the server, and you must keep the consent rules inside your own pipeline. The full setup is in the server-side tracking guide.

Example: a checkout page sends the purchase event to your server, which then forwards it to Google Ads and Meta with the same order ID and only the fields each platform needs.

Principle: the tag runs in a reduced mode when consent is refused, and the platform fills the gap with modeling. Enhanced conversions send hashed first-party data, such as an email address, so that the platform can match the conversion to a click without a third-party cookie.

When to use it: for paid search and paid social campaigns that need conversion data after cookie loss.

Advantages: you keep more of the conversion signal, with the platform's own privacy rules applied.

Limits: the modeled numbers are estimates, and the setup needs a correct consent banner. Read the enhanced conversions guide before you switch it on.

Example: a lead form sends a hashed email with the conversion. The ad platform matches it to a logged-in account, without relying on a third-party cookie.

Storage Access API for your embedded content

Principle: an embedded frame from a domain you own can ask the browser for access to its own third-party cookies. The browser shows the user a permission, and only then does the cookie come back.

When to use it: when your own widget, such as a support chat, a login frame or a booking tool, is embedded on other sites and needs state. It does not help with ad networks you do not control.

Advantages: it is a documented standard. Safari recommended it as the path for legitimate cross-site cookie needs in 2020.

Limits: the user must approve the request, and the request needs a user gesture such as a click. If your widget asks on page load, it will fail.

Example: a booking widget on a partner site asks for storage access when the visitor clicks Book. MDN describes the pattern: the frame checks with hasStorageAccess() first, then calls requestStorageAccess() only if needed.

MDN reference page for the Storage Access API
The Storage Access API, documented by MDN
// Inside the embedded iframe, run this from a click handler
const hasAccess = await document.hasStorageAccess();
if (!hasAccess) {
  await document.requestStorageAccess();
}

MDN's Storage Access API page explains the permission flow and the browsers that block third-party cookies by default.

Privacy Sandbox APIs

Principle: Google's set of browser APIs for interest-based ads and measurement, such as Topics and Attribution Reporting, meant to replace third-party cookies in Chrome.

When to use it: not for new work. Google's own page says that some of these technologies are being phased out.

Advantages: none you can count on today.

Limits: an uncertain roadmap, and code that may stop working when a browser removes an API.

Example: an ad team that wrote a Topics integration in 2024 should check whether the calls still return data, then remove the code rather than maintain it.

Measurement before and after the move to first-party data

Before
  • A pixel from a third-party domain fires on every page
  • The browser decides whether the cookie survives
  • Consent is checked after the tag has loaded
After
  • Events are sent from your own domain or server
  • Each platform gets only the fields it needs
  • Consent is recorded before any tag fires
MethodWorks in Safari on MacNeeds consentSetup effortBest for
First-party dataYesYes, for marketing useLow to mediumEvery team, as the base
Contextual targetingYesOften not for the placement itselfLowAwareness and new audiences
Server-side taggingYesYes, enforced in your pipelineHighSeveral platforms, one control point
Consent mode and enhanced conversionsYes, with modelingYesMediumPaid search and paid social conversions
Storage Access APIYes, after a user actionYesMediumYour own embedded widgets
Privacy Sandbox APIsNot applicableNot applicableNot recommendedNothing new

Step-by-step: audit your site this week

A tag audit answers one question: which domains set cookies on your visitors, and what do you use each one for? You can do it in an afternoon with Chrome DevTools on your Mac. The steps below assume you have access to the site's tag manager and a test browser profile.

Open the page in an incognito window, then press Command, Option, I to open DevTools. Use an incognito window so that old cookies do not add noise. Refuse the consent banner first, then run each step again after accepting, so you can see what the banner really controls.

A tag audit in five steps

  1. List the requestsIn the Network tab, tick Preserve log, reload, and sort by Domain. Note every domain that is not yours.
  2. Find the cookiesIn the Application tab, open Storage, then Cookies. The Domain column shows which cookies belong to other sites.
  3. Check the orderCompare the requests before and after you accept. Any vendor that fires before consent is a risk.
  4. Test the embedsLoad a page where your widget is embedded on a third-party site, and check whether it asks for storage access.
  5. Decide per domainMark each one as keep, replace with first-party, or remove. Remove what nobody uses.

You can also list the external hosts in the HTML of the page with a short script. It is not a full audit, because tags that load later will not appear, but it gives you a quick list to compare with the Network tab.

const hosts = new Set();
document.querySelectorAll("script[src], iframe[src], img[src]").forEach(function (el) {
  hosts.add(new URL(el.src).hostname);
});
console.log([...hosts].filter(function (h) { return h && h !== location.hostname; }));

Run it in the console on the page you want to check. The result is an array of domains. Any domain on that list should have an owner, a purpose and a consent rule in your tag plan. If one does not, that is your first candidate for removal.

Audit checklist

  • Export the list of tags from your tag manager
  • Record which domains set cookies, with the Application tab
  • Check that no vendor fires before consent
  • Confirm which embeds need storage access
  • Remove or replace every tag with no owner

Common mistakes and how to fix them

Most failures in cookie-related tracking come from a small number of errors. Each one below has a symptom you can see, and a fix you can apply without a rebuild.

Treating third-party cookies as dead

What it is: you remove every cross-site tag because a 2024 article said Chrome would block them. Chrome still accepts them unless a user blocks them, so you lose data in Chrome for no good reason.

How to spot it: a sudden fall in Chrome retargeting audiences, with no matching change in your site traffic.

How to fix it: check the browser default and the platform's own status page before you cut anything. Keep the tags that work, and replace the ones that depend on a cookie you have lost.

Setting SameSite=None without Secure

What it is: a cookie with SameSite=None but no Secure flag. Browsers reject it, so the cookie never appears.

How to spot it: the cookie is missing from the Application tab, and the Console shows a warning about the attribute.

How to fix it: add Secure and serve the page over HTTPS. Then reload and check the cookie again.

What it is: the banner appears, but the tag manager loads the vendors on page load anyway. The visitor's refusal is recorded, and the data is sent regardless.

How to spot it: in the Network tab, the vendor requests appear before you click Accept. This is the most common finding in an audit.

How to fix it: gate each tag behind its consent category, and test with refusal before you ship. The cookie consent software guide lists the features that make this easier to test.

What it is: your reports credit a sale to a source only when a third-party cookie survives from the click to the order. Sales from Safari visitors fall into direct or unassigned traffic.

How to spot it: direct traffic rises while campaigns look flat, mostly from Safari on Mac.

How to fix it: add UTM parameters on every campaign link, send the order ID from your server, and compare against your first-party data. The Google Analytics for SEO guide shows how to read these reports.

Expecting the storage access prompt to appear on its own

What it is: the embedded widget calls requestStorageAccess() on load. The browser rejects it because there was no user gesture.

How to spot it: the call throws an error in the console, and the widget loses its state after every reload.

How to fix it: move the call inside a click handler, with a button the visitor understands, such as Continue with my account.

Building new code on Privacy Sandbox APIs

What it is: a new integration with Topics, Attribution Reporting or a similar API, started after the phase-out was announced.

How to spot it: the calls return empty results, or the API is marked as deprecated in the browser console.

How to fix it: remove the code and use first-party data instead. Google's own page says that some of these technologies are being phased out, and no replacement timeline is set.

What to do next

Start with the audit, and keep the first changes small. Remove the tags nobody owns, move the important events to your own domain, and fix the consent order. Then decide which of the methods above your business needs, and measure the difference over four to six weeks before you change the budget.

Whether AI assistants name your brand is a different measurement problem. You answer it by checking AI answers, not visitor sessions. If that is what you need to track, see AI mention tracking in Sorank, which shows when ChatGPT cites you.

This week

  • Run the five-step audit on your three most visited pages
  • Check the consent order with refusal, then with acceptance
  • Remove or replace the tags that nobody owns
  • Add UTM parameters to every paid and email link
  • Set a review date in six weeks to compare the Safari and Chrome gaps

Third-party cookies still matter in Chrome, but they no longer decide the whole plan. Build your measurement on what you own, and treat the browser's default as one input among several.

Frequently asked questions

Do third-party cookies still work in Chrome in 2027?

Yes. Google dropped its plan to phase them out and kept the choice in Chrome settings, so Chrome still accepts third-party cookies unless the user blocks them. Some Privacy Sandbox technologies are being phased out, so do not build new work on them.

Does Safari block third-party cookies on Mac?

Yes. Safari has blocked all third-party cookies by default since 2020. A site that needs cross-site cookie access has to use the Storage Access API and ask the user for permission, usually after a click.

How do I replace third-party cookies for tracking?

Start with first-party data on your own domain, then add server-side tagging and consent mode for paid campaigns. Use contextual targeting for awareness, and check that no tag fires before the visitor makes a consent choice.

Get your content plan for 30 days for free

We analyse your competitors, your website and your AI visibility to create a tailored content plan for free.

Our free SEO tools

See all our free tools

Get your content plan for 30 days for free

We analyse your competitors, your website and your AI visibility to create a tailored content plan for free.

Man with dark hair and beard wearing a light brown shirt speaks in front of a microphone on a podcast or recording setup.Portrait of a man with short dark hair wearing a white shirt and dark jacket, looking directly at the camera with a neutral expression.Man with short dark hair, beard, and clear glasses wearing a black t-shirt with a white circular logo, standing in front of a stone wall.Celio fabianoSmiling young woman with long brown hair wearing a red top and necklace, outdoors in a tree-filled background.Profile photo of Xavier Breull, Sorank customer
Google
Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.
5/5
+5,000
users

Testimonials from ambitious founders

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.frGoogleE-commerce

0 to 5000 visits in 8 months

Thibault BMsorank.comGoogleSoftware

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.comGoogleLeisure and aviation

0 to 163 clicks in 6 months

Coworking Pariscoworking-paris.frGoogleOffice broker

x92 clicks in 7 months

Guide Zanzibarguidezanzibar.comGoogleTravel