Add the ZapClaw chat widget to a Squarespace site
In short: on Squarespace you paste the widget snippet in the footer field of Code Injection, in the developer tools of your site. Code Injection is part of the higher Squarespace plans, so check yours first.
What you need
- A Squarespace plan that includes Code Injection. Squarespace lists it on its Business plan and above; if the option is missing, your plan does not include it.
- Access to the site settings (the site owner or an administrator).
- The widget snippet from the Agents section of the ZapClaw dashboard.
- Copy the exact snippet of your widget from the Agents area of the dashboard. The id above is a placeholder: yours is different.
- Allowed websites. In the dashboard, add your site's address to the widget's allowed websites, exactly as visitors see it.
https://www.example.comandhttps://example.comare two different addresses. A site that is not on the list shows no bubble.
<script async src="https://chat.zapclaw.app/loader.js" data-widget-id="YOUR_WIDGET_ID"></script>
Platforms rename their menus from time to time. If a label below differs on your screen, search the platform's settings for the name in quotes.
Add the snippet in Squarespace
- In the ZapClaw dashboard, open your widget in Agents and copy the snippet with the copy button.
- In Squarespace, open Settings, then Developer Tools, then Code Injection. On some versions it sits under Advanced.
- Paste the snippet in the Footer field.
- Click Save.
Injected code does not always run while you are logged in to the editor. Check the result on the live site in a private window.
Check that it works
Open your live site in a private window and look for the bubble in the corner you chose. No bubble? Check that the agent is published, the widget is active, your address is in the allowed websites, and that no content blocker or Content Security Policy is stopping it.
If your site has a Content Security Policy
Most sites need nothing here. A site with a strict Content Security Policy adds two entries to its policy, and nothing else:
script-src https://chat.zapclaw.app frame-src https://chat.zapclaw.app
Only if your policy also restricts connect-src (or has no connect-src but restricts default-src), add connect-src https://chat.zapclaw.app too. The loader reads the look of your bubble from there before drawing it.
No style-src entry is needed: the loader sets its styles through the browser's style API, never an inline style tag.
Anonymous mode
On this platform the widget runs anonymous. It answers from the knowledge bases you marked public, collects a contact and hands the case to a person. What anonymous mode means.
A sentence for your privacy policy
The widget handles what your visitors type, on your behalf, so your privacy policy should say so. You can adapt this sentence:
The chat assistant on this website is provided by ZapClaw, which processes the messages visitors type into it on our behalf, as our processor. The chat sets no cookies on this website, and conversations are kept for 90 days.
Other install guides
- Overview, with the Content Security Policy lines and the privacy sentence.
- WordPress, for a site you host yourself.
- WordPress.com, on the plans that allow plugins.
- Google Tag Manager, with a Custom HTML tag.
- Wix, with Custom Code on a paid plan.
- Shopify, in the theme code or an app embed.
- Webflow, in the custom code of the site settings.
Put your agent on your website
Build and publish your agent in the dashboard, then paste the snippet.
About ZapClaw Agents