Back to Community

Troubleshooting Common reCAPTCHA and Cookie Consent Issues with Complianz

19 threads Sep 7, 2025 PluginComplianz – gdpr/ccpa cookie consent

Content

Integrating Google reCAPTCHA with cookie consent plugins like Complianz is a common requirement for GDPR/CCPA compliance, but it can often lead to unexpected behavior. Based on community reports, here are the most frequent issues and their potential solutions.

Common Problems and Symptoms

  • reCAPTCHA Not Blocking: The reCAPTCHA script loads even before marketing consent is given, violating privacy regulations.
  • Invalid Captcha Errors: Users see "invalid captcha" or "grecaptcha is not defined" console errors after accepting cookies.
  • Missing Placeholder Button: The prompt to accept cookies for reCAPTCHA disappears, appears transparent, or doesn't show at all.
  • Form Styling or Functionality Breaks: Using a consent shortcode wrapper can break a form's checkbox functionality or CSS styling.
  • Form Works Without Consent: A form in a site footer or widget might remain active and allow submission before cookies are accepted, leading to data loss.

Why These Issues Happen

These problems typically stem from a few key areas:

  1. Plugin and Theme Conflicts: The interaction between Complianz, your form plugin (e.g., WPForms, Fluent Forms, Forminator), your theme, and other optimization plugins can cause unexpected behavior.
  2. Incorrect Configuration: The Complianz settings for blocking reCAPTCHA must be aligned with your form plugin's integration.
  3. Lack of Native Integration: Complianz has built-in integrations for many popular form plugins. If you are using a less common tool (e.g., Mautic, a custom Brevo form), a native integration may not exist, requiring a manual setup.
  4. Caching: Aggressive caching mechanisms can serve outdated versions of scripts or interfere with the consent state, causing errors on subsequent page loads or form submissions.

Recommended Troubleshooting Steps

Follow these steps to identify and resolve the problem.

1. Verify Complianz Configuration

First, ensure Complianz is configured correctly for reCAPTCHA.

  • Navigate to Complianz -> Integrations -> Services and verify Google reCAPTCHA is enabled.
  • Go to the wizard and find the section on third-party services. Ensure Google reCAPTCHA is listed and activated.
  • In the wizard, confirm the setting "Do you want to block reCAPTCHA before consent?" is set to "Yes".
  • Under Complianz -> Integrations -> Plugins, ensure your specific form plugin (e.g., Gravity Forms, WPForms) is also enabled.

2. Conduct a Conflict Test

Caching and optimization plugins are frequent culprits.

  • Disable Caching: Temporarily deactivate any caching, CSS/JS optimization, or CDN plugins. Clear all server and browser caches, then test if the issue persists.
  • Check for Version Parameters: If you see a ?ver= parameter in the blocked reCAPTCHA script URL, a optimization plugin is likely adding it. Deactivating these plugins can confirm this.
  • Theme and Plugin Conflict: Temporarily switch to a default WordPress theme (like Twenty Twenty-Four) and disable all plugins except Complianz and your form builder. If the problem is resolved, reactivate them one-by-one to find the conflict.

3. Check for Native Integration Support

Not all form tools are automatically supported.

  • Complianz has direct integrations for plugins like Gravity Forms, WPForms, and Forminator. For others like Fluent Forms (with reCAPTCHA v2) or Mautic, native blocking may not work.
  • Solution for Unsupported Forms: For forms without native support, you can often wrap the form HTML in a Complianz consent shortcode or use the Script Center to block the entire form container by its CSS class or ID before consent is given.

4. Address Specific Error Messages

  • "grecaptcha is not defined" / "invalid captcha": This usually indicates the reCAPTCHA script is being blocked but not properly re-initialized after consent is given. This is often a conflict with caching. Disabling caching for the page or using the async and defer attributes in the Script Center can help.
  • Transparent/Missing Placeholder: This is typically a CSS conflict with your theme. Using your browser's inspector tool to examine the placeholder can help identify the CSS rule that is hiding it.
  • Form Breaks in Shortcode Wrapper: Wrapping a complex form in a shortcode can sometimes break its internal JavaScript. For these cases, using the Script Center to block the script directly is often a more reliable method.

Need More Help?

If these steps do not resolve your issue, the wider community can often help. When seeking help, be prepared to share:

  • The specific form plugin and version you are using.
  • <liYour theme name.
  • Any relevant error messages from the browser's JavaScript console.
  • A description of the exact behavior you are seeing.

Related Support Threads Support