Add Olotalk to Wix

Wix needs the snippet in its site-wide custom code area — not an Embed element, which would trap the chat button inside an iframe.

You’ll need your Assistant ID (ast_oltk_…) from your assistant’s Install step, and a Wix Premium plan (custom code requires a paid plan). New here? Start with the Quick start.


Install via Custom Code

In your Wix dashboard, go to Settings → Custom Code (under Development & integrations) and click + Add Custom Code. Paste the snippet:

<script
  src="https://cdn.jsdelivr.net/npm/@olotalk/assistant-loader@0/dist/loader.iife.js"
  data-olotalk-assistant-id="YOUR_ASSISTANT_ID"
  async
></script>
<html>
<head> … </head>
<body>
… your page …
target<script src="…/loader.iife.js" data-olotalk-assistant-id="…" async></script>
</body>
</html>
Paste the snippet into Wix Custom Code (Body – End). Wherever a platform puts it, the goal is the same: it loads just before the closing body tag.

Set Add Code to Pages to All pages, set Place Code in to Body - end, give it a name, and click Apply.

Don’t use the “Embed HTML” / “Custom Element” assistant from the editor’s Add panel. Those render inside an iframe, so the floating launcher is confined to a small box and can’t overlay your page. Site-wide Custom Code injects into the real page body, which is what you want.


Allow your domain

Add your connected custom domain under your assistant’s Install domains. Wix runs custom code only on a published site with a connected domain — not on the free *.wixsite.com URL — so the custom domain is what to allowlist.


Verify

Publish your Wix site first — custom code doesn’t run in the editor preview. Then open the live site and look for the chat launcher in the bottom-right. Then check your dashboard: the Install step’s Install status card shows Seen on yourdomain.com once the snippet loads — with a one-click fix if the domain isn’t allowed yet. Nothing there? See Troubleshooting.