Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Google reCAPTCHA not loading: why your form won't submit

PRF-109High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

reCAPTCHA is Google's bot check. A script from google.com/recaptcha or recaptcha.net runs on your page and produces a token (a short code that says the visitor passed). Your server sends that token to Google to verify it before accepting the form.

If the script never loads, there is no token. Depending on the form, the visitor sees an error, a grey box where the checkbox should be, a spinner that never stops, or a button that does nothing.

Why it costs you leads or sales

The form looks fine, so nobody notices. Visitors fill it in, press submit and get nothing back. Most will not try again. Ad spend and SEO traffic still arrive, but enquiries and checkouts stop. Because the page loads normally, analytics show no drop in visits, only fewer conversions.

Where the funnel breaks
  1. Ad or search clickVisitor lands on the page
  2. Fills in formFields work normally
  3. reCAPTCHA scriptBlocked, wrong key or wrong domain
  4. Form submitNo token, so it is rejected
  5. Lead in inbox and CRMNever arrives

A failed reCAPTCHA script stops the form before it is sent.

Common causes

Typical reasons reCAPTCHA fails to load and what you see
CauseWhat you see
Wrong or missing site key'Invalid site key' or 'ERROR for site owner'
Domain not listed in the reCAPTCHA admin'Invalid domain for site key'
Content Security Policy blocks google.com/recaptcha and gstatic.comConsole error about a blocked script or frame
Optimization or cache plugin delays or strips the scriptCheckbox missing until you interact, or never
Ad blocker, privacy tool or network blocking GoogleWorks for you, fails for some visitors
Consent tool blocks it until cookies are acceptedForm fails for visitors who decline
Secret key wrong on the serverWidget shows, but submit is rejected
Two reCAPTCHA scripts on one pageWidget renders once or not at all

How to check if your site has it

Test the form like a visitor
  1. Open the page in a private window

    Use a fresh browser profile with no extensions so you see what a new visitor sees.

  2. Look for the widget

    You should see the checkbox, or the small reCAPTCHA badge at the bottom right for v3 and invisible versions. A blank space or error text means it did not load.

  3. Open DevTools Console

    Press F12 and open Console. Look for messages such as 'Invalid site key', 'Invalid domain for site key', 'Refused to load the script' or 'grecaptcha is not defined'.

  4. Check the Network tab

    Reload and filter by 'recaptcha'. You should see api.js or enterprise.js return status 200, plus requests to /recaptcha/api2/anchor. A red, blocked or missing request is your lead.

  5. Submit a test lead

    Fill the form with a test email and submit. Confirm a success message appears and that the email and CRM entry arrive.

What the visitor experiences

The page loads, the script fails, and the submit errors out.

How to fix it

Start with the cause the console points to. The most common fixes are a correct key pair, the right domains, and allowing Google's domains in your security rules.

General fix order
  1. Check the keys

    In the reCAPTCHA admin console, copy the site key and secret key for the right type (v2 checkbox, v2 invisible, v3). Keys from one type do not work with another.

  2. Add every domain

    In the key's settings, list your domain, including www and any staging or subdomain where the form lives. Remove nothing you still use.

  3. Allow Google in your security rules

    If you use a Content Security Policy, firewall or hosting security header, allow the reCAPTCHA domains (see the snippet below).

  4. Exclude the script from optimization

    Stop caching, minify, defer or delay tools from rewriting the reCAPTCHA script.

  5. Load it once

    Make sure only one plugin or theme adds the script to a page.

  6. Retest

    Clear caches, reload in a private window and submit a test lead.

Content Security Policy entries reCAPTCHA needstext
script-src https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/;
frame-src https://www.google.com/recaptcha/ https://recaptcha.google.com/recaptcha/;
connect-src https://www.google.com/recaptcha/;
Fix by platform
  1. Re-enter keys

    Go to your form plugin's settings (for example Contact Form 7 > Integration, or the reCAPTCHA section in WPForms, Gravity Forms or Elementor). Paste the site and secret key again and save.

  2. Match the version

    If the plugin is set to v3 but your keys are v2, create the right key type or change the plugin setting.

  3. Exclude from optimization

    In your cache or speed plugin (WP Rocket, Autoptimize, LiteSpeed Cache and similar), exclude google.com/recaptcha and gstatic.com/recaptcha from delay, defer and combine options. Purge the cache.

  4. Remove duplicates

    Deactivate extra plugins that also load reCAPTCHA, then retest.

