# Third-party cookie

Also called: third-party cookies, 3PC, cross-site cookie

A third-party cookie is a cookie set by a domain other than the one in the browser's address bar, typically by an ad, social or embed script loaded on the page. Because the browser sends it back on every site that loads the same script, it lets that third party recognise one person across many sites.

## How it is calculated

Whether a cookie is first-party or third-party depends on the domain it belongs to, compared with the site the person is visiting. On `shop.example`, a cookie for `shop.example` is first-party. A cookie for `ads.example`, set by an image, iframe or script fetched from `ads.example`, is third-party. You can see which is which in your browser's developer tools under Application, Cookies, where each cookie lists its domain.

Browser support is split. WebKit's [tracking prevention documentation](https://webkit.org/tracking-prevention/) says Safari blocks all third-party cookies by default, with access only through the Storage Access API. Firefox's [Total Cookie Protection](https://blog.mozilla.org/en/products/firefox/firefox-rolls-out-total-cookie-protection-by-default-to-all-users-worldwide/) partitions them per site by default for desktop users, giving every site its own cookie jar. Chrome keeps them on unless the user turns them off: Google [confirmed in April 2025](https://privacysandbox.google.com/blog/privacy-sandbox-next-steps) it would not roll out a new standalone prompt.

## Example

An online store embeds a video player, a chat widget and an ad pixel. Opening the developer tools shows 14 cookies: 5 on the store's own domain and 9 on the three vendors' domains. Those 9 are third-party. In Safari the 9 are blocked, so the ad pixel's conversion count from Safari visitors falls, while the store's own 5 cookies keep working.

## Common mistakes

- Assuming every analytics cookie is third-party. Most analytics tools set a first-party cookie on your domain; it still needs consent in the EU when it is not strictly necessary.
- Expecting the same numbers from every browser. A report that relies on third-party cookies undercounts Safari and Firefox visitors.
- Treating the decline of third-party cookies as the end of tracking. Fingerprinting and server-side id sharing are used to replace them.

## How CrispStats shows it

CrispStats sets no cookies at all, first-party or third-party, and stores nothing on the visitor's device in its default setup. Because counting does not depend on cookies, Safari and Firefox visitors are counted the same way as Chrome visitors. The script is loaded from CrispStats's own domain, or from yours through a first-party proxy, and in neither case sets a cookie.

## Related terms

- [First-party cookie](/glossary/first-party-cookie)
- [Cross-site tracking](/glossary/cross-site-tracking)
- [Browser fingerprinting](/glossary/browser-fingerprinting)
- [Cookie consent](/glossary/cookie-consent)
- [Cookieless tracking](/glossary/cookieless-tracking)
- [ePrivacy Directive](/glossary/eprivacy-directive)
- [First-party data](/glossary/first-party-data)
- [Ad blocker](/glossary/ad-blocker)
