The owner of an estate agency in Valencia reads a document on a laptop in his office

What the law requires of a website in Spain: legal pages and cookies

If your business operates in Spain, your website has mandatory requirements. We explain in plain words which pages you need, what the cookie banner must contain and what is added for an online store.

Spain4 min readDastum Web

Websites in Spain are subject to the Spanish law on information society services and e-commerce (LSSI) and to European data protection rules (the GDPR) together with the Spanish data protection law (LOPDGDD). In practice that means several mandatory pages and a properly built cookie banner.

Legal notice (aviso legal)

The LSSI requires that a visitor can easily find out who is behind the site. This page usually states:

  • the name or company name and the tax number (NIF);
  • an address and an email for contact;
  • details of the company's registration in the commercial register, if it is registered there;
  • for professions with compulsory registration, such as lawyers or doctors, the details of the professional association.

Privacy policy

If your site has an enquiry form, you receive personal data. The policy explains who receives it, why, how long it's kept, who it may be passed to and how a person can view, correct or delete their data. Next to the form it's worth saying the same thing briefly and linking to the policy.

Cookies: the policy and the consent banner

  • Analytics, advertising pixels and other non-essential cookies can only be switched on after the visitor consents.
  • In the cookie banner the "Accept" and "Reject" buttons must be equally prominent. Hiding the refusal in settings isn't allowed.
  • A person can change their decision at any time.
  • The cookie policy lists which cookies the site sets, why and for how long.

What's added for an online store

  • Terms of sale: payment, delivery, returns and warranty.
  • The buyer's right to return goods within 14 days and a clear description of how to do it.
  • Final prices for buyers include taxes.
  • Accessibility requirements: since June 2025 they have applied in the EU to online stores. Micro-enterprises that provide services are exempt, but a site that's easy for everyone to use benefits in any case.

Common mistakes

  • Analytics and pixels load before the person has pressed "Accept".
  • The cookie banner has only an "Accept" button.
  • Legal text copied from someone else's site doesn't match what your site actually does.
  • The enquiry form has no link to the privacy policy.

How we do it

We work in Spain and build the cookie banner and legal pages under Spanish and EU rules. More on the page website design in Spain.

This article explains the general requirements in plain words and is not a substitute for legal advice. If your business has special conditions, for example healthcare or finance, check the details with a specialist.

Questions

Frequently asked questions on this topic

Yes. The LSSI requirement applies to any site through which economic activity is carried out, including an autónomo's site.

You can, if the site doesn't use non-essential cookies: analytics, advertising pixels and similar services. As soon as they appear, the visitor's consent is needed.

Yes. We build the cookie banner and legal pages under Spanish and EU rules for the sites we create.

Enquiry

Shall we talk about your project?

Describe the task and within one business day we'll send a solution, a timeline and a price. It's free and there's no obligation.

Step 1 of 2

What are you interested in? pick any
Approximate budget