> For the complete documentation index, see [llms.txt](https://support.referralhero.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.referralhero.com/integrate/platform/squarespace.md).

# SquareSpace

{% hint style="warning" %}
**IMPORTANT**

If your  SquareSpace's theme uses AJAX, you must disable it before you install ReferralHero, otherwise it won't work. You can read the instructions [here](https://support.squarespace.com/hc/en-us/articles/115000253288-Ajax-loading).&#x20;
{% endhint %}

**Step 1**: Login onto your Squarespace account, choose your website and go to the **Settings**.

**Step 2**: From the **Settings menu,** navigate to **Advanced** > **Code Injection**

![](/files/-LuiN82YnIplhrPElMD1)

**Step 3:** Go to your *Campaign Overview> Edit Campaign > Launch instructions* and copy your **Tracking Code**&#x20;

**Step 4**: Paste the ReferralHero Tracking Code in the Header section text area and save your changes.

**Step 5**: Go back go Squarespace dashboard and click Pages.

**Step 6**: Choose the page where you want to install ReferralHero and click **Edit**.&#x20;

**Step 7**: In edit mode, add a content block **Code**.

![](/files/-LuiNVyq05tXWE1Vc4A5)

**Step 8**: In the content area, paste `<div id='referralhero-dashboard-MFxxxxxxxxxx'></div>`

{% hint style="warning" %}
**Important:** Replace `'MFxxxxxxxxxx'` with your actual campaign UUID.
{% endhint %}

**Step 9**: Save your changes and the embeddable widget will appear on the page.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://support.referralhero.com/integrate/platform/squarespace.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
