CMS Platforms

Squarespace Installation

Inject UCAPTCHA into your Squarespace site using the Code Injection feature in Advanced settings.

Step 1 — Get your site key

Log in to your UCAPTCHA dashboard, go to My Sites, and copy the site key for your site.

Step 2 — Open Code Injection

  1. Log in to your Squarespace account and open your site's editor
  2. In the left sidebar, go to Settings → Advanced → Code Injection
â„šī¸ Code Injection is available on Squarespace's Business plan and above. It is not available on the Personal plan.

Step 3 — Add the script to the Header

In the Header field, paste the following. Replace YOUR_SITE_KEY with your actual key.

<script
  src="https://www.ucaptcha.site/captcha-widget.js"
  data-site-key="YOUR_SITE_KEY"
  defer>
</script>

Click Save when done.

Step 4 — Verify it's working

Navigate to any page on your Squarespace site that contains a contact form. The UCAPTCHA checkbox should appear automatically inside the form.

💡 Squarespace's built-in Contact Block and Newsletter Block forms are both supported. UCAPTCHA will detect and protect them automatically.

Page-specific installation (optional)

To add UCAPTCHA only to a specific page rather than site-wide, use a Code Block on that page:

  1. Open the page you want to protect in the Squarespace editor
  2. Add a new block and choose Code
  3. Paste the script tag into the code block
  4. Save and publish the page
â„šī¸ When using a Code Block, set the display mode to HTML (not Markdown) in the block settings.