Squarespace

Add chatbot embed code to Squarespace

Install the widget through Squarespace Code Injection so it loads before the closing body tag.

Squarespace

Before you start

Best for

Brand sites, creator sites, restaurants, services, ecommerce catalogs, booking pages, and portfolio websites.

Install location

Use Settings, Advanced, Code Injection, Footer for all normal site pages.

Squarespace snippet
<script
  src="https://your-domain.com/widget.js"
  data-workspace-id="WORKSPACE_ID"
  data-chatbot-id="CHATBOT_ID"
  defer
></script>

Install

Install steps

  1. 1Copy the widget snippetOpen the chatbot Embed page and copy the generated script.
  2. 2Open Code InjectionIn Squarespace, open the Code Injection panel from the site settings area.
  3. 3Paste in FooterPaste the complete script in the Footer field so it is injected before the closing body tag.
  4. 4Save and testSave the code injection change, open the public site, and confirm the widget launcher appears.

Access

Domains

Add the custom Squarespace domain.
Add the built in Squarespace domain only when testing from that public URL.
Remove old test domains after launch to keep access narrow.

Verify

Verify

Code Injection availability depends on the Squarespace plan.
Checkout pages and some special pages may not run normal site code.
If Ajax loading affects the widget after navigation, refresh the live page and retest from the first page a visitor lands on.
Next doc

Add chatbot embed code to Framer

Add the widget script in Framer custom code settings and run it on the pages where visitors need chat.

Open