Skip to main content
Squarespace takes the SmartAlex widget as one script tag. Paste it into Code Injection for every page, or into a Code block for one page. The widget reads its style, colours and agent from SmartAlex, so you paste once and restyle later without touching Squarespace.
In the app: Agent Settings → Widget → Install → Install code. In Squarespace: Settings → Advanced → Code Injection → Footer.
Code Injection and Code blocks are on Squarespace Business and Commerce plans, in versions 7.0 and 7.1, and the Personal plan has no custom code.
The diagram shows how the widget loads.

What do I do first?

1

Check your plan

Open Settings in Squarespace, and if Code Injection is missing from the Advanced menu, you are on Personal and need to upgrade.
2

Copy the Install code

In SmartAlex open Agent Settings → Widget → Install → Install code and press Copy, and your data-tenant-id is filled in.
3

Turn the widget on

Switch on Show widget on my website under Agent Settings → Widget.
The tag is the same for every style:

How do I add it to every page?

1

Open Code Injection

Go to Settings → Advanced → Code Injection.
2

Paste into the Footer

Paste the tag into the Footer box, not Header.
3

Save and view live

Click Save, then open your real address in a normal tab, because injected code does not run in the editor preview.

How do I add it to one page?

1

Add a Code block

Edit the page, click an insert point and add a Code block.
2

Paste the tag

Paste the tag, leave the block on HTML, and turn Display Source off so the code runs.
3

Save and view live

Code blocks do not run scripts in the editor preview, so save and then open the published page.

Which widget style should I pick?

You choose the style in Agent Settings → Widget, not in Squarespace. Widget v2 gives voice and chat in one window, and Pill, Chat bar, Side panel and Voice pill are the others. The tag stays the same, and changes show on the next page load. See Widgets.

Why is the widget not showing?

  • Check you are on a Business or Commerce plan.
  • Check YOUR_TENANT_ID was replaced with your real tenant ID, then hard refresh.
  • Check Show widget on my website is on, and that your site is in Allowed websites if you set that list.
  • Check the tag is in one place only.
More fixes: Installing the widget.

Questions people ask

Code Injection and Code blocks are on the Business and Commerce plans. The Personal plan has no custom code, so the widget does not load there.
The tag is in two places, so keep it in Code Injection Footer or in a Code block, not both.
Squarespace runs injected code and Code blocks only on the published site, so open your real address in a normal browser tab.

Installing the widget

The full install guide and fixes.

Widgets

The five styles, colours and limits.

Wix

The same widget on Wix.

MCP overview

Run your account from an AI app.
Last modified on November 27, 2026