On your website
Chat on Wix
Add the website chat line to a Wix or Wix Studio site with Custom code, on all pages, at the end of the body.
Wix adds site-wide code from Custom code in your site's settings. The same page serves Wix and Wix Studio sites.
Before you start
- The line, with your key in it. Steps 1 to 4 of Add chat to your website cover it.
- A published site with a connected domain. Wix runs custom code only on those, and connecting a domain needs a paid Wix plan.
- A key for your domain, with and without www, for example
https://example.comandhttps://www.example.com.
Add the line
- In your site's dashboard, go to Settings.
- Under Development & integrations, choose Custom code.
- Choose + Add Custom Code at the top right.
- Paste the line and give it a name, such as Website chat.
- Under Add Code to Pages, choose All pages, and choose to load the code once per visit.
- Under Place Code in, choose Body - end.
- Choose Apply.
If you connect a different domain later, check the line is still listed in Custom code, and create a key for the new domain.
Check it
Wix runs custom code only on the published site, never in the editor. Open the published site in a private window and follow Check it works.