GuideSquarespace
Add the chat to your Squarespace site.
One line of code in Squarespace's Code Injection puts a chat button on every page. Messages arrive in MySendbox, where your team or your AI agent answers.
Before you start
- A MySendbox workspace. Sign up if you don't have one.
- A Squarespace plan with code injection. Squarespace lists the Core, Plus and Advanced plans and some older ones: see Squarespace's help on code injection.
- Your site's address, exactly as visitors see it in the browser, such as
https://www.your-site.com.
The chat only shows on the websites you list for it in MySendbox. Without a plan, those websites must be on a domain you've verified in your workspace under Domains. On a plan, you can list any website. See pricing.
This guide is for the chat. Squarespace sends its form emails from its own address, and says they can't be customized, so there's nothing to set up for email.
Create the chat in MySendbox
- In MySendbox, open Chat widget and click Add a chat. Choose who answers it: one of your AI agents, or your team only.
- Under Your website, type your site's address, such as
https://www.your-site.com, and click Add website chat. - Copy the line under Add this to your website, before </body>. It looks like this, with your own chat's ID in it:
Chat code
<script src="https://chat.mysendbox.com/w/chn_….js" async></script>
Don't copy the line above: copy yours from MySendbox, so it has your ID.
Paste it into Squarespace
- In Squarespace, open the Code Injection panel. Squarespace's help on code injection has the link to it.
- Paste the line into the Footer field. Code there is added before
</body>on every page. - Save.
Check that it works
- Open your live site in a new private (incognito) window. A round chat button shows at the bottom right.
- Click it and send a message.
- In MySendbox, open Chats. Your message is there. Answer it, and the answer shows in the chat on your site.
Use a private window: while you're logged in and editing, Squarespace may switch scripts off in its preview. Visitors aren't affected.
If the button doesn't show
- The address isn't on the list. The chat shows only on the websites listed for it, and the address must match exactly.
https://your-site.comandhttps://www.your-site.comare two websites: list the one visitors end up on, or both. In MySendbox, click Edit on the chat and change Websites it may show on (one per line, up to 10). - You're on a preview or test address. The editor's preview and the platform's own test address are different websites from your live one. Check on the live site.
- No plan, and the site isn't on your domain. Without a plan, the chat works only on domains verified in your workspace.
- You just changed it. A change to the chat's settings takes up to 5 minutes to reach your site.
- Checkout pages. Squarespace doesn't run added code on checkout pages, so the chat isn't there.