Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Rejecting cookies breaks the form or checkout: how to fix it

CNV-129High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

A consent banner (also called a cookie banner or CMP, short for consent management platform) lets visitors accept or reject cookies. When they reject, the CMP blocks scripts and cookies in the categories they refused, usually analytics and marketing.

The problem starts when something the page needs is wrongly put in a blocked category. Common examples: a form plugin that sets a session cookie, a cart that stores its ID in a cookie, a CAPTCHA or payment script tagged as marketing, or a tag manager rule that waits for consent before running the submit handler. The visitor clicks Reject, and the form silently fails or the cart empties.

Why it costs you leads or sales

In the EU and UK, a share of visitors reject cookies, and the banner often makes Reject as easy as Accept. Everyone who rejects and hits the bug is a lost lead or order. Nobody reports it, because the visitor just leaves. Your own testing never shows it, because you probably tested after clicking Accept.

What happens on the rejected path
  1. Visit landing pageBanner appears
  2. Click RejectConsent tool blocks scripts
  3. Submit form or payNeeded script or cookie is blocked
  4. Lead or orderNever recorded
  5. Thank-you pageNever reached

The visitor does nothing wrong, but the journey ends at the form.

Submissions by consent choiceExample numbers
Submissions by consent choice (example)Accepted cookies: 4 %; Rejected cookies (broken): 0 %; Rejected cookies (fixed): 4 %023404Accepted cookiesRejected cookies (bro…Rejected cookies (fix…%

Example: form completion rate for visitors who accept versus reject cookies when the reject path is broken. Numbers are illustrative.

How to check if your site has it

Test the rejected path by hand
  1. Open a clean session

    Use a private or incognito window so no earlier consent choice is stored. Use an EU location or a VPN if your banner only shows there.

  2. Click Reject

    Use the real Reject button, not the close icon or Settings, unless those are what visitors use.

  3. Run the whole journey

    Fill the form and submit, or add a product to the cart and go as far as the payment step. Stop before paying with a real card.

  4. Watch for failures

    Open browser DevTools (F12), then the Console and Network tabs. Look for blocked scripts, errors on submit, or a failed request to your form endpoint.

  5. Compare with Accept

    Repeat in a new private window after clicking Accept. If only the rejected run fails, consent is the cause.

Reject blocks more than tracking

The consent tool blocks a script the form depends on.

How to fix it

The rule is simple: consent should control tracking, not function. Anything the page needs to work (form handling, cart, CSRF tokens, payment, CAPTCHA) should be classed as strictly necessary and never wait for consent. Tracking tags should wait, but their absence must never stop the form submitting.

Fix by platform
  1. Check your consent plugin's blocked list

    In plugins such as Complianz, CookieYes or Cookiebot, open the script or cookie category settings and move form, cart and security scripts to Necessary.

  2. Exclude form and WooCommerce scripts

    Make sure your form plugin and WooCommerce cart scripts are not in the auto-blocking list.

  3. Retest with a cache cleared

    Clear page and plugin caches, then run the rejected path again.

Tracking waits for consent, the form never doesjavascript
document.querySelector('#lead-form').addEventListener('submit', function (e) {
  // Tracking is optional: only fire it if consent was given
  if (window.consentState && window.consentState.marketing === true) {
    window.dataLayer = window.dataLayer || [];
    window.dataLayer.push({ event: 'generate_lead' });
  }
  // The form always submits, whatever the consent choice
});

How to confirm it's fixed

Confirmation checks
  • In a fresh private window, click Reject and submit the form: the thank-you page loads.
  • The test lead arrives in your inbox and CRM.
  • Add to cart and reach the payment step with Reject selected.
  • No blocked-script errors for form or cart files in the Console.
  • Ad and analytics tags still stay off after Reject (check in the Network tab).
  • The accepted path still works and fires tracking.

How to prevent it happening again

This bug usually returns after a plugin update, a new app, a changed consent category or a rebuilt banner. Treat consent settings like code: review them when anything on the form or checkout changes.

Prevention habits
  • Include a Reject run in every release test, not only Accept.
  • Keep a short list of scripts classed as necessary and review it after each plugin update.
  • Re-test after changing the banner, CMP, theme or checkout apps.
  • Never make form submission wait on a tracking call.
  • Schedule an automated rejected-path check so a break is caught in hours, not weeks.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It runs a consent-denied variant of your journey: the robot visitor goes through the journey with cookies rejected, so a form or step that fails only on that path can show up as a failed step, with a screenshot and a likely cause in the alert.

What it does not do: it does not judge whether your consent setup is legally compliant, it does not audit which scripts belong in which consent category, and it will not catch a break that only happens with one specific partial choice, such as accepting analytics but rejecting marketing, unless that is the journey you set up. It also never bypasses CAPTCHAs or bot protection and stops before payment unless your store's test mode is set up.

To cover the rest by hand: test the partial-consent choices in your banner's Settings panel, review your CMP's script categories after each change, and use the manual steps above on any journey FunnelGuard is not running. The Free plan gives you 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.

Questions people ask

Why does my form not submit after I reject cookies?

Your consent tool is probably blocking a script the form needs, such as the form plugin, a CAPTCHA or a custom submit handler. Check the Console and Network tabs after clicking Reject, and move any needed script to the strictly necessary category.

Do I need cookie consent for a contact form to work?

No. A form should work whether or not a visitor accepts cookies. Only tracking and marketing scripts should wait for consent. Ask your legal adviser how your own cookies are classed.

Why does my checkout fail when cookies are declined?

Usually a cart, session or payment script has been classed as marketing or analytics and is blocked on Reject. Reclassify it as necessary, or remove the consent condition from it, then test the full path to the payment step.

How do I test my site with cookies rejected?

Open a private window, click the Reject button on the banner, then complete the form or reach the payment step while watching the Console and Network tabs in DevTools. Compare with a second run after clicking Accept.

Can I fix this by removing the Reject button?

You should not. Hiding Reject can breach privacy rules in the EU and UK, and it only hides the bug. Fix the blocked script so the journey works for every choice.

Will fixing this mean my ad tracking fires without consent?

Not if you only ungate functional scripts. Keep ad and analytics tags gated behind consent and check in the Network tab that they stay silent after Reject.

Can FunnelGuard detect forms that break when cookies are rejected?

Partly. FunnelGuard runs a consent-denied variant of your journey and flags a failing step. It does not audit your consent categories or test every partial consent choice, so test those by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: consent-denied variant run.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.