← Blog

Guides 7 min read

How to add live chat to a Wix website: Custom Code steps, the cookie setting and when Wix's own chat is enough (2026)

Paste the chat snippet under Settings → Custom Code, choose All pages and Body – end, set the Code Type and test on the live site. Plus the plan Wix requires, when Wix Smart Chat is enough and how to fix a chat that doesn't show.

Shopxare Team

Cover: title "How to add live chat to a Wix website" next to the Shopxare Messenger answering an order question

Short answer: in your Wix dashboard, go to Settings → Development & integrations → Custom Code, click + Add Custom Code, paste your chat snippet, choose All pages, place it in Body – end and click Apply. This only works on a published site with a connected domain, which on Wix means a paid site plan. If you only need to answer visitors yourself from the Wix app, Wix's own Smart Chat may already be enough.

Below: what Wix requires first, how to choose between Wix's chat and an outside tool, the exact steps (including the cookie setting most install guides skip), how to connect Wix Stores orders, and fixes for the usual problems. Menu names are taken from Wix's English dashboard and help center as of November 2026.

Before you start: what Wix requires

Wix runs custom scripts only on sites that are published and have a connected domain (Wix Help Center: Embedding custom code). To connect your own domain you need a Premium or Studio plan (Wix: purchasing a domain vs. a site plan).

Your site Can you add an outside chat with Custom Code?
Free Wix site on a wixsite.com address No. Use a chat app from the Wix App Market instead
Paid plan, domain connected, site published Yes
Paid plan, domain not connected yet Not yet. Connect the domain first

Two more things from Wix's help article. If you later switch the site to a different domain, your code snippets are removed and you add them again. And since December 2025, Wix's new front-end security measures block some snippets that used to work until the provider updates them.

Wix Smart Chat or an outside chat tool?

The older Wix Chat can no longer be installed on new sites. Wix Smart Chat replaces it: manual chat is free, and the AI answers run on a conversation quota, with larger quotas on upgraded plans (Wix: moving from Wix Chat to Smart Chat, checked November 2026). You reply from the Wix Inbox.

Stay with Wix Smart Chat if:

  • one or two of you answer from the Wix dashboard or the Wix app;
  • the website chat is the only channel you need;
  • you're on a free Wix plan, where outside scripts won't run anyway.

An outside tool is worth the setup if:

  • several people answer and you want automatic assignment, office hours and reply targets;
  • your support email, Telegram or marketplace messages should land in the same inbox as the chat;
  • you run more than one website, or might leave Wix one day and want to keep your conversation history;
  • you want an AI agent that answers from your help center and documents and hands over to a person by rules you set.

Step by step: add the chat with Custom Code

The example uses the Shopxare Messenger. The steps are the same for any chat tool that gives you a <script> snippet.

1. Copy your chat snippet

In Shopxare, open Settings → Messenger → Install, choose HTML and click Copy. The snippet already contains your App ID (install guide):

<script>
  window.Shopxare = window.Shopxare || function () { (Shopxare.q = Shopxare.q || []).push(arguments) };
  Shopxare('boot', { app_id: 'YOUR_APP_ID' });
</script>
<script async src="https://app.shopxare.com/widget/v1/loader.js"></script>

2. Open Custom Code in Wix

In the Wix dashboard, open Settings. Under Development & integrations, click Custom Code, then + Add Custom Code at the top right.

3. Paste it and give it a name

Paste the snippet and name it so you'll recognise it in a year, for example Live chat - Shopxare.

4. Choose the pages

Under Add Code to Pages, choose All pages. Wix then lets you load the code once per visit or on each new page. Pick once per visit: the chat only needs to start once. If you want the chat only on some pages (say, the shop and the FAQ, not the blog), choose Choose specific pages and select them.

5. Place it at Body – end

Under Place Code in, choose Body – end. That is the Wix version of "just before </body>" in the install guide. Wix itself suggests the head for tracking and verification codes and the body for functional scripts.

6. Set the Code Type

This is the step most guides leave out. Open the Code Type tab. Wix treats custom code as Essential by default, which means it loads before the visitor responds to your cookie banner and can't be switched off. The other choices are Marketing, Analytic and Functional, and Wix says picking the right one is your responsibility (Wix: categorizing your custom code).

A support chat is a functional feature. If your cookie banner should control it, choose Functional. The trade-off: visitors who decline won't see the chat, so keep your support email or contact page in the footer. Whether chat needs consent in the countries you sell to belongs in your privacy policy. Our live chat and GDPR checklist covers the EU side.

7. Apply, then test the live site

Click Apply. Open your published site (not the editor preview) in a private browser window, open the chat and send a test message. It should reach your Shopxare inbox within a second. Then check a product page and the cart on your phone, where a chat button can cover a "Buy" button.

If your shop already manages tags in Google Tag Manager, note that Wix connects GTM through its marketing integrations, not through Custom Code. In that case you can add the chat as a tag in GTM instead; our Google Tag Manager guide has the steps. Don't do both, or you'll get two chat buttons.

Connect your Wix Stores orders

If you sell with Wix Stores, the chat becomes much more useful once it can see orders. In Shopxare, go to Settings → Stores & marketplaces → Connect a store, pick Wix and paste the keys the window asks for (Stores and orders). After that:

  • your team sees the customer's orders next to the conversation and can send an order card with status, items and tracking;
  • visitors can track an order from the Messenger home with the order number and the email or phone they ordered with;
  • Are AI can answer "Where is my order?" from live order data, once you switch that on in the store's options.

The connection only reads data, and the keys are stored encrypted.

Example: a two-person ceramics shop

A small studio sells handmade mugs on Wix Stores. For two years the owner answered Wix Chat from her phone. In December her partner starts helping, order questions also arrive by email, and they keep missing each other's replies. They add the Shopxare Messenger with Custom Code (Body – end, Functional), forward the shop's email address into the same inbox and connect the store.

At 21:30 on a Tuesday, a visitor writes:

Visitor: Will order 1093 reach Leeds before the 20th? It's a present.

Are AI: Order 1093 left the studio on Monday with Royal Mail, and tracking shows delivery on Thursday 17 December. Here's the tracking link: [link]. If it hasn't arrived by Friday, reply here and the team will check with Royal Mail.

The next morning, neither of them has to look anything up.

When the chat doesn't show up

What you see Likely cause Fix
No chat on the live site Domain not connected, or site not published Connect the domain, publish, reload
Snippet is in the list but nothing loads Blocked by Wix's security update (since December 2025) Ask the chat provider whether their snippet works on Wix today
Chat appears only after "Accept" Code Type is Functional and the visitor declined Expected behaviour; keep a contact link in the footer
Two chat buttons Wix Smart Chat or a GTM tag is still active Keep one, remove the other
Snippet is gone The site moved to a different domain Add it again
Nothing in the editor preview You're looking at the preview Test the published address

Try it on your Wix site

Shopxare's free plan includes the Messenger, 2 seats, unlimited conversations and Are AI with 50 AI resolutions a month, with no credit card (pricing). On the free plan the Messenger shows Shopxare branding; removing it is part of the Business plan. If you'd like to compare free chat plans first, our free tawk.to alternatives comparison puts them side by side.

FAQ

Can I add live chat to a free Wix site?

Not an outside chat through Custom Code. Wix runs custom code only on published sites with a connected domain, and connecting a domain needs a paid site plan. On a free site, use Wix Smart Chat or another app from the Wix App Market.

Is Wix chat free?

According to Wix, manual chat in Wix Smart Chat is free. AI answers use a conversation quota: there is a free allowance, and upgraded plans include more (as of November 2026).

Where do I paste the live chat code in Wix?

In the dashboard under Settings → Development & integrations → Custom Code → + Add Custom Code. Choose All pages and place it in Body – end.

Why is my chat widget not showing on Wix?

Usually the domain isn't connected, the site isn't published, the visitor declined cookies (if the Code Type is Functional), or Wix's security update blocks the snippet. Test on the published site in a private window.

Can I show the chat only on some Wix pages?

Yes. In the Custom Code settings, choose Choose specific pages instead of All pages and select the pages where the chat should appear.

#wix#live chat#custom code#cookie consent#installation#wix stores

Give every customer a fast, friendly answer.

Free to start. No credit card needed.