Cookie Banners in Spain: What the LSSI and the GDPR Require
In Spain, a website may only store or read cookies and similar technologies on a visitor’s device after the visitor has consented, unless they are strictly necessary for a service the visitor asked for. The rule is Article 22.2 of the LSSI, and the consent must meet the GDPR standard. Since 11 January 2024, the Spanish data protection authority (the AEPD) expects a “Reject” button on the first layer of the banner, as visible as “Accept”. Breaches are fined up to €30,000, and up to €150,000 when repeated.
This article explains the rules in general terms. It is not legal advice: what your banner needs depends on the tools your store uses, so take legal advice for your own case.
What the LSSI is
The LSSI, sometimes written LSSI-CE or LSSICE, is Ley 34/2002, the Spanish law on information society services and electronic commerce. It covers online businesses in general: the information a website must publish about its owner, online contracts, commercial email (Article 21) and cookies (Article 22.2). The cookie rule implements the ePrivacy Directive and has required prior consent since 2012.
Article 22.2 and when consent is needed
Article 22.2 allows a website to store or read information on a visitor’s device only if the visitor has consented after receiving clear and complete information, in line with the GDPR. There are two exceptions:
- storage or access whose only purpose is to transmit a communication over an electronic communications network;
- storage or access that is strictly necessary to provide a service the visitor has expressly asked for.
In an online store, the second exception typically covers the shopping cart, the login session, security and remembering the visitor’s consent choice. Analytics, advertising, retargeting and social media pixels generally need consent. The rule covers more than cookies: local storage, pixels and device fingerprinting fall under it too.
The AEPD cookie guide
The AEPD sets out how it applies Article 22.2 in its cookie guide, the “Guía sobre el uso de las cookies”, last updated in July 2023 with a deadline of 11 January 2024 to adapt. Its main points for a banner:
- Reject on the first layer. If the first layer has an “Accept” button, it must also have a “Reject” button or an equivalent mechanism, easy to see.
- No nudging. Accept must not be highlighted over Reject through colour, size or position.
- No consent by browsing. Scrolling or continuing to browse is not consent, and neither are pre-ticked boxes, which the Court of Justice of the EU ruled out in Planet49 (C-673/17, 2019).
- Information in layers. The first layer says what the cookies are for and who sets them; a second layer or the cookie policy lists them in detail, with the third parties involved and how long the cookies last.
- Withdrawal at any time, as easily as consent was given, for example through a link or button that reopens the settings.
How long consent lasts
The LSSI sets no period after which consent expires. The AEPD recommends, as good practice, asking again at least every 24 months. Consent must also be asked for again when the cookies or their purposes change.
Enforcement and fines
The AEPD enforces Article 22.2, and has fined many websites for cookie breaches.
- Using cookies without the required information or consent is a minor offence under Article 38.4(g) of the LSSI, fined up to €30,000.
- Repeating the offence within three years makes it a serious offence, fined up to €150,000.
- Where personal data is processed without a valid legal basis, the GDPR applies on top, with fines up to €20 million or 4% of worldwide annual turnover, whichever is higher.
Cookie banners in a Shopify store
A Shopify store has a few specifics:
- Shopify’s own pixels and the checkout read the visitor’s choice through Shopify’s Customer Privacy API. A banner that does not pass the choice to Shopify leaves those running on Shopify’s default.
- Apps and theme scripts often load trackers on their own. A cookie scan shows what the store actually sets, so the banner’s categories match reality.
- Google tags need Google Consent Mode v2 to receive the choice when the store advertises with Google in the EEA.
- Stores outside Spain. The LSSI applies mainly to providers established in Spain. A store based elsewhere in the EU follows its own country’s cookie rule, which comes from the same ePrivacy Directive and also requires prior consent, and the GDPR applies to any store that offers goods to people in Spain. Geolocation shows each visitor the banner their region needs.
Checklist
- Every tool that sets or reads cookies is known and assigned to a category
- Nothing except strictly necessary cookies runs before consent
- “Accept” and “Reject” on the first layer, equally prominent
- Categories with plain descriptions, and the cookies, third parties and durations listed
- No pre-ticked boxes, and no consent by scrolling or browsing
- A link or button on every page to change or withdraw consent
- A log of every consent choice
- The banner asks again when the cookies change, and at least every 24 months
How Pandectes helps
Pandectes GDPR Compliance adds a cookie banner to a Shopify store with “Accept” and “Decline” side by side on the first layer, a preferences dialog by category, and a widget that lets visitors change their choice at any time. Auto-blocking holds trackers back until the visitor consents, consent tracking logs every choice, and the choice is passed to Shopify and to Google Consent Mode. You can set the banner to ask again after a number of days. Whether a store complies still depends on how the banner is configured and which tools the store uses.
Frequently asked questions
What is the LSSI? Ley 34/2002 on information society services and electronic commerce, the Spanish law for online businesses. Among other things, it sets the information a website must publish about its owner, the rules for commercial email and, in Article 22.2, the cookie consent rule.
Is a cookie banner mandatory in Spain? Only if the website uses cookies or similar technologies that are not strictly necessary, such as analytics or advertising. A site that sets only strictly necessary cookies needs no consent, though it should still explain them in its cookie policy.
Does the cookie banner need a reject button? Yes, under the AEPD guide: if the first layer has an “Accept” button, it must have a “Reject” option that is just as easy to see and use.
Who enforces the cookie rules in Spain? The Agencia Española de Protección de Datos (AEPD), which enforces both the cookie rule of the LSSI and the GDPR.