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.
- Visit landing pageBanner appears
- Click RejectConsent tool blocks scripts
- Submit form or payNeeded script or cookie is blocked
- Lead or orderNever recorded
- Thank-you pageNever reached
The visitor does nothing wrong, but the journey ends at the form.
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
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.
Click Reject
Use the real Reject button, not the close icon or Settings, unless those are what visitors use.
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.
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.
Compare with Accept
Repeat in a new private window after clicking Accept. If only the rejected run fails, consent is the cause.
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.
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.
Exclude form and WooCommerce scripts
Make sure your form plugin and WooCommerce cart scripts are not in the auto-blocking list.
Retest with a cache cleared
Clear page and plugin caches, then run the rejected path again.
Review the Customer Privacy settings
Go to Settings > Customer privacy and check how your banner is set up. Shopify checkout works without marketing cookies.
Check third-party consent apps
If an app blocks scripts, look for custom code or theme snippets it wraps in a consent condition, especially cart and upsell apps.
Test checkout after Reject
Go from product to the payment step with Reject selected.
Find tags that run form logic
In Tags, look for custom HTML tags that handle submit events, redirects or form validation.
Remove consent requirements from them
Open Advanced Settings > Consent Settings and set functional tags to No additional consent required.
Keep tracking tags gated
Leave ad and analytics tags requiring ad_storage or analytics_storage, and test with Preview mode.
Check custom code
In Project settings > Custom code, see whether form or redirect scripts are wrapped in a consent condition.
Review the consent app
If you use Finsweet, Cookiebot or similar, confirm the form script is not in the blocked categories.
Publish and retest
Publish the site and run the rejected path on the live URL.
Check scripts in funnel and site settings
Look at custom code in the funnel or website header and footer for scripts wrapped in a consent check.
Ungate form logic
Make sure only tracking pixels wait for consent, not scripts that handle form submission or redirects.
Submit a test lead after Reject
Confirm the lead appears in your contacts.
Open the cookie banner settings
In Settings > Cookie Banner, check how Reject is handled.
Check Marketing Integrations
Make sure custom code added under Settings > Custom Code is only tagged as marketing if it is tracking.
Test the form and checkout
Submit the form and reach payment with Reject selected.
Review Cookie Banner settings
Open Settings > Cookies & Visitor Data and check which categories Reject disables.
Check Code Injection
Under Settings > Advanced > Code Injection, make sure no form or cart script depends on consent.
Test forms and checkout
Run both after clicking Decline.
Separate tracking from function
Do not make form submission depend on a consent flag or on a tracking call finishing.
Wrap only tracking in the consent check
See the code example below.
Use necessary cookies for sessions
Session, cart and CSRF cookies are normally strictly necessary and do not need consent. Check this with your legal adviser.
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
- 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.
- 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.
Related issues
- CNV-130Banner blocks form script until consent (form missing)Fix guide
- CNV-131Consent banner script fails, page unclickableFix guide
- CNV-126Reject button missing (EU non-compliant)Fix guide
- CNV-125Accept button doesn't close the bannerFix guide
- CNV-124Cookie banner covers the main CTAFix guide
- CNV-128Banner reappears on every page (consent not stored)Fix guide