
This post talks about: Compliance updates, Getting started guides
In short
A cookie is first-party when it’s set by the domain of the website you’re visiting, third-party when it’s set by a different domain, usually an external provider such as a social network or an advertising platform. For third-party cookies as for first-party ones, the distinction tells you who sets the cookie and receives the data, not whether consent is required: for that, only the purpose matters. Technical: no consent. Everything else: consent before it starts.
Open your website’s home page. You see a logo, a menu, a presentation video and the WhatsApp button. At the same moment, the browser receives cookies from your domain and, depending on what you’ve installed, also from YouTube’s, Meta’s and Google’s domains.
The latter are third-party cookies: you brought them to your website, but they aren’t yours. In this guide we look at how they differ from first-party cookies, how to recognize them and what you need to do to manage them the right way.
What are third-party cookies?
A third-party cookie is a small text file saved in the visitor’s browser by a domain different from that of the website they’re visiting.
This happens because the pages of almost every website load external resources: an analytics script, a social network’s pixel, an embedded video, a map, a reviews widget. Every time the browser downloads one of these resources, the domain providing it can save its own cookie and read it again later.
The difference, in practice, is this:
- the website visited (the publisher, or “first party”) places cookies directly;
- different websites or servers (“third parties”) place them indirectly, that is, by going through the website visited.
The key point is precisely this: a third-party cookie reaches the visitor’s device through your website. That’s why, even if you don’t manage it, the issue concerns you.
Why they’re controversial
A third-party cookie is read by the provider on all the websites that use its service. If the same pixel is installed on a thousand websites, the provider can recognize the same browser as it moves from one to another, at least in browsers that don’t block these cookies. It’s the mechanism that allows advertising to “follow you” from one website to another, and the reason why third-party cookies have become the symbol of online tracking.
When the purpose is to build a profile of the visitor, we speak of profiling cookies: we explain them in the guide Profiling cookies: what they are, examples and when consent is required (coming soon).
What are first-party cookies?
A first-party cookie is set by the domain shown in the address bar. If the visitor is on www.yoursite.com, the cookies that belong to yoursite.com are first-party.
Many of them are used to make the website work:
- the cart of an e-commerce store;
- access to the members’ area;
- the language chosen;
- storing the choice made on the cookie banner.
But be careful not to confuse “first-party” with “harmless”. A cookie can be first-party, that is, belong to your domain, and still be created and read by a script from an external provider. This happens with Google Analytics 4, which according to Google’s documentation uses first-party cookies such as _ga, with a default duration of two years, to distinguish individual users. The cookie sits on your domain, but the information ends up with Google.
How can you tell whether a cookie is first-party or third-party?
Just look at the domain it belongs to and compare it with the website’s domain. In the browser’s developer tools, the list of cookies shows a column with the domain: if it’s yours, the cookie is first-party; if it’s another one (for example .facebook.com or .doubleclick.net), it’s third-party.
| First-party cookies | Third-party cookies | |
|---|---|---|
| Who sets it | The domain of the website visited | An external domain, through the website |
| Who can read it | Only the website that created it (and the scripts the website loads) | The provider, on all the websites that use its service |
| Examples | Cart, login, language, banner choice, Google Analytics _ga |
Social media pixels, remarketing tags, embedded videos and maps |
| Is consent required? | It depends on the purpose | It depends on the purpose |
As you can see, the last row is the same in both columns. For a complete check, there’s a dedicated guide further along the path: How to find out which cookies your website uses (coming soon).
First-party or third-party: what changes for consent?
For consent, nothing. It’s the answer that surprises people most, but it’s the answer given by European rules.
European authorities recognize that cookies can be classified in many ways: by duration (session or persistent) or by who installs them (first or third party). Opinion 04/2012 on cookie consent exemption makes clear, however, that what matters in deciding whether consent is required is the purpose of the cookie, not its technical characteristics. Hence two macro categories:
- technical cookies, which are strictly necessary to make the website or a service requested by the visitor work. They don’t require consent, but they must be disclosed in the privacy notice;
- profiling cookies and, in general, all tools with purposes other than technical ones. They can be used only after consent.
The rule comes from Article 5(3) of the ePrivacy Directive (2002/58/EC), transposed into the law of each Member State: in Italy by Article 122 of the Italian Privacy Code, in France by Article 82 of the loi Informatique et Libertés. Therefore:
- a first-party cookie used for the cart is technical: no consent;
- a first-party cookie used to profile the visitor requires consent, even if it sits on your domain;
- a third-party cookie used for advertising requires consent, like almost all third-party cookies.
In practice, almost all third-party cookies have non-technical purposes and must be blocked until the visitor accepts. But the reason is the purpose, not the domain.
Analytics tools are a separate case: as a rule they require consent, but some national authorities allow them without consent under specific conditions. We look at them in the next guide, Analytics cookies: what they are and when you need consent.
So what does change between first-party and third-party?
Three very concrete things change: who processes the data, what you write in the cookie policy and how much control you have.
1. Who processes the data. With a third-party cookie, the data go to another company. If it also uses them for its own purposes, as advertising platforms do, it’s an independent controller or a joint controller together with you: in the cookie policy you must say who it is and link to its privacy notice. If it processes them only on your behalf, it’s a data processor and you need a contract with it (Article 28 of the GDPR).
2. What you write in the privacy notice. For consent to be informed, the visitor must know who will receive the data: the EDPB Guidelines 05/2020 on consent include the identity of the controllers among the minimum information, and the EU Court of Justice, in the Planet49 judgment, made clear that you must also say whether third parties can access the cookies. The list of third parties must therefore be kept up to date: if you add a new tool to the website, the cookie policy must be updated.
3. How much control you have. Over a third-party cookie you have no technical control: you don’t decide what it collects or where the data end up. You can, however, decide whether and when that tool loads, and that choice is yours. The most effective way to exercise it is preventive blocking: the external script starts only after consent. Responsibility, after all, is yours too: in the Fashion ID judgment the EU Court of Justice ruled that the operator of a website that embeds Facebook’s “Like” button is a joint controller, together with Facebook, of the collection and transmission of visitors’ data.
Where do the third-party cookies on your website come from?
You rarely install them by hand. They usually come with:
- advertising pixels and tags: Meta Pixel, TikTok Pixel, LinkedIn Insight Tag, Google Ads tags;
- embedded content: YouTube and Vimeo videos, Google Maps maps, social media posts;
- external widgets and services: chats, reviews, share buttons, some accessibility tools;
- plugins and themes that load external resources without saying so clearly.
For many of these, there are instructions for installing them so that they stay blocked until consent. You’ll find them in the third-party software installation guide, with in-depth guides such as How to insert YouTube videos in compliance with GDPR and How to install Google Maps in compliance with GDPR.
Are browsers phasing out third-party cookies?
Partly, and differently from browser to browser. Safari has blocked them by default since 2020. Chrome, on the other hand, after years of announcements, confirmed in October 2025 that it will leave the choice to users, without phasing them out.
For website owners, however, this doesn’t change their obligations: blocking by the browser is a choice made by the people browsing, not a compliance step taken by the publisher. And tracking doesn’t disappear: it moves to first-party cookies, to the server side or to techniques such as fingerprinting. Article 5(3) of the ePrivacy Directive applies to all tools that store or read information on the user’s device, not just cookies, as EDPB Guidelines 2/2023 clarify. We cover this in The false myth of cookieless.
What your website needs to do, in 4 steps
- List the external services. Every script, pixel, video, map or widget the website loads from another domain. Don’t forget the ones added by plugins.
- Classify them by purpose, not by domain. For each one, ask yourself whether it’s only used to make the website work or whether it’s also used to measure, profile or advertise.
- Block everything that isn’t technical until the visitor accepts, with a banner that lets them accept, refuse or choose by purpose (and, if you like, also by service).
- List the third parties in the cookie policy, with links to their privacy notices, and update it when you change tools.
What My Agile Privacy® does
My Agile Privacy® is the WordPress consent management plugin designed to carry out these steps for real, not just on the surface.
- Cookie Shield detects third-party services on the website and, in Live mode, blocks them automatically until the visitor gives consent, as European law requires.
- Granular consent: the visitor chooses service by service what to enable, without having to decide between “all” and “nothing”.
- Cookie policy and privacy policy included, prepared with the Policy Assistant and updated when the law changes.
- Support for Google Consent Mode v2, Microsoft UET Consent Mode and Clarity Consent Mode, each of which can be enabled with a checkbox.
- Support from human experts: real people, not bots.
FAQ - Frequently Asked Questions
Back to Getting started guides

