WEBSITE FUNDAMENTALS
What cookies are, what they're for and what your business website has to do
Almost every website shows a cookie notice, and many get it wrong without the owner knowing: analytics switches on before anyone accepts, the reject button is hidden or the notice does nothing at all. Here's what cookies are, which ones need permission and what your business website needs to do to comply without fuss.
IN SHORT
Cookies are small files a website stores in the visitor's browser. Those needed for the website to work don't require consent; analytics, advertising and many embedded videos or maps do. In Spain, your website must ask for that consent before activating them, with a reject button as visible as the accept one, and a cookie policy explaining which ones it uses.
What cookies are and what they're for
A cookie is a small text file a website stores in the browser of whoever visits it. It lets the website "remember" things between one page and the next, or between one visit and another:
- that you're logged in, or what's in your basket;
- the language you chose;
- that you already accepted or rejected cookies;
- how many people visit the website and which pages they view (analytics);
- what you're interested in, to show you related ads on other websites (advertising).
Cookies themselves aren't dangerous. What the law regulates is using them to observe visitors without their knowledge or agreement.
Which cookies need consent and which don't
- No consent needed for technical or strictly necessary cookies: session cookies, the basket, security, remembering the chosen language or the answer to the cookie notice itself.
- Consent needed for analytics such as Google Analytics, except in very specific set-ups; advertising and tracking cookies (Meta or Google Ads pixels); and those set by embedded third-party services, such as YouTube videos or Google Maps, if they load straight away.
The rule is in article 22.2 of Spain's LSSI and is interpreted by the Spanish Data Protection Agency's (AEPD) guide on the use of cookies, updated in 2023.
How to check whether your website complies
- Open your website in a private window. Does the notice appear? Is there a visible reject button on the first screen?
- Click "reject" and browse a little. The notice shouldn't reappear on every page.
- Look at which cookies exist before accepting. In Chrome: right-click › Inspect › Application tab › Cookies. If Google Analytics cookies (starting with _ga) or Facebook's (_fbp) are already there before accepting, the notice isn't blocking anything.
- Look for the link to change settings in the footer.
- Read your cookie policy. Does it match the tools you actually use?
If the third step loses you, ask whoever looks after your website to check it. It's a ten-minute review.
Tools that set cookies without you realising
- Google Analytics and other statistics tools.
- Advertising pixels: Meta, Google Ads, LinkedIn.
- Embedded YouTube or Vimeo videos. YouTube has a privacy-enhanced mode that reduces cookies.
- Embedded Google Maps. An alternative is an image of the map linking to Google Maps.
- Chats, heatmaps and review widgets.
Every tool you add to your website is one more cookie to declare and block until the visitor accepts. Before adding one, ask whether you'll really use it. On this website, analytics only loads if you accept.
Session-recording tools also need consent; I explain it in heatmap
What happens if you don't comply
Breaking the cookie rules is an infringement of Spain's LSSI; fines for minor infringements reach €30,000, and serious ones run from €30,001 to €150,000. The AEPD acts mainly on users' complaints. Beyond the fine, a misleading notice looks bad for exactly the businesses that need to inspire trust: a law firm, a clinic or an accountancy practice.
Common questions
Does my website need a cookie notice if I don't use Google Analytics?
If it only uses technical cookies, you don't need to ask for consent, though your cookie policy should explain which ones there are. But check carefully: embedded videos, maps and chats often set third-party cookies.
Can I use Google Analytics without a cookie notice?
In Spain, generally not: third-party analytics needs consent. Some statistics tools work without cookies, but each case needs checking.
Is the reject button compulsory?
Yes. Under the AEPD guide, if you offer accept in the first layer, you must offer reject just as visibly. It has been mandatory since January 2024.
How often do I need to ask for consent again?
The AEPD recommends renewing it at least every 24 months, and not asking again on every visit once the user has decided.
Is a free cookie plugin enough?
It can be, if it's configured properly: it must actually block cookies until acceptance and its list must match the tools you use. The problem is rarely the plugin, but how it's set up.
Want to know if your website complies?
In a website audit I review, among other things, the cookie notice, the legal pages and which tools load before the visitor accepts. It costs €295 + VAT.
See the website audit