Standard reCAPTCHA v2 checkboxhtml
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<form action="/submit" method="POST">
  <input type="email" name="email" required>
  <div class="g-recaptcha" data-sitekey="YOUR_SITE_KEY"></div>
  <button type="submit">Send</button>
</form>

How to confirm it's fixed

Confirmation checks
  • The checkbox or badge shows on the form page in a private window
  • Console has no reCAPTCHA errors
  • Network shows the recaptcha script returning status 200
  • A test submit shows the success message or thank-you page
  • The test lead reaches the inbox and CRM
  • It works on mobile and in at least two browsers
  • It works for a visitor who declines cookies
Before and after

Broken

  • Blank space where the checkbox should be
  • Console shows invalid key or blocked script
  • Submit does nothing or errors
  • No leads arrive

Fixed

  • Widget or badge visible
  • Script returns 200
  • Submit shows thank-you
  • Lead reaches inbox and CRM

How to prevent it happening again

Prevention habits
  • Add new domains to the reCAPTCHA key before launching a new site, subdomain or landing page
  • Retest forms after changing security headers, firewall rules or CSP
  • Retest after installing or updating cache and optimization plugins
  • Keep a record of which key type each site uses
  • Test the form after theme, plugin and consent banner changes
  • Monitor the form on a schedule, not only after releases
Leads before and after a failed scriptExample numbers
Leads before and after a failed script (example)Normal week: 40 leads per week; Script broken: 3 leads per week; After fix: 39 leads per week0153140339Normal weekScript brokenAfter fixleads per week

Example: illustrative numbers for a site with steady traffic. The week the script breaks, visits stay flat but leads drop.

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor runs your real form journey on a schedule, fills in the form and submits it. If the submit fails or the page reports a bot protection problem, the step is marked as failed. FunnelGuard then re-checks from a second region before sending one alert by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause.

FunnelGuard never bypasses CAPTCHAs or bot protection. It reports when the check blocks the journey, so you can fix the cause. It also checks whether test leads reach your inbox and CRM. Test traffic is marked with utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans include a 3-day free trial.

Questions people ask

Why is my reCAPTCHA not loading?

The most common causes are a wrong site key, a domain missing from the reCAPTCHA admin, a Content Security Policy blocking google.com/recaptcha, or a cache plugin delaying the script. Open the browser console and Network tab to see which one applies.

Why does my form not submit when reCAPTCHA fails?

The form needs a token from reCAPTCHA to prove the visitor passed the check. If the script never loads, no token is created, so the server rejects the submit or the button does nothing.

How do I fix 'ERROR for site owner: Invalid site key'?

Open the reCAPTCHA admin console, copy the correct site key for your key type (v2 or v3), and paste it into your form plugin or code. Make sure the key is not mixed up with the secret key, then clear caches and retest.

How do I fix 'Invalid domain for site key'?

In the reCAPTCHA admin, open your key's settings and add the exact domain where the form runs, including www and any subdomain. Save, wait a minute, and reload the page.

Can a cache or speed plugin break reCAPTCHA?

Yes. Options that delay, defer, combine or minify JavaScript can stop the reCAPTCHA script from running on time. Exclude google.com/recaptcha and gstatic.com/recaptcha from those settings and purge the cache.

Why does reCAPTCHA work for me but not for some visitors?

Ad blockers, privacy tools, strict networks, consent banners or regional blocks can stop the script for some people. Test in a private window with extensions off, and check whether your consent tool blocks the script until cookies are accepted.

How can I monitor my form for reCAPTCHA failures?

Run a scheduled test submission and check that it succeeds and the lead arrives. FunnelGuard does this with a robot visitor and alerts you if the submit fails or bot protection is reported, without bypassing the CAPTCHA.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: submit fails / bot protection reported.

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.