Essential cookies, also called strictly necessary cookies, are the ones a website needs to deliver what the visitor asked for, such as a login or a basket, and they need no consent. Non-essential cookies, such as analytics and advertising cookies, need consent before they are set in the EU. The test is the cookie's purpose, and a cookie is exempt only if every purpose it serves is exempt.

Every website sets cookies, but not every cookie plays the same role. Some keep the site functioning. Others measure traffic, remember preferences, or follow visitors around the internet with targeted ads. Privacy laws draw a hard line between these two groups, and getting the classification wrong can cost real money.

What counts as an essential cookie

An essential cookie - also called a strictly necessary cookie - is one the site genuinely needs to deliver the service a visitor asked for. If you remove it, something breaks. The checkout stops working, the login form forgets who you are mid-session, or the load balancer sends every request to the wrong server.

Article 5(3) of the ePrivacy Directive carves out two narrow exemptions from the consent requirement. A cookie qualifies if it is strictly necessary for carrying out a communication over the network, or if it is strictly necessary to provide a service the user explicitly requested. Everything else needs consent.

Common examples include:

  • PHPSESSID or similar session identifiers that tie a visitor to their server-side state

  • Shopping-cart cookies that remember items between page loads

  • Authentication tokens that keep a user logged in during a single visit

  • CSRF tokens that protect forms against cross-site request forgery

  • Cookie-consent-preference cookies that record the visitor's own banner choice

The key test is purpose, not technology. A first-party session cookie used purely for authentication is essential. The same cookie repurposed to feed an analytics dashboard is not.

What counts as a non-essential cookie

Non-essential cookies are everything that falls outside those two exemptions. The site still works without them - visitors can browse, buy, and log in. These cookies exist to serve the site owner's goals rather than the visitor's immediate request.

Three sub-categories cover most cases:

CategoryPurposeCommon examples
AnalyticsMeasure traffic, page views, bounce rates_ga, _ga_<container-id> (Google Analytics), _hj* (Hotjar)
FunctionalRemember preferences like language, region, font sizepll_language, theme-selection cookies
Marketing or targetingProfile visitors, serve personalised ads, retarget across sites_fbp (Meta Pixel), IDE (Google DoubleClick)

Functional cookies sit in a grey zone, and a cookie that remembers a language the visitor chose is usually on the exempt side. The CNIL lists interface personalisation such as a language choice among the trackers that need no consent, when that personalisation is an expected part of the service. The Article 29 Working Party's Opinion 04/2012 treated a language cookie set when the visitor picks a language as exempt, at least for a session. Since 5 February 2026, UK law also exempts cookies that adapt a site's appearance to the visitor's preferences, if visitors are told and can object. The same cookie needs consent once it is reused for analytics or advertising.

The classification decides when a cookie may run

Under the ePrivacy Directive (implemented across EU member states) and the GDPR's consent rules, non-essential cookies must not fire until the visitor gives informed, freely given, specific, and unambiguous consent. Pre-ticked boxes do not count. Scrolling past a banner does not count. Clicking "X" to dismiss a pop-up does not count.

Essential cookies, by contrast, can be set the moment the page loads. No banner interaction required. You still need to disclose them in your cookie policy, but you do not need to ask permission.

Regulators enforce this distinction. In 2025, France's CNIL issued 83 sanctions totalling about €486.8 million, with cookies among the main subjects. Shein was fined €150 million for advertising cookies set before any choice, and Google €325 million over ads shown between Gmail emails and invalid consent to cookies at account creation. On 20 November 2025, the publisher of vanityfair.fr was fined €750,000: cookies fired before any choice, some were labelled "strictly necessary" without any information about their purpose, and new cookies were set after visitors clicked "Refuse all". A week later, American Express was fined €1.5 million for cookies placed before consent, after refusal and after withdrawal of consent.

Grey areas and common mistakes

Classification sounds straightforward in theory. Practice is messier. Here are the traps that catch site owners most often.

Multi-purpose cookies

A single cookie sometimes serves both an essential and a non-essential purpose. The Article 29 Working Party was explicit in Opinion 04/2012: a cookie used for several purposes is exempt only if every one of its purposes is exempt. You cannot split a cookie's purposes into "exempt" and "non-exempt" columns and run it without permission. Either separate the purposes into distinct cookies or treat the combined cookie as non-essential.

reCAPTCHA and similar services

Bot-detection tools like Google reCAPTCHA set cookies that look security-related. But reCAPTCHA sends data to Google, and whether its cookies count as strictly necessary is disputed, so many sites treat them as needing consent. If you rely on reCAPTCHA, either do the same - or switch to a privacy-focused alternative like hCaptcha.

Labelling cookies "strictly necessary" without justification

The vanityfair.fr decision highlighted another mistake: marking cookies as strictly necessary in your banner without giving any information about their actual purpose. Regulators check. If a cookie labelled "essential" turns out to serve advertising or analytics, the mislabelling is a finding in its own right.

