What cookies are, why websites ask about them, and what "Necessary", "Analytics" and "Marketing" mean
A plain explanation of cookies: how they work, what they're used for, why EU law requires a banner, and where the categories in every cookie banner come from.
Almost every website in Europe greets you with the same box: “We use cookies”. Most people click something just to make it go away. Website owners don’t love it either: the banner covers the page and makes a first impression nobody asked for.
So why is it there? This article explains, without jargon, what cookies are, what they do, why the law requires the banner, and why banners split cookies into categories.
This is general information, not legal advice.
What a cookie is
A cookie is a small piece of text that a website asks your browser to keep. Each time you come back, the browser sends it back to the same website. [1]
It works like this:
- You open a shop’s website. The server’s answer includes a line like
Set-Cookie: cart=a3fWa. - Your browser stores that line.
- On every next page of the same site, the browser automatically sends
Cookie: cart=a3fWaback.
That’s all. The web’s basic protocol (HTTP) doesn’t remember anything between two page loads; cookies are what lets a website recognise “this is the same visitor as a second ago”. [1]
A few useful terms:
- Session cookie: deleted when you close the browser. Persistent cookie: kept until a set date or for a set time. [2]
- First-party cookie: set by the website you’re visiting. Third-party cookie: set by another company whose content is embedded in the page (an ad, a video, a social button) and sent along when your browser talks to that company. Third-party cookies are what makes it possible to follow a person across many different websites. [2]
- A cookie is limited to about 4 KB, so it usually holds an identifier rather than real data. [2]
Cookies aren’t the only way to store things in a browser: websites can also use local storage and similar technologies. [2] The law treats them the same way (see below). [5]
What cookies are used for
Developers group cookie uses into three main purposes [2]:
| Purpose | Examples |
|---|---|
| Session management | Staying logged in, keeping items in the cart |
| Personalisation | Remembering your language or theme |
| Tracking | Recording and analysing what visitors do, including across sites |
The first two are mostly for you. The third is mostly for the website owner and its partners. That difference is exactly what the law cares about.
Why the banner is there
EU law requires consent before a website stores or reads non-essential information on your device. That’s Article 5(3) of the ePrivacy Directive, in force in this form since the 2009 amendment. [3] In Lithuania the same rule is Article 73(4) of the Law on Electronic Communications. [4]
The rule covers any information stored on your device, not just cookies, and the European Data Protection Board has explained that it also covers tracking pixels, tracking links and similar techniques. [5]
There’s an exception for what is strictly necessary: information needed to transmit the communication itself, or strictly necessary to provide a service you explicitly asked for, such as a shopping cart or a login. [3][6] Those don’t need consent.
Consent has to be a real choice. It must be given by a clear action, and pre-ticked boxes don’t count; the EU Court of Justice confirmed this for cookies in the Planet49 case. [7][8] Refusing must also be as easy as accepting (see our article “‘Reject all’ as easy as ‘Accept all’”).
So the banner exists because the law requires the website to ask first, before analytics and advertising tools start working.
“Couldn’t the browser just ask once?”
The idea is as old as the rule itself: a recital of the 2009 directive mentions that consent may be expressed through browser settings where that is technically possible and effective. [9] In practice, the EU’s data protection authorities found that ordinary browser settings didn’t meet the conditions for valid consent, which is why every site asks separately. [6]
The EU is now negotiating the “Digital Omnibus” proposal, which would move the cookie rules into the GDPR and address “consent fatigue”. It’s still a proposal, not law. [10]
The banner isn’t always needed
If your website uses only strictly necessary cookies, there’s nothing to consent to, and you don’t need a consent banner (you still need to explain your cookies in your privacy or cookie policy). The banner appears when a site adds analytics, advertising pixels, embedded videos, chat widgets and similar tools.
Why banners have categories
The law itself only draws one line: strictly necessary (no consent needed) versus everything else (consent needed). [3] So where do “Preferences”, “Analytics” and “Marketing” come from?
Consent must be specific. Under the GDPR, consent must be “specific”, given for a particular purpose. [7] One “yes” for everything mixes very different uses: remembering your language is not the same as building an advertising profile. Grouping cookies by purpose lets the visitor agree to some purposes and refuse others.
The labels are an industry convention. One of the first widely used schemes came from the International Chamber of Commerce UK in 2012, which grouped cookies into four categories: strictly necessary, performance, functionality, and targeting or advertising. [11] Most banners today use similar groups under slightly different names.
Here’s what the usual categories mean, using ZiiZ Consent’s names:
| Category | What it’s for | Consent needed? |
|---|---|---|
| Necessary | Things the site can’t work without: login session, cart, security, remembering your cookie choice | No [6] |
| Preferences | Remembering choices that aren’t strictly necessary, such as a preferred layout or region | Yes, unless it’s strictly necessary for something you asked for [6] |
| Analytics | Counting visits and understanding how the site is used (for example Google Analytics) | Yes in most EU countries; some authorities allow narrow exceptions for privacy-friendly audience measurement [6][12] |
| Marketing | Advertising, remarketing, conversion tracking, social media pixels, often by third parties | Yes [6] |
A cookie belongs in “Necessary” only if it truly is necessary. EU authorities have warned that cookies are sometimes labelled “essential” when they aren’t, and site owners must be able to show why each one is needed. [13]
Third-party cookies are already in decline
Browsers have been limiting third-party cookies on their own:
- Safari became, in 2020, the first mainstream browser to block third-party cookies fully by default. [14]
- Firefox made “Total Cookie Protection” the default for all desktop users in June 2022, giving every website its own separate “cookie jar”. [15]
- Chrome decided in April 2025 to keep its current approach: third-party cookies stay, and users can block them in settings. [16]
Fewer working third-party cookies don’t remove the need for consent: the law covers all non-essential storage and tracking techniques, not just one technology. [5]
In short
- A cookie is a small text the website stores in your browser so it can recognise you on the next page.
- Some are needed for the site to work; others are for analytics and advertising.
- EU law requires asking before the second kind. That’s the banner.
- Categories exist so visitors can agree to some purposes and not others.
- A site with only necessary cookies doesn’t need a consent banner at all.
How ZiiZ Consent fits: the scanner finds the cookies and services on your site and suggests a category for each; anything that isn’t “Necessary” waits until the visitor agrees. The banner comes in three designs you can adapt to your site, with “Reject all” as easy as “Accept all”. Free during the beta until 1 February 2027.
Sources
- IETF, RFC 6265 “HTTP State Management Mechanism” (April 2011): https://datatracker.ietf.org/doc/html/rfc6265
- MDN Web Docs, “Using HTTP cookies”: https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies
- Directive 2002/58/EC (ePrivacy Directive), Article 5(3), as amended by Directive 2009/136/EC. EUR-Lex: https://eur-lex.europa.eu/eli/dir/2002/58/oj
- Law of the Republic of Lithuania on Electronic Communications No IX-2135, Article 73(4) (consolidated version from 2 November 2025): https://e-seimas.lrs.lt/rs/actualedition/TAIS.232036/CDCbVvSHKe/format/ISO_PDF/
- European Data Protection Board, Guidelines 2/2023 on Technical Scope of Art. 5(3) of ePrivacy Directive, version 2.0 (7 October 2024): https://www.edpb.europa.eu/system/files/2024-10/edpb_guidelines_202302_technical_scope_art_53_eprivacydirective_v2_en_0.pdf
- Article 29 Data Protection Working Party, Opinion 04/2012 on Cookie Consent Exemption (WP194), adopted 7 June 2012: https://datenschutz.hessen.de/sites/datenschutz.hessen.de/files/2022-11/wp_194.pdf
- Regulation (EU) 2016/679 (GDPR), Article 4(11) and recital 32. EUR-Lex: https://eur-lex.europa.eu/eli/reg/2016/679/oj
- Court of Justice of the EU, Case C‑673/17 Planet49, judgment of 1 October 2019, press release No 125/19: https://curia.europa.eu/jcms/upload/docs/application/pdf/2019-10/cp190125en.pdf
- Directive 2009/136/EC, recital 66, as quoted in the Advocate General’s Opinion in Case C‑673/17: https://mansfield.bailii.org/eu/cases/EUECJ/2019/C67317_O.html
- European Parliament Legislative Observatory, procedure 2025/0360(COD) “Digital Omnibus”: https://oeil.europarl.europa.eu/oeil/en/procedure-file?reference=2025/0360(COD)
- ICC UK, “ICC UK Cookie guide”, second edition (November 2012): https://www.barclayscorporate.com/content/dam/corppublic/corporate/Documents/Information/icc-uk-cookie-guide.pdf
- CNIL, “Mesurer la fréquentation de vos sites web et de vos applications”: https://www.cnil.fr/fr/mesurer-la-frequentation-de-vos-sites-web-et-de-vos-applications
- European Data Protection Board, Report of the work undertaken by the Cookie Banner Taskforce (17 January 2023): https://www.edpb.europa.eu/system/files/2023-01/edpb_20230118_report_cookie_banner_taskforce_en.pdf
- WebKit blog, J. Wilander, “Full Third-Party Cookie Blocking and More” (24 March 2020): https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/
- Mozilla blog, “Firefox rolls out Total Cookie Protection by default to all users worldwide” (14 June 2022): https://blog.mozilla.org/en/products/firefox/firefox-rolls-out-total-cookie-protection-by-default-to-all-users-worldwide/
- Google Privacy Sandbox blog, A. Chavez, “Next steps for Privacy Sandbox and tracking protections in Chrome” (22 April 2025): https://privacysandbox.google.com/blog/privacy-sandbox-next-steps