First-Party- vs. Third-Party-Cookies: Worin liegt der Unterschied?
Leicht verständliche Erklärung der Cookie-Typen, welche eine Einwilligung erfordern und wie Browser-Änderungen (Safari ITP, Chrome-Auslaufen) das Tracking beeinflussen.
Veröffentlicht am
The difference between first-party and third-party cookies is technical, legal, and increasingly political. Browsers are restricting one of them. Regulators don't fully distinguish between the two. Marketers want to call analytics cookies “first-party” to dodge consent rules. None of this has clean answers, so let's take it from the top.
The technical definition
A cookie is first-party if its domain matches the domain in the browser's address bar. You're visiting example.com, and the cookie is set with Domain=example.com (or a subdomain like .example.com).
A cookie is third-party if its domain is different from the address bar. You're visiting example.com, but there's an embedded Facebook button on the page, and Facebook's script sets a cookie with Domain=facebook.com. That's third-party from your visit's perspective.
The browser enforces this distinction differently depending on which one we're talking about. First-party cookies have always been treated as the default and are sent on every request to their domain. Third-party cookies are increasingly blocked or restricted by default in modern browsers, which is most of the story this guide is about.
Why this distinction matters
Three reasons it matters in practice.
Tracking across sites needs third-party cookies (mostly). The reason Facebook and Google can build profiles of you across the entire web is that their cookies travel with you between sites. facebook.com's cookie set when you log in is the same one that comes along for the ride when you visit any site with a Like button. If browsers block third-party cookies, that whole tracking model breaks.
Browsers have been restricting them for years. Safari started in June 2017 with Intelligent Tracking Prevention (ITP) and has gotten progressively more aggressive: ITP 2.1 in 2019 capped most cookies at 7 days, ITP 2.3 in 2020 cut more loopholes. Firefox shipped Total Cookie Protection in June 2022 — third-party cookies are partitioned per-site, so even when set, they can't be used for cross-site tracking. Chrome has been the holdout but is also moving (more on that below).
Legal treatment differs slightly. Under GDPR and ePrivacy, both need consent — there's no exemption for first-party non-essential cookies. But in interpretation, some regulators (notably the ICO in the UK) have signalled that first-party analytics for the site owner's own purposes is lower-risk than full third-party ad tracking. The distinction matters for nuance, not for whether you need a banner.
The Chrome story, briefly
Chrome controls roughly 65% of the global browser market, so what Chrome does to third-party cookies effectively decides the future of cross-site tracking. The Chrome story has been a slow-motion meltdown.
Original plan, January 2020: Chrome would deprecate third-party cookies entirely by 2022, replacing them with the Privacy Sandbox APIs (Topics, Attribution Reporting, etc).
2022: deadline slipped to mid-2023.
2023: slipped to second half of 2024.
April 2024: slipped to 2025.
July 2024: Google effectively cancelled the full deprecation. Instead, they announced that Chrome would introduce a user-facing prompt letting visitors choose whether to allow third-party cookies, and the existing default would remain.
As of early 2026, that user-facing prompt still hasn't fully shipped. Third-party cookies in Chrome work today the same way they did in 2018. The competitive irony — that the browser made by an ad-tech company is the last one defending the cookies that power ad tech — is not lost on anyone.
For practical purposes: if your tracking depends on third-party cookies, your Safari and Firefox traffic is already losing signal. Your Chrome traffic still works for now. Plan for a future where it doesn't.
SameSite: the attribute everyone forgot to set
The SameSite cookie attribute (Lax, Strict, None) controls whether a cookie can be sent on cross-site requests. Since Chrome 80 in February 2020, cookies without an explicit SameSite attribute default to SameSite=Lax, which means they aren't sent on most cross-site requests.
This broke a lot of legitimate third-party use cases (SSO logins, for example) and is why you sometimes see SameSite=None; Secure in modern cookies — the explicit opt-in to third-party behaviour. The cookie also has to be marked Secure (HTTPS only) to use SameSite=None.
For your own first-party cookies, you usually want SameSite=Lax. For third-party cookies you control, you have to explicitly set SameSite=None; Secure if you need them to travel.
The grey area: looks first-party, acts third-party
Here's where it gets interesting. A cookie's first-party-ness is determined by the domain it's set on, not by who controls the data.
Google Analytics is the canonical example. The _ga cookie that GA sets has Domain=.yoursite.com. From the browser's perspective, it's first-party. The browser doesn't restrict it the way it would restrict a doubleclick.net cookie. But the data inside the cookie (a client ID identifying that visitor) is sent to Google Analytics servers on every pageview, and Google uses it to build their understanding of cross-site behaviour through their Aggregated Identifiers and Customer Match programs.
So is it first-party? Technically yes. In effect? Half. The cookie is on your domain but the data flows to a third party. This is why “first-party analytics” doesn't automatically dodge consent rules — the test under ePrivacy is whether storage is happening on the device, and the test under GDPR is whether personal data is being processed. Both happen, regardless of cookie domain.
CNAME cloaking and the regulatory response
Some vendors have tried to bypass browser third-party restrictions through a technique called CNAME cloaking. Roughly: you create a subdomain on your own site (e.g. analytics.yoursite.com) and point it via CNAME DNS record to the vendor's real domain (e.g. track.somevendor.com). To the browser, the cookies set look first-party. To the user, the data still flows to the vendor.
Browsers have been catching up — Safari ITP 2.3 specifically targets CNAME-cloaked cookies, capping them at 7 days. Firefox has its own protections. The CNIL ruled in 2021 that CNAME cloaking doesn't change the legal analysis under ePrivacy: if you're routing data to a third party through DNS tricks, the cookie still requires consent.
Practical advice: don't use CNAME cloaking to dodge compliance. It works for a while and then breaks, and the regulator who finds out treats it more harshly than a straightforward third-party cookie.
What this all means for your banner
For consent compliance, the first-party/third-party distinction is less important than people think. Both need consent under GDPR if they're not strictly necessary. The categorisation you should care about is purpose: is the cookie necessary, preferences, statistics, or marketing? See GDPR Cookie Consent for the four-category breakdown.
For technical implementation, the distinction matters more. First-party cookies you control directly. Third-party cookies load through other vendors' scripts, which means your script-blocking layer has to actually catch them at the network level before the vendor's code runs. Most modern CMPs do this via tag-level script blocking (set type="text/plain" on the script tag, swap to text/javascript on consent).
For SEO and analytics planning, the long arc points toward first-party data. Server-side tracking, first-party identification, and consent-aware analytics are the future-proof setup. Third-party cookies aren't dead in Chrome yet, but they're a depreciating asset everywhere else.
What I'd read next
For the foundational legal picture, GDPR Cookie Consent and the ePrivacy Directive. For the technical implementation of script blocking, How to Block Third-Party Scripts Until Consent. And if you're trying to figure out how all of this affects your Google Analytics setup, Google Consent Mode v2 is the practical guide.