Where to get your code
In your RankAI project, go to Technical SEO and click Apply Changes. Select Squarespace as the provider. Copy the script snippet (it includes your project ID). It looks like: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 Settings → Advanced → 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
Should the script go in Header or Footer?
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.Related setup
For article publishing, use the original CMS integration guide. Script detection confirms the installation; inspect the affected public pages to verify changes.Last reviewed: October 13, 2026.