Spain's regulator is one of Europe's busiest. It handles tens of thousands of complaints a year, publishes its decisions, and in 2023 rewrote its cookie guide around one demand: a reject button on the first screen. Here's what the AEPD expects of a Spanish website, and where GA4 stands.
The rules.
Spain's cookie rule is article 22.2 of its information society services law, which implements the EU's ePrivacy rules, read with the GDPR. The regulator is the Agencia Española de Protección de Datos, the AEPD.
Its cookie guide is the practical standard. The July 2023 version, in force since 11 January 2024, follows the European Data Protection Board's guidance on deceptive design, and the current edition, updated in May 2024, keeps the same rules:
- Reject on the first layer. A "Reject" or "Reject cookies" option must sit in the banner itself, as prominent as "Accept". A settings button alone, which used to pass, no longer does.
- No tricks of design. Colour and contrast must not steer the visitor towards accepting.
- No consent by browsing. Scrolling or carrying on isn't a yes.
- Cookie walls only with an alternative. A site may make access conditional on consent only if it offers another route to the same content, such as a paid one, and says so clearly.
- Information in plain language, with each purpose and each third party named
The AEPD publishes its resolutions, and cookie banners are a recurring subject of them, alongside the larger fines it levies on telecoms, transport and the big platforms.
Where GA4 stands.
Analytics needs consent in Spain unless it meets the narrow conditions for audience measurement that the European authorities share: the site's own measurement, aggregated, no cross-site tracking, nothing shared with a third party for its own use.
A standard GA4 setup, which sends data to Google and links to Google Ads, doesn't meet them. GA4 on a Spanish site waits for consent.
The AEPD's own decisions on Google Analytics show the line. Before the EU-US Data Privacy Framework it ordered a travel company to stop sending Analytics data to the US, while dismissing a complaint against another site because its Analytics setup sent only a random identifier and no IP addresses.
Transfers have been covered by the Framework since 2023, as GA4 and EU data transfers explains, but the first lesson stands: what the setup actually sends is what the regulator looks at.
- Consent Mode v2. Spain is in the EEA, so Google needs the signals for remarketing and audiences. Use basic: Advanced Consent Mode v2 isn't GDPR compliant. Basic or advanced explains why.
- Every other tag waits too. Meta, TikTok, session recording and chat widgets all need consent first.
Where Spanish sites usually go wrong.
- A banner from before 2024 with "Aceptar" and "Configurar" but no "Rechazar"
- Tags firing on page load before the banner is answered, because the consent manager and Tag Manager were never connected
- A cookie wall with no alternative route
- Consent Mode missing, or defaulting to granted
- A privacy policy that still describes Universal Analytics
What to check.
- Open the site in a private window and, before touching the banner, watch the network requests. Nothing but essential requests should go out.
- Click "Rechazar", reload and check again
- Accept analytics only, and check that advertising tags still wait
- Test Consent Mode with the Consent Mode v2 testing guide
The wider picture is in GA4 and EU consent rules, with France, Germany and the Netherlands covered separately. Marc Alexander sets up GA4, Tag Manager and Consent Mode for Spanish and other European businesses, with prices in euros. The free tracking checker shows what a page loads before anyone chooses.
Sources.
- BOE: Ley 34/2002 de servicios de la sociedad de la información (LSSI), article 22.2
- AEPD: Guía sobre el uso de las cookies (May 2024)
- AEPD: La AEPD actualiza su Guía sobre el uso de cookies (July 2023)
- EDPB: Guidelines 03/2022 on deceptive design patterns
Checked on 31 October 2026.