Skip to main content
Wix takes the SmartAlex widget as one script tag. Paste it into Custom Code to show a floating widget on every page, or into an Embed HTML element to show it in one section. Then publish.
In the app: Agent Settings → Widget → Install → Install code. In Wix: Settings → Custom Code.

What do I need first?

  • An active SmartAlex agent, with Show widget on my website switched on under Agent Settings → Widget. See Widgets.
  • Your tenant ID, which the Install code panel fills in for you. A connected AI app can fetch it too.
  • For the site-wide widget, a Wix Premium plan with a connected domain.
The tag is the same for every widget style. The only value you set is data-tenant-id:

How do I add it to every page?

1

Open Custom Code

In your Wix dashboard go to Settings, then Custom Code under Advanced. Click + Add Custom Code.
2

Paste the tag

Paste the script tag into the code box and name it SmartAlex Widget.
3

Set where it loads

Set Add Code to Pages to All pages, load it Once, choose Body - end, and apply it to All visitors.
4

Apply and publish

Click Apply, then Publish from the Editor.
Custom Code needs a Wix Premium plan and a connected domain, so on a free wixsite.com address the tag will not run. Use the Embed HTML element below to test.

How do I add it to one section?

1

Add an Embed HTML element

In the Wix Editor click Add Elements, then Embed Code, then Embed HTML.
2

Paste the tag

Click Enter Code, choose Code mode, not Website address, and paste the tag.
3

Resize and publish

Resize the box and Publish.
Wix renders Embed HTML inside an iframe, so the widget stays inside that box, and a floating widget across the site needs Custom Code. The diagram shows how the widget loads.

Which widget style should I pick?

You choose the style in Agent Settings → Widget, not in Wix. Widget v2 gives voice and chat in one window. Pill, Chat bar, Side panel and Voice pill are the others, and changes show on the next page load with no edit to your site.

How do I check it works?

  1. Open your published Wix site in a normal tab, not the Editor.
  2. Look for the widget in the bottom corner and open it.
  3. Send a message or start a call.
If nothing shows, check you published, you are on a paid plan with a connected domain, and no ad blocker is removing third-party scripts. Also check Show widget on my website is on. More fixes: Installing the widget.

Questions people ask

For site-wide Custom Code, yes. Wix runs Custom Code only on published sites with a Premium plan and a connected domain. On a free address, use the Embed HTML element to test in one section.
Custom Code runs on the live published site, not in the Editor preview. Publish, then open your live address in a normal browser tab.
Wix renders Embed HTML inside an iframe, so the widget is confined to that box. For a floating widget across the whole site, use Custom Code.

Installing the widget

The full install guide and fixes.

Widgets

The five styles, colours and limits.

Squarespace

The same widget on Squarespace.

Automation

Send call and deal events to your own tools.
Last modified on November 27, 2026