Home / Fix guides / Analytics, cookies and GDPR

Pre-ticked cookie consent boxes (GDPR): how to find and fix them

A cookie banner that arrives with analytics or marketing boxes already ticked does not collect valid GDPR consent. Set every optional category to off by default, so a visitor has to switch it on themselves.

A pre-ticked consent box is a checkbox or toggle in a cookie banner that is already switched on for analytics, marketing or other optional cookies before the visitor has done anything. Under GDPR that does not count as consent. The fix is usually one setting in your cookie banner tool, plus a check that your tracking scripts really respect it. This is general information, not legal advice.

What you see on the site

The banner looks normal at first, with buttons like Accept all and Manage preferences. The problem appears when you open the preferences. You see a list such as Necessary (locked on), Analytics, Marketing and Preferences, and the optional ones are already ticked or slid to the on position. If the visitor just presses Save, they have "agreed" to everything.

The same issue shows up outside the banner:

  • A newsletter or marketing email box ticked by default on a checkout or contact form.
  • A single box that bundles terms and conditions with marketing permission.
  • A Confirm my choices button that saves the pre-selected defaults as the visitor's choice.

Why it matters

GDPR says consent must be freely given, specific, informed and unambiguous, and it must come from a clear affirmative action. Recital 32 of the regulation says pre-ticked boxes or inactivity should not count as consent. The EU Court of Justice confirmed this for cookies in the Planet49 ruling in 2019. The UK applies the same standard under UK GDPR and its cookie rules.

In practice this means:

  • Any analytics or advertising data collected on the back of a pre-ticked box was collected without a valid legal basis.
  • You carry the risk of a complaint to a data protection authority, which can start from something as simple as a visitor screenshotting your banner.
  • Visitors who notice it trust you less, and your own reports are built on shaky ground.

How to check your site for free

  1. Open your site in a private or incognito window, so no earlier choice is stored.
  2. When the banner appears, do not click Accept all. Open the settings or preferences instead.
  3. Look at every optional category. If any box is ticked or any toggle is on, you have the problem.
  4. Without changing anything, click the save or confirm button. Then open your browser developer tools (usually F12), go to the Application tab in Chrome (Storage in Firefox) and look under Cookies. If analytics or advertising cookies such as _ga or _fbp appear, the defaults were on.
  5. Check your forms too: newsletter signup, checkout, account creation and contact forms. Marketing boxes should start empty.
  6. Repeat on a phone, because some banners show a different layout on mobile.

If cookies already exist before you touch the banner at all, that is a related but different problem: see cookies set before consent.

How to fix it in general

  1. Open the settings of your cookie banner tool. Common real ones are Cookiebot, CookieYes, Complianz, OneTrust and Iubenda. Look for wording like default state, pre-selected categories, default consent or opt-in.
  2. Set all non-essential categories (analytics, marketing, preferences) to off or denied by default. Leave strictly necessary cookies on and locked, since those do not need consent.
  3. Make refusing as easy as accepting. A Reject all button on the first layer, with similar prominence to Accept all, is what many European regulators expect.
  4. Make sure the scripts obey the banner. A toggle that is off does nothing if your analytics or pixel tag still fires on page load. If you use Google Tag Manager, set consent defaults to denied and tie tags to consent. See Google Consent Mode v2 missing for the Google side.
  5. Untick marketing boxes on forms and keep them separate from terms and conditions.
  6. Clear your own stored choice (delete the banner's cookie or use a fresh private window) and test again.

Common platforms

Exact menu names differ by version, theme and region settings, so treat these as places to look.

  • WordPress: the setting lives in your consent plugin, usually under its own menu or under Settings. See the WordPress guide.
  • WooCommerce: the checkout newsletter box usually comes from a mailing or marketing extension. Find its checkbox option and set the default to unchecked.
  • Shopify: look in Settings, then Customer privacy, and in the settings of any cookie banner app you installed.
  • Wix: look in Settings for the cookie banner or privacy and cookies options, and check whether optional categories start on.
  • Squarespace: look in Settings for Cookies and Visitor Data, where the banner and its defaults are set.
  • Webflow: there may be no built-in banner for this depending on your plan and version, so the default is usually set in whichever consent tool or custom code you added.
  • Google Tag Manager: check the consent settings on each tag and the default consent state you set in the tag that runs first.

Each of these also has its own guide on SiteMonday under the pre-ticked boxes fix.

How to confirm the fix worked

  1. Open a fresh private window and load the site.
  2. Open the banner preferences. Every optional category should be off.
  3. Press save without changing anything. Check the cookies list: no analytics or advertising cookies should appear.
  4. Press Reject all and check again. Still none.
  5. Press Accept all (in another fresh window) and confirm the cookies now appear. This proves the banner controls them.
  6. Check forms and the mobile layout once more.

SiteMonday's week 27 check covers GDPR and cookie consent and ends with a written report and a ranked fix list, which is a handy way to have an independent look. Fixing is up to you or your developer.

How to stop it coming back

  • Re-test after any update to your banner plugin, theme or checkout, because updates can reset defaults.
  • If you switch to a new banner tool, treat the defaults as unknown and run the check above before going live.
  • When you add a new tracking tool, put it in the right category and confirm it stays blocked until consent.
  • Write down the correct default settings somewhere your team or developer can find them.
  • Keep your privacy policy in line with what the banner really does.

Step by step for your platform

Questions

Are pre-ticked boxes ever allowed for necessary cookies?

Strictly necessary cookies, such as those that keep a shopping basket working, do not need consent, so showing them as always on is fine. Analytics, advertising and other optional categories must start off.

Is a banner that says 'by continuing you agree' enough instead?

No. Continuing to browse is not a clear affirmative action, so it does not count as valid consent for optional cookies.

Does this apply if my visitors are only in the UK?

Yes. UK GDPR and the UK cookie rules take the same approach: consent needs a clear action, and pre-ticked boxes do not provide it.

Do pre-ticked marketing boxes on forms count too?

Yes. A newsletter or marketing permission box that is ticked by default is the same problem, and it should start empty.

Will switching everything to off hurt my analytics?

You will likely record fewer visits, because only people who opt in are measured. That is the cost of valid consent, and the data you do collect rests on a proper basis.

Is it enough to have a Reject all button if the boxes stay ticked?

No. The boxes must also start unticked, and your scripts must stay blocked until the visitor makes a choice.

Related problems