keepcalculator

06 Numbers and Powers

GDPR Cookie Consent: When Is Tracking Allowed?

Card No. 06·8439 · Updated · Standard formula, shown below

Yes, under the GDPR, tracking cookies require valid consent before they are placed, unless the tracking is strictly necessary for the service the user has explicitly requested. This means you must obtain freely given, specific, informed, and unambiguous consent, typically via a clear affirmative action like ticking a box, before setting non-essential cookies for analytics, advertising, or personalization.

Background: Why the GDPR Restricts Tracking

The EU General Data Protection Regulation (GDPR) and the ePrivacy Directive (often called the “cookie law”) work together to protect user privacy online. The GDPR sets the high-level standard for personal data processing, while the ePrivacy Directive adds specific rules for storing and accessing information on a user’s device. Cookies that collect personal data (e.g., IP addresses, browsing behavior) fall under both. The GDPR’s core principle is “lawfulness, fairness, and transparency,” meaning you cannot process personal data without a valid legal basis. For most tracking cookies, the only practical legal basis is consent.

How Consent Works in Practice

Valid consent under the GDPR must be:

  • Freely given – no pressure, no pre-ticked boxes, no forced consent to access content.
  • Specific – separate consent for different purposes (e.g., analytics vs. advertising).
  • Informed – users must be told what cookies do, who sets them, and for how long.
  • Unambiguous – a clear affirmative action, such as clicking “Accept” or toggling a switch, not scrolling or continued browsing.

You must also make it as easy to withdraw consent as it is to give it, and you must document consent (e.g., store a timestamp and the user’s choice).

When Tracking Is Allowed Without Consent

There are narrow exceptions. Consent is not required for:

  • Cookies used solely to carry out the transmission of a communication over a network (e.g., load balancing).
  • Strictly necessary cookies that provide a service the user explicitly requested, such as remembering items in a shopping cart, or remembering login details for a session.

These are often called “essential” cookies. They must be limited to what is technically required; you cannot use an “essential” label for analytics or advertising cookies.

Choosing a Consent Management Platform

If your site uses tracking cookies, you need a consent management platform (CMP) to collect and store consent. When choosing one, consider:

  • Granularity – does it let users choose which categories (e.g., analytics, marketing) to accept?
  • Language and jurisdiction – does it support all EU languages and handle GDPR and ePrivacy correctly?
  • Logging – does it record consent proof (timestamp, user ID, version of policy)?
  • Integration – does it work with your tag manager and third-party scripts?
  • Cost and scale – many offer free tiers for small sites, but check if they cap monthly page views.

Your CMP should block all non-essential cookies until the user makes a choice, and reload the page or apply the choice without breaking the site.

Common Problems and Misconceptions

One frequent mistake is assuming that a “cookie banner” alone is enough. A banner that says “By continuing to use this site, you consent to cookies” is not valid under the GDPR because it does not involve an affirmative act. Another misconception is that anonymizing IP addresses makes tracking exempt. Even if you hash or truncate IPs, the data may still be personal if it can identify a user via other means. Also, “legitimate interest” is often misused. While the GDPR allows legitimate interest as a basis for some processing, the ePrivacy Directive requires consent for storing/accessing cookies unless they are strictly necessary. So legitimate interest cannot justify tracking cookies in most EU jurisdictions.

Comparing GDPR with Other Regulations

The GDPR is not the only privacy law. The UK GDPR (post-Brexit) is nearly identical, and the EU’s ePrivacy Regulation (still in draft) will replace the ePrivacy Directive. In the US, state laws like the CCPA/CPRA give consumers the right to opt out of “sale” or “sharing” of personal information, but they do not require prior consent; they require an opt-out link (like “Do Not Sell or Share My Personal Information”). Brazil’s LGPD and other laws have their own nuances. If you operate globally, you may need to detect user location and apply the appropriate regime.

Costs and Practical Steps

Implementing consent can be costly in time and money. You may need to:

  1. Audit all cookies and trackers on your site (use a crawler or browser dev tools).
  2. Classify each cookie as essential or non-essential, and map the purposes.
  3. Choose a CMP (free or paid) and configure it with your cookie list.
  4. Update your privacy policy to explain your use of cookies and consent.
  5. Test the user experience on mobile and desktop, and ensure the CMP blocks scripts before consent.
  6. Set up a mechanism for users to change or withdraw consent at any time.

Ongoing costs include maintaining the cookie list (new scripts added), handling user requests, and keeping records. Fines for non-compliance can be up to €20 million or 4% of global annual turnover, whichever is higher, so the investment is often worth it.

Alternatives to Tracking

If you want to avoid the complexity of consent, consider:

  • Server-side analytics that process data without storing personal identifiers.
  • Privacy-friendly analytics that use no cookies and aggregate data (e.g., Plausible, Matomo in cookieless mode).
  • Contextual advertising instead of behavioral targeting.
  • First-party data with explicit user opt-in for newsletters or accounts.

These reduce legal risk and can improve user trust, though they may offer less granular data.

Frequently Asked Questions

Do I need consent for Google Analytics?

Yes, in most cases. Google Analytics sets cookies that collect personal data (like IP addresses) and tracks behavior across pages. Unless you configure it to use no cookies and to anonymize IPs, you need consent before loading the tracking script. Many EU data protection authorities have ruled that even anonymized IPs can be personal in some contexts, so consent is the safe route.

What is the difference between GDPR and ePrivacy?

GDPR is the general data protection law; ePrivacy is a directive specifically about privacy in electronic communications. For cookies, ePrivacy requires consent for storing/accessing information on a device, while GDPR requires a legal basis for processing personal data. Both apply simultaneously, so you must satisfy both.

Can I use a pre-ticked checkbox for consent?

No. A pre-ticked box does not constitute unambiguous consent because the user has not taken an active step. The GDPR explicitly states that silence or inactivity does not constitute consent. You must use an opt-in mechanism, such as an unticked checkbox or a clear “Accept” button.

What happens if I ignore the cookie rules?

You risk enforcement actions from data protection authorities, which can include fines, orders to stop processing, and reputational damage. In practice, many smaller sites receive warning letters first, but there is no guarantee. The maximum fine under the GDPR is €20 million or 4% of annual global turnover, whichever is higher.

Do I need a cookie banner on every page?

No. The banner (or a persistent widget) must appear when the user first visits, and they must be able to access their choices later. You do not need to show the banner again on every page, but you should provide a way to change preferences, usually via a floating icon or a link in the footer.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →