Skip to content
FunnelGuard

Fix guide by FunnelsGuard

CMP blocks form or checkout script: how to find and fix it

TRK-297High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A consent management platform (CMP) is the tool that shows your cookie banner and blocks scripts until the visitor agrees. Many CMPs block by script type or by a list of known domains. If the list is too broad, it also blocks scripts that are needed to make the page work: a form library, a reCAPTCHA or Turnstile widget, a payment script, a booking widget or a chat button.

Why it costs you leads or sales

Visitors who reject the banner, ignore it or have a privacy extension cannot submit the form or pay. They do not see an error, so they just leave. You also lose the data: no lead, no conversion event, and nothing in your reports that explains the drop.

Where the journey breaks
  1. Visit pageBanner appears
  2. Ignore or reject bannerNo consent given
  3. Click submitForm script blocked by CMP
  4. Lead or orderNever created
  5. Conversion trackingNothing to report

The CMP holds back the form script, so the submit click goes nowhere.

Form completions by banner choiceExample numbers
Form completions by banner choice (example)Accepted all: 4 % of visitors who submit; Rejected: 0 % of visitors who submit; Ignored banner: 0 % of visitors who submit023400Accepted allRejectedIgnored banner% of visitors who submit

Example: illustrative numbers only. Visitors who accept can submit, those who reject or ignore the banner cannot.

How to check if your site has it

Test it yourself in five minutes
  1. Open a private window

    Use a fresh incognito or private window so no earlier consent choice is stored.

  2. Do not touch the banner

    Fill in the form or add a product to the cart and try to submit or pay. Then repeat after clicking Reject all.

  3. Watch the console

    Open DevTools (F12), go to Console and Network. Look for scripts shown as blocked, scripts with type="text/plain", or errors such as 'grecaptcha is not defined' or 'Stripe is not defined'.

  4. Inspect the script tags

    In Elements, search for your form or payment script. If its type was changed to text/plain or it has a data-cookieconsent or data-category attribute, the CMP is holding it back.

  5. Compare with Accept all

    If the form works only after accepting, the CMP is the cause.

How to fix it

The principle is the same everywhere: scripts the page needs to work belong in the CMP's strictly necessary (or functional) category, and only tracking and advertising scripts stay behind consent. Menu names differ by CMP, so check its documentation for the exact wording.

Release the script by platform
  1. Find the blocked script

    Check which plugin loads it (form plugin, CAPTCHA, payment gateway) in the page source.

  2. Exclude it in the CMP plugin

    In your consent plugin's settings, add the script URL or plugin handle to the allow list or mark it as necessary. Turn off any 'block all scripts automatically' option that catches it.

  3. Clear caches

    Purge page cache and any minify or delay-JS setting that may rewrite the script.

Example: blocked vs released scripthtml
<!-- Blocked by the CMP: never runs without consent -->
<script type="text/plain" data-category="marketing" src="https://example.com/form-widget.js"></script>

<!-- Released: functional script runs normally -->
<script src="https://example.com/form-widget.js"></script>

<!-- Tracking stays gated -->
<script type="text/plain" data-category="marketing" src="https://example.com/pixel.js"></script>
A button that does nothing

The visitor clicks, but the blocked script never answers.

How to confirm it's fixed

Fix verification
  • In a private window, submit the form without touching the banner: the thank-you page or message appears
  • Repeat after clicking Reject all: the form still submits
  • Console shows no 'not defined' or blocked-script errors
  • The lead arrives in the inbox and CRM
  • Checkout reaches the payment step in test mode for rejecting visitors
  • Ad and analytics tags still do not fire until consent is given

How to prevent it happening again

Habits that keep it fixed
  • Test forms and checkout with the banner rejected after every CMP, theme or plugin change
  • Keep a short list of functional scripts (form, CAPTCHA, payment, booking, chat) and check it against the CMP's categories
  • Avoid 'block everything automatically' settings unless you review the result
  • Re-test after adding a new form plugin or payment method
  • Run the journey on a schedule rather than waiting for a complaint

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor runs your real form or checkout journey on a schedule from the EU or the US. When the click on the button does not lead to the next step, the check reports an interaction failure. A failure is re-checked from a second region before one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause.

Questions people ask

Why is my form not submitting until I accept cookies?

Your consent management platform is probably blocking the script that handles the form, such as the form library or a CAPTCHA. Mark that script as strictly necessary in the CMP so it loads without consent, and keep only tracking scripts gated.

Can a cookie banner break my checkout?

Yes. If the CMP blocks a payment, cart or checkout script, the button stays inactive for visitors who have not accepted. Test checkout with the banner rejected to see whether it still reaches the payment step.

How do I know if my CMP is blocking a script?

Open DevTools in a private window without accepting cookies. Look for scripts whose type was changed to text/plain, blocked requests in the Network tab, or console errors such as 'X is not defined'. If it works after Accept all, the CMP is the cause.

Is it allowed to load a form script without consent?

Scripts strictly necessary to deliver what the visitor requested, like submitting a form or paying, are normally treated as exempt from consent. Check your own legal advice, and keep analytics and advertising scripts behind consent.

Why does my contact form work for me but not for visitors?

You may have accepted cookies earlier, so the CMP lets the script run for you. New visitors who ignore or reject the banner get the blocked version. Test in a fresh private window.

Does fixing this mean I have to stop respecting consent?

No. You only move functional scripts out of the blocked group. Tracking and advertising tags stay behind consent and keep following the visitor's choice.

How can I be alerted if the banner blocks my form again?

Run the form journey on a schedule with a monitor that clicks through it. FunnelGuard does this and alerts you with a screenshot when the interaction fails, after re-checking from a second region.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: interaction fails.

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.