Third-Party Cookies
Third-party cookies are small browser files set by a domain other than the site you are visiting, mostly used by ad tech to track people across websites for targeting and measurement.
Also called: third-party cookies, cookies, first-party cookies, tracking cookies, 3P cookies
Third-party cookies are small files a browser stores for a domain other than the site you're visiting. They usually come from ad tech or analytics code embedded on the page. Because the same vendor appears on many sites, its cookie can follow a person across the web. That powered retargeting, frequency capping and cross-site attribution for two decades.
How it works
A cookie is a small text file with an identifier, a domain and an expiry date. The domain decides who can read it.
- First-party cookie: set by the site in the address bar. It keeps you logged in, remembers your cart and powers that site's own analytics.
- Third-party cookie: set by a different domain whose code runs on the page, such as an ad network's pixel. When you visit another site with the same code, the vendor reads the same cookie and links the visits.
That cross-site link is what made third-party cookies valuable and controversial. Browsers have pushed back:
- Safari: blocks third-party cookies by default and caps some first-party cookies set by scripts, often to seven days.
- Firefox: isolates cookies per site by default, so third-party cookies can't follow you.
- Chrome: Google's plans changed several times. As of this writing, Chrome still allows them by default.
Privacy law adds another layer. In many regions, non-essential cookies need consent first, which is why Consent Mode and cookie banners exist. This is a plain-language summary, not legal advice.
Example
A DTC apparel brand compares what its ad platform reports with its own order data for one month (all numbers hypothetical).
| Browser share of buyers | Orders in store backend | Orders the ad platform matched via pixel |
|---|---|---|
| Chrome, 50% | 1,000 | 820 |
| Safari, 42% | 840 | 380 |
| Other, 8% | 160 | 90 |
| Total | 2,000 | 1,290 |
The pixel missed over a third of real orders, mostly from Safari. Bidding was learning from a skewed sample. The brand added a server-side conversion API that sends orders from its backend with hashed email. Matched orders rose to about 1,750. Reported return on ad spend went up, mainly because more real sales were finally visible. Nothing about the ads changed in that month. The measurement simply stopped losing Safari buyers, and bidding began optimizing toward the people who actually bought.
By company size
Small business: a local shop running Meta or Google ads mostly feels this as a gap: the ad platform shows fewer sales than the till or store backend. Turn on the platform's built-in server-side or enhanced conversion options. Many ecommerce and booking platforms offer them as simple toggles.
Mid-market: teams move measurement off browser cookies. They add server-side tracking, conversion APIs and first-party cookies set from their own domain. They build retargeting audiences from customer lists and site visitors with consent, rather than third-party segments.
Enterprise: large advertisers invest in clean rooms, customer data platforms and identity graphs. They also lean on marketing mix modeling and incrementality tests that don't need user-level tracking at all. Legal and privacy teams review every vendor that sets cookies.
Third-party cookies vs first-party data
Third-party cookies are borrowed tracking that someone else controls. First-party data is information you collect directly, such as emails, purchases and on-site behavior, with consent. Losing cookies hurts most for teams that never built the second.
Why it matters for GTM teams
Whatever Chrome does next, a large share of buyers already browse without third-party cookies. We'd assume they're gone. Send conversions server-side, build audiences from your own data and check platform numbers against backend revenue every month. Teams that do this see more of their real results and give bidding better signals.
Common mistakes
- Trusting pixel-reported conversions as complete when Safari users are invisible.
- Waiting on Chrome's next announcement before fixing measurement.
- Building retargeting entirely on third-party segments that keep shrinking.
- Setting cookies before consent where the law requires opt-in.
- Confusing first-party and third-party cookies and blocking the wrong ones.
- Adding a conversion API without deduplicating events, so sales count twice.
FAQ
What is the difference between first-party and third-party cookies?
A first-party cookie is set by the website you are on, for things like keeping you logged in or remembering your cart. A third-party cookie is set by another domain, usually an ad or analytics vendor whose code is embedded on the page, and it can follow you across many sites. Browsers treat the two very differently.
Are third-party cookies going away?
They are already blocked by default in Safari and Firefox, which covers a large share of mobile browsing. Google's plans for Chrome changed several times, and as of this writing Chrome still allows them by default. Either way, a measurement plan that depends on them is fragile.
What replaces third-party cookies for advertisers?
Mostly first-party data and server-to-server connections. That includes conversion APIs that send events from your server, customer list matching, consent-based first-party cookies and contextual targeting. Platforms also lean more on modeled conversions.