Note: While our most popular guides have been translated into Spanish, some guides are only available in English.
Adding Google reCAPTCHA to Form Blocks

To help reduce spam, add Google reCAPTCHA to your Form Blocks. Google reCAPTCHA prompts visitors to check a box to prove that they’re not a robot before they submit the form. In some cases, they’re prompted to complete another task, like identify a string of letters. This method makes it difficult for spambots to complete form submissions.

Note: You need a Google account in order to enable Google reCAPTCHA.

Step 1 - Enable Google reCAPTCHA

Before you can add Google reCAPTCHA to Form Blocks, you need to enable it in Advanced Settings.

  1. In the site Settings panel, click Advanced, and then External Services.
  2. Scroll down to Google reCAPTCHA.
  3. Click the link to get your Google reCAPTCHA API Keys. The link will open in a new tab.
  4. Select reCAPTCHA V2.
  5. Enter your built-in Squarespace domain and all custom domains registered to your site.

Add_Domain.png

  1. Click Register.
  2. Copy your Site key and Secret key and paste them somewhere easily accessible.

SiteKey_SecretKey.png

Note: API keys are sensitive. Keep these keys secure. Treat them like you would treat any password.
  1. Back in the External Services panel, paste your API keys. 

Enter_Keys_Squarespace.png

  1. Click Save.

Step 2 - Add Google reCAPTCHA to your forms

Once you enable Google reCAPTCHA, you’ll see a Captcha tab in the Form Block editor. To add Google reCAPTCHA to your form:

  1. In the Form Block editor, click Captcha, then check Add Google reCAPTCHA.
  2. Customize the theme and alignment using the drop-down menus.
  3. Click Apply.
  4. Repeat these steps for all forms on your site where you want to add a reCAPTCHA.

Add_reCaptcha.png

Here’s how Google reCAPTCHA will look on your form:

newCaptchaAnchor.gif

Changing your domain

Google reCAPTCHA only works with the domains you enter during the registration process. If you change your built-in Squarespace domain or connect a new domain to your site, you’ll need to add it to your API Key settings on Google. It can take up to 30 minutes for domain updates to take effect.

  1. In the Settings panel, click Advanced, and then External Services.
  2. Scroll down to Google reCAPTCHA.
  3. Click the link to get your Google reCAPTCHA API Keys.

The link will open your Google reCAPTCHA API Key settings page in a new tab.

  1. Under Your reCAPTCHA sites, click your site’s domain.
  2. Add your new domain to the Domains list.
  3. Click Save changes.

Troubleshooting

Error message: Invalid domain for site key

If you don’t correctly add your built-in domain during Google reCAPTCHA registration, you’ll see an error that says ERROR for site owner: Invalid domain for site key.

To resolve, add the domain and refresh the page with the Form Block. It can take up to 30 minutes for domain updates to take effect.

Checking Google reCAPTCHA sends visitors to the bottom of the page

On iOS devices, checking the Google reCAPTCHA box sends visitors to the bottom of the page. This is caused by an issue between iOS and Google, and isn't something we're able to resolve. 

Was this article helpful?
2 out of 6 found this helpful
Adding Google reCAPTCHA to Form Blocks