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.
- Ad or search clickVisitor lands on the page
- Fills in formFields work normally
- reCAPTCHA scriptBlocked, wrong key or wrong domain
- Form submitNo token, so it is rejected
- Lead in inbox and CRMNever arrives
A failed reCAPTCHA script stops the form before it is sent.
Common causes
| Cause | What 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.com | Console error about a blocked script or frame |
| Optimization or cache plugin delays or strips the script | Checkbox missing until you interact, or never |
| Ad blocker, privacy tool or network blocking Google | Works for you, fails for some visitors |
| Consent tool blocks it until cookies are accepted | Form fails for visitors who decline |
| Secret key wrong on the server | Widget shows, but submit is rejected |
| Two reCAPTCHA scripts on one page | Widget renders once or not at all |
How to check if your site has it
Open the page in a private window
Use a fresh browser profile with no extensions so you see what a new visitor sees.
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.
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'.
Check the Network tab
Reload and filter by 'recaptcha'. You should see
api.jsorenterprise.jsreturn status 200, plus requests to/recaptcha/api2/anchor. A red, blocked or missing request is your lead.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.
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.
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.
Add every domain
In the key's settings, list your domain, including
wwwand any staging or subdomain where the form lives. Remove nothing you still use.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).
Exclude the script from optimization
Stop caching, minify, defer or delay tools from rewriting the reCAPTCHA script.
Load it once
Make sure only one plugin or theme adds the script to a page.
Retest
Clear caches, reload in a private window and submit a test lead.
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/;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.
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.
Exclude from optimization
In your cache or speed plugin (WP Rocket, Autoptimize, LiteSpeed Cache and similar), exclude
google.com/recaptchaandgstatic.com/recaptchafrom delay, defer and combine options. Purge the cache.Remove duplicates
Deactivate extra plugins that also load reCAPTCHA, then retest.
Check the built-in setting
Shopify forms use its own protection. If you added a third-party form app or custom reCAPTCHA code, open the app's settings and confirm the keys.
Review theme code
In Online Store > Themes > Edit code, search for 'recaptcha' and make sure the script is included once and the key is correct.
Test on the live domain
Add your custom domain and the myshopify.com domain to the key if you test on both.
Check for tags loading reCAPTCHA
If a Custom HTML tag injects the script, confirm its trigger fires before the form is used and on the right pages.
Check consent settings
If the tag only fires after consent, visitors who decline get no reCAPTCHA. Load it as a necessary or security tool where your consent policy allows.
Use Preview mode
Open Preview and confirm the tag fires on the form page.
Check the form settings
Webflow's native forms use built-in reCAPTCHA. In Site settings > Forms, confirm reCAPTCHA is enabled and your keys are valid if you added your own.
Check custom code
In Site settings > Custom code, remove any duplicate reCAPTCHA script.
Publish and retest
Publish the site, then test on the live domain, not the designer preview.
Check the form or survey settings
Open the form in the builder and review its spam protection options. Reload it on the published page.
Check embeds
If the form is embedded in an iframe on another site, make sure that site's security rules allow the embed and Google's reCAPTCHA domains.
Check the form's spam settings
Open the form in the editor, go to Settings and review the 'Spam protection' or reCAPTCHA option. Turn it off and on again to reset it.
Test the published site
Publish and test on the live URL in a private window.
Check the form block
Edit the form block, open Storage or Advanced settings and review the 'Use reCAPTCHA' or anti-spam option.
Remove custom reCAPTCHA code
If you added your own script in Code Injection, remove it so only one loads.
Load the script correctly
Add the script once with your site key, as in the snippet below.
Verify on the server
Send the token and your secret key to
https://www.google.com/recaptcha/api/siteverifyand only accept the form if the response says success.Handle load failure
If
grecaptchais undefined when the user submits, show a clear message asking them to reload, and log the error.
<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
- 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
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
- 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
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.
Related issues
- PRF-099Third-party script fails to load (chat, form, payment widget)Fix guide
- PRF-103Embedded form (HubSpot/Typeform) iframe never loadsFix guide
- PRF-111Third-party script throws console errorsFix guide
- PRF-112Tag manager container fails to load (blocked, 404)Fix guide
- PRF-113Ad blockers break core functionality (site depends on blocked script)Fix guide
- PRF-110Payment widget (Stripe Elements, PayPal button) not renderingFix guide