> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rankai.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Squarespace technical SEO & AEO integration guide

> Squarespace technical SEO & AEO integration guide. Follow the original illustrated setup steps.

This guide shows you how to add RankAI's technical SEO & AEO 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** 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 **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](/integrations/squarespace). Script detection confirms the installation; inspect the affected public pages to verify changes.

***

*Last reviewed: October 13, 2026.*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.