On this page
What this issue is
reCAPTCHA is Google's spam check for forms. Each key pair is tied to a list of allowed domains. The site key is public and loads the widget in the page. The secret key stays on your server and verifies the visitor's token with Google.
If the page's domain is not on the key's list, Google refuses the request. Visitors may see ERROR for site owner: Invalid domain for site key, a grey widget, or nothing at all. Either way the form cannot pass the check, so every submit fails.
Common causes: the site moved from a staging or temporary domain to the live one, the www or a subdomain was never added, keys were copied from another site, a v2 key was pasted into a v3 setting (or the reverse), or the secret key has a typo or trailing space.
Why it costs you leads or sales
This is a hard failure. Visitors fill in the form, press submit and nothing is delivered. Most will not retry or email you. Because ads and SEO keep sending traffic, you pay for visits that cannot convert, and you may not notice, since no spam arrives either and the inbox just looks quiet.
- Ad or search clickVisitor lands on the page
- Fills in formDetails entered
- reCAPTCHA checkInvalid domain for site key
- Email to inboxNever sent
- Lead in CRMNever created
The reCAPTCHA check fails, so nothing after the submit happens.
Example: illustrative numbers for a site that moved to a new domain without updating the reCAPTCHA key.
How to check if your site has it
Load the live form in a private window
Look at the reCAPTCHA box. A red 'ERROR for site owner' message or 'Invalid domain for site key' means the domain is not registered.
Open the browser console
Press F12 and open Console. Look for messages mentioning reCAPTCHA, 'Invalid site key' or 'Invalid domain'.
Submit a real test entry
Use your own email. If the form shows an error such as 'reCAPTCHA verification failed' or just hangs, the keys are wrong.
Compare the keys
In the reCAPTCHA admin console, open the key and check the listed domains, the key type (v2 checkbox, v2 invisible, v3) and that it matches the site key in your form settings.
The form looks normal until the check is rejected.
How to fix it
Open the reCAPTCHA admin console
Go to google.com/recaptcha/admin and sign in with the Google account that owns the key. If you cannot find the key, ask whoever built the site which account was used.
Add your domains
Open the key's settings and add each domain the form runs on, without https:// or a path, for example example.com. Adding a domain also covers its subdomains, such as www, in the standard setup. Add any separate domain used for landing pages.
Check the key type
A v2 checkbox key will not work as v3, and the reverse. If your form plugin expects another version, create a new key of the right type.
Paste both keys again
Copy the site key and secret key into your form settings. Make sure there are no spaces or line breaks, and that you did not swap them.
Clear caches
Purge your page cache and CDN so the page serves the updated site key.
Find the form plugin's reCAPTCHA settings
Contact Form 7: Contact > Integration > reCAPTCHA. WPForms: WPForms > Settings > CAPTCHA. Gravity Forms: Forms > Settings > reCAPTCHA. Elementor Pro: Elementor > Settings > Integrations. Paste the matching version's keys.
Save and purge cache
Clear your caching plugin and any CDN, then reload the form.
Use Webflow's own reCAPTCHA setting
Open Project settings > Forms > reCAPTCHA and paste the site key and secret key. Webflow uses v2, so use a v2 key. Publish the site afterwards.
Update the front end
Make sure the site key in the script or widget div is the one registered for your domain.
Update the server check
Make sure the secret key used in the call to https://www.google.com/recaptcha/api/siteverify belongs to the same key pair.
Check the form app
Wix Forms uses its own built-in spam protection. If you added a third-party form with reCAPTCHA, update the keys in that app's settings.
Check for custom code
If you embedded a custom reCAPTCHA script in a funnel or website page, update the site key there and make sure the domain is registered for it, including any custom domain you connected.
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<form method="post" action="/contact">
<!-- your fields -->
<div class="g-recaptcha" data-sitekey="YOUR_SITE_KEY"></div>
<button type="submit">Send</button>
</form>How to confirm it's fixed
- The reCAPTCHA widget loads with no error message on the live domain, with and without www
- The browser console shows no reCAPTCHA errors
- A real test submit shows the success message or thank-you page
- The test lead arrives in the inbox and the CRM
- The check also passes on mobile
How to prevent it happening again
- Add every domain to the key before launch, including www, staging and landing page domains
- Add reCAPTCHA keys to your site migration checklist
- Record which Google account owns the keys
- Use separate keys for staging and production
- Test a real submit after every domain, theme or plugin change
- Run a scheduled form test so a failure is flagged within hours, not weeks
How FunnelGuard handles this
FunnelGuard detects this today. A robot visitor opens your form on a schedule, fills it in and submits it, like a real customer. When the keys are invalid, the submit fails or an error appears, and that is flagged as a failed step.
The failure is re-checked from a second region before one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty. The alert includes a screenshot and a likely cause. FunnelGuard does not bypass CAPTCHAs or bot protection, so it flags the failed submit and does not claim to know every cause. The Free plan covers 1 site and 2 journeys with daily checks and no card.
Questions people ask
Why does my form say 'ERROR for site owner: Invalid domain for site key'?
The domain the form is on is not registered for that reCAPTCHA site key. Add the domain in the reCAPTCHA admin console under the key's settings, then reload the page and clear caches.
How do I add a domain to my reCAPTCHA key?
Sign in at google.com/recaptcha/admin, open the key, and add the domain in its settings without https:// or a path. Save, then reload your form. Changes usually apply quickly.
Why does reCAPTCHA work on staging but not on my live site?
The key was probably registered only for the staging domain. Add the live domain to the key, or create a separate key for production and paste both of its keys into your form settings.
Can I use a reCAPTCHA v2 key for v3?
No. Keys are created for one type, and a v2 key will not work as v3 or the reverse. Check the key type in the admin console and create a new key if your plugin expects another version.
Do I need to add www as well as the root domain?
Add the root domain, for example example.com. In the standard setup, subdomains such as www are covered by it. Test both versions anyway, and add any separate domains you use for landing pages.
Why does my form fail even though the widget loads?
The site key may be valid while the secret key is wrong, swapped or has a stray space. The server check then fails after the visitor submits. Paste both keys again from the same key pair.
How do I know if reCAPTCHA is stopping my leads?
Submit your own form on the live site and watch for an error or a stalled submit. If you do not get the test email, check the browser console. An automated form check can alert you when a submit fails.
Related issues
- DLV-200reCAPTCHA v3 score threshold rejects real usersFix guide
- DLV-202Turnstile/hCaptcha widget not loadingFix guide
- DLV-197Spam flooding the form, real leads buriedFix guide
- DLV-203Spam filter (Akismet, CleanTalk) marks real leads as spam silentlyFix guide
- DLV-205WAF blocks form POST containing certain wordsFix guide
- DLV-198Spam bots exhaust the CRM/Zapier task quotaFix guide