Squarespace's Code Injection panel has a footer field that goes before </body> on every page. Paste the Dinghy tag there and save.
Get your tag
It's in the Dinghy operator app, under Settings > Install:
<script src="https://chat.example.com/widget/loader.js" data-key="wk_your_public_key" async></script>
Add your site to Allowed sites
In Dinghy, open Settings > Install and add your domain under Allowed sites, like https://www.example.com. If people also visit your built-in squarespace.com address, add https://your-site.squarespace.com too.
Paste the tag
- In Squarespace, open the Pages panel, then Website tools, then Code injection.
- Paste the tag in the Footer field.
- Click Save.
Squarespace includes Code Injection on Core, Plus and Advanced and some older billing plans. If you don't see the panel, your plan doesn't have it.
Check that it works
Open your live site in a private window, click the chat button and send a test message. It shows up in your Dinghy inbox.
Squarespace can turn off scripts in the editor preview, and it shows a banner when it does. That only changes what you see while logged in. Visitors still get the chat.
No button? Open the browser's developer console. If loader.js failed, the address in the tag is wrong or a Content Security Policy blocks it. If the button shows but every message says "Not sent", add the exact address you're on to Allowed sites, www included. Troubleshooting has more.
Things to know
- The chat won't show on checkout pages. Squarespace doesn't allow code there.
- Squarespace support won't help with custom code. If something looks off, ask us at
hello@dinghy.chat.
Next
- Change colors, the chat button and the words in Settings > Appearance. No code. The tag's
data-primaryanddata-accentwin over the setting. See Add the chat to your site. - To open the chat from your own button, use
data-launcher="hidden"andDinghy.open(). See Control it from your page.