1 min read

Squarespace technical SEO integration guide

This guide shows you how to add RankAI's technical SEO script to your Squarespace site. The script runs in the background and helps search engines understand your pages better. We'll add it via Code Injection in Squarespace settings.

Where to get your code

In your RankAI project, go to Technical SEO & GEO and click Apply Changes. Select Squarespace as the provider. Copy the script snippet (it includes your project ID). It looks like:

<script src="https://rankai.ai/apply.js" data-rankai-id="YOUR_PROJECT_ID" crossorigin="anonymous" defer></script>

Step 1: Log in to Squarespace

Open your Squarespace account and select the site you want to add the script to.

Step 2: Open Code Injection

Go to SettingsAdvanced Code Injection. You'll see boxes for adding code to the header and footer of your site.

Step 3: Add the script to the Header

In the Header section, paste the full script you copied from RankAI. Paste the entire line from <script to </script>. Don't remove or change any part of it.

Step 4: Save

Click Save. The script will now load on every page of your Squarespace site.

Step 5: Verify the script

In RankAI, go back to Technical SEO and click Check Script Connection. If you see Script detected on your site, the integration is working.

Quick checklist

  • Logged in to Squarespace and opened the correct site
  • Went to Settings → Advanced → Code Injection
  • Pasted the full script into the Header section
  • Clicked Save
  • Checked script connection in RankAI

FAQ

Use the Header section so the script loads in the <head> as intended.

I don't see Code Injection. Where is it?

It's under Settings → Advanced → Code Injection. You need to be in the site's settings, not the page editor.

How do I know if it's working?

Use RankAI's Check Script Connection. You can also open your site, view page source, and search for "rankai" or "apply.js" to see the script in the code.

Back to Squarespace integration