Add the chat to Squarespace
Updated
The chat widget is one line of code. Here's where it goes on a Squarespace site, so the chat button appears in the corner of every page.
For more detail, other options and cookie consent, see our guide How to add a custom AI chatbot to your Squarespace website.
1. Copy the code
Open your project and go to Settings. Under Widget integration code, choose Copy snippet. Use the code from your own dashboard: it contains your project's ID.
<script src="https://…/pixe-widget.js" data-project-id="…" data-api="…" async></script>

2. Paste it into Squarespace
Code Injection is included on Squarespace's paid plans above the entry tier.
- Go to Settings → Developer Tools → Code Injection (on older menus, Settings → Advanced → Code Injection).
- Paste the code into the Footer box and choose Save.
Use the site-wide Code Injection, not a Code block, which only adds the chat to one page.
3. Check your domains
The widget only runs on your project's allowed domains, in Settings. Add your squarespace.com address too if you view the site there.
The chat button doesn't appear
- While you're logged in and editing, injected code may not run: open the site in a private window.
- No Code Injection in Settings means your plan doesn't include it.
- Check the code is in the site-wide Footer box, not a page's own Code Injection.
- Check the page's domain is one of the project's allowed domains in Settings.
- Check the widget isn't turned off in Chat → Widget.
- Open the browser's console (right-click, Inspect, Console): the chat leaves a short message there when it doesn't load.