Analytics as "essential"

Google Analytics cookies are never strictly necessary, however important traffic data feels to your business. The visitor did not request analytics, and the site works without it. That said, some countries allow narrow first-party measurement without consent: the CNIL exempts audience measurement under strict conditions, and since February 2026 the UK exempts analytics used only to improve your own site, if visitors are told and can object. GA4, Hotjar and Microsoft Clarity set-ups rarely meet those conditions.

How the rules differ outside the EU

The essential/non-essential distinction is not unique to Europe, though the consequences vary.

Under the CCPA and CPRA in California, the framework is opt-out rather than opt-in. Non-essential cookies can load by default, but visitors must be able to opt out of the sale or sharing of their personal information. The practical result is still a consent mechanism - just triggered differently.

Brazil's LGPD follows a consent-based model closer to GDPR, though it also permits legitimate interest as a legal basis in limited cases. Canada's PIPEDA requires meaningful consent for non-essential cookies, with implied consent acceptable only for low-risk, well-explained purposes. South Africa's POPIA and the UK GDPR paired with PECR both follow the same essential/non-essential logic as the EU.

The safest approach for a site with international visitors is to treat every non-essential cookie as requiring opt-in consent by default, then relax the rules only where a specific jurisdiction permits it. Geo-detection in your consent banner can show each region the model you choose for it.

How to classify cookies on your site

Run a cookie scan to get a full inventory of what your site sets. For each cookie, ask two questions:

1. Does the site break without this cookie? If login fails, the cart empties, or a security feature stops working, the cookie is probably essential. If the site still loads and visitors can still complete the core task, it is not.

2. Did the visitor ask for the service this cookie provides? A visitor who clicks "Add to basket" has explicitly requested a cart service - so the cart cookie qualifies. A visitor who only lands on a page has not requested analytics or ads. Those cookies need consent.

A third question catches multi-purpose cookies: is the cookie also used for analytics or advertising? If it is, it needs consent whatever else it does.

Three questions that decide whether a cookie needs consent

A decision chart with three questions. First: is the cookie used only to carry the communication, such as network load balancing? If yes, it is exempt. If no, ask the second question: is it needed for something the visitor asked for, such as a basket, a login or a chosen language? If no, it needs consent. If yes, ask the third question: is it also used for analytics or advertising? If yes, it needs consent. If no, it is exempt.Only to carry the communication?such as network load balancingYesExemptNoNeeded for what they asked for?a basket, a login, a chosen languageNoNeeds consentYesAlso used for analytics or ads?any extra purpose countsYesNeeds consentNoExempt
A cookie is exempt only if every purpose it serves is exempt. The test comes from Article 5(3) of the ePrivacy Directive and the Article 29 Working Party's Opinion 04/2012.

Document every cookie with its name, purpose, duration, and classification. This list feeds directly into your cookie categories within your consent banner and your written cookie policy.

Essential and non-essential cookies at a glance

FeatureEssential cookiesNon-essential cookies
Consent required (EU)NoYes, opt-in before the cookie fires
Consent required (US)NoOpt-out right under CCPA/CPRA
Must be disclosedYes, in cookie policyYes, in cookie policy and banner
Can load before banner interactionYesNo (in opt-in jurisdictions)
Typical examplesSession IDs, CSRF tokens, cart cookiesAnalytics and ad trackers
Legal basis (GDPR)Legitimate interest or contractConsent (Article 6(1)(a))
Affected by "Reject All"No, keeps runningYes, must stop immediately

Questions about essential and non-essential cookies

Are preference cookies like language selection essential?

Often yes, when the visitor picked the language. The CNIL and the former Article 29 Working Party treat interface-customisation cookies set at the visitor's request as exempt, and the UK has exempted appearance cookies since February 2026. A language cookie reused for analytics or ads needs consent.

Can Google Analytics ever be classified as essential?

No. Analytics is never strictly necessary. A few countries allow narrow first-party measurement without consent, such as the CNIL's audience-measurement exemption and the UK's statistics exception since February 2026, but a standard Google Analytics set-up rarely meets those conditions.

Do essential cookies need to appear in the cookie banner?

You do not need to ask consent for them, but you should list them for transparency. Most consent management platforms display essential cookies in a read-only category that visitors can view but not toggle off.

What happens if a cookie serves both an essential and a non-essential purpose?

The whole cookie requires consent. The Article 29 Working Party said a multi-purpose cookie is exempt only if all its purposes are. Either split the purposes into separate cookies or treat the combined cookie as non-essential.

How often should cookie classifications be reviewed?

At least quarterly, and after any change to your tech stack. New plugins, analytics tools, or ad scripts can introduce cookies you have not classified. A scheduled scan catches these early.

Sort every cookie on your site into the right group

If you are unsure what your site sets, start with a scan. Kukie.io lists the cookies it finds and suggests a category for each one, which you confirm, then blocks non-essential cookies until your visitors choose.

Start free