Skip to main content

Google reCAPTCHA

Google reCAPTCHA v3 helps protect your website from bots and spam. Follow these steps to create your reCAPTCHA and configure it in your GameCMS dashboard.

Create Google reCAPTCHA v3

  1. Visit the Google reCAPTCHA Admin Console.
  2. Log in with your Google account.
  3. Fill in the registration form:
    • Label: Enter a name to identify your reCAPTCHA (e.g., "My Website Captcha").
    • reCAPTCHA Type: Select reCAPTCHA v3.
    • Domains: Add your website domain (e.g., example.com).
    • Owners: Confirm your email address (or add additional owners if needed).
  4. Accept the Terms of Service.
  5. Click Submit.
  6. Copy your Site Key and Secret Key.

Configure Google reCAPTCHA in GameCMS

  1. Log in to your GameCMS Dashboard.
  2. Go to Integrations > Google > Google Captcha Section.
  3. Paste your:
    • Site Key: Copy from the reCAPTCHA Admin Console.
    • Secret Key: Copy from the reCAPTCHA Admin Console.
  4. Click Enabled to enable the reCAPTCHA on your website.
  5. Click Save to apply the settings.

Custom Themes and Google reCAPTCHA

By default, custom themes do not support Google reCAPTCHA out of the box. However, as a CMS platform, we strive to make it simple and accessible for everyone to create a website. To that end, we've made integrating Google reCAPTCHA into custom themes easy and straightforward.

Adding Google reCAPTCHA to Custom Themes

To enable Google reCAPTCHA in your custom theme, include the following code in the <head> tag of your base.html file:

{% if setting.integration.google.captcha_enabled and setting.integration.google.captcha_site_key != "" %}
<script src="https://www.google.com/recaptcha/api.js?render={{ setting.integration.google.captcha_site_key }}"
async defer></script>
<script>
const googleReCaptchaSiteKey = '{{ setting.integration.google.captcha_site_key }}'
</script>
{% endif %}

Quick Video Tutorial

For a visual guide, please watch our quick video on how to set up Google ReCaptcha Integration: