Cookie Consent and Ad Tracking Under GDPR
Do I need cookie consent to run tracked ads in the EU?
Article 5(3) of the ePrivacy Directive, as amended in 2009, allows storing or accessing information on a user's device only with the user's consent after clear information, with exceptions for strictly necessary uses. GDPR defines consent as freely given, specific, informed and unambiguous. Meta and Google both tell advertisers to respect consent choices in tags. Not legal advice.
This page explains what the primary sources say. It is not legal advice, so ask a lawyer about your own setup.
Two EU laws matter for ad tags. One covers touching a person’s device. The other covers using their personal data.
What does the ePrivacy Directive say about cookies?
Article 5(3), in the version amended by Directive 2009/136/EC, says Member States shall ensure that storing information, or gaining access to information already stored, in a user’s terminal equipment is only allowed on condition that the user has given consent, having been provided with clear and comprehensive information, inter alia about the purposes of the processing. It does not prevent technical storage or access for the sole purpose of carrying out the transmission of a communication, or as strictly necessary for the provider of an information society service explicitly requested by the user to provide that service. The original 2002 wording spoke of being offered the right to refuse; the 2009 amendment replaced it with the consent condition.
What does GDPR add about consent?
GDPR Article 4(11) defines consent as any freely given, specific, informed and unambiguous indication of the person’s wishes, by a statement or a clear affirmative action. Recital 32 says ticking a box when visiting a website can count, and that silence, pre-ticked boxes or inactivity should not constitute consent. Article 7(3) says people have the right to withdraw consent at any time and that it shall be as easy to withdraw as to give consent.
What do ad platforms tell advertisers to do?
Meta. Its business tools requirements say you are responsible for having a lawful basis and the necessary consents before sharing information with Meta. It notes that some jurisdictions, including the European Union, require informed consent for storing and accessing cookies or other device information. Where required, no data should be shared with Meta until the person has given consent. For the Conversions API, don’t share event data about people who haven’t given consent.
Google. Consent mode lets your tags adapt to a visitor’s choices. You set a default consent state before the visitor chooses, then update it when they interact with your banner. Google says no consent mode values are set by default, and it recommends scoping default settings to the regions where you show consent banners. It also says consent mode was updated in November 2023 with two additional parameters, and that you should persist the updated choices so later page loads start with the right state.
| Meta | ||
|---|---|---|
| Who is responsible for consent | The advertiser: “You’re responsible for ensuring proper consent and permissions before sharing data” | You: Google says you are responsible for making sure default consent mode is set to match your organisation’s policy |
| Tool for passing choices | Follow Meta’s developer documentation on consent | Consent mode, ideally via a consent management platform |
How do you set this up step by step?
- Decide what your banner must offer, with a lawyer.
- Where consent is required, make sure no data goes to Meta until the person has consented (Meta’s wording), and set Google’s default consent state before the visitor chooses.
- Send consent choices to each platform in the way its documentation describes.
- Make withdrawing as easy as accepting.
- Test with the banner declined, accepted and changed later.
FAQ
Does server-side tracking avoid consent?
No. Meta’s page says its requirements apply to server-side tools such as the Conversions API as well as the pixel, and that no event data should be shared about people who haven’t consented where consent is required.
Is consent mode a consent banner?
No. Google’s setup page is written for sites that maintain their own consent solution or use a consent management platform. Consent mode is how the visitor’s choices reach Google tags; it does not replace the banner.
Does the UK follow the same rules?
This page covers EU rules. For the UK, check the Information Commissioner’s Office guidance on cookies.
Sources
- Directive 2002/58/EC (ePrivacy), consolidated text including Article 5(3) as amended in 2009 (EUR-Lex) (Official source, checked 2 Nov 2026)
- Directive 2009/136/EC, amending Article 5(3) of Directive 2002/58/EC (EUR-Lex) (Official source, checked 2 Nov 2026)
- Regulation (EU) 2016/679 (GDPR) (EUR-Lex) (Official source, checked 2 Nov 2026)
- Privacy and data use requirements for Meta Business Tools (Meta Business Help Centre) (Meta, checked 2 Nov 2026)
- Set up consent mode on websites (Google Tag Platform) (Google, checked 2 Nov 2026)
Drafted with AI and checked claim by claim against the pages linked under Sources. Spotted a mistake? See the corrections policy.