A published Wix site with a connected domain. Wix only runs custom code on a published site with its own domain, which needs a Wix premium plan.
Use it exactly as it is. Don't change the address or download the file: the chat updates itself from there.
You only paste it once. Colours, messages and everything else change from the dashboard and reach your site within about a minute.
Add the code with Custom Code
Go to your site's dashboard in Wix and open Settings.
Under Development & integrations, choose Custom Code.
Choose + Add Custom Code at the top right.
Paste your install code into the box, and name it, for example "Live chat".
Under Add Code to Pages, choose All pages and Load code on each new page.
Under Place Code in, choose Body – end.
Choose Apply.
Custom code doesn't run in the Wix Editor or its preview, so open your published site to see the chat.
The chat on some pages only
In step 5, choose Choose specific pages and tick the pages you want. Or keep All pages and list the pages to skip under Chat Widget › Behavior › Pages without the chat, which you can change later without opening Wix.
If the chat doesn't show on Wix
You're looking at the Editor or a preview. Open the published site at your own domain.
You changed your site's domain. Wix ties custom code to the domain, and removes it when the domain changes. Add the code again.
The code is in Head or Body – start. Edit the snippet and choose Body – end.
Wix blocked the snippet. Wix has added security checks for custom code. If the snippet shows a warning in Custom Code, write to us with your site's address.
Check that it works
Open your site in a private (incognito) window, so you see it the way a visitor does.
Look for the chat button in the bottom corner of the page, then send yourself a test message.
In the dashboard, the message appears in your Inbox as it arrives. Reply, and watch the answer reach the website.
You can also choose check the installation on the Install tab of Administration › Chat Widget: we load your home page and look for your code. No button? Go through when the chat doesn't show.
Set up the rest
The chat is on your Wix site. A few minutes in the dashboard makes it yours: