How to Add Live Chat to Your Website (WordPress, Wix, Squarespace, Shopify and More)

Adding live chat to a website sounds technical, but on almost every platform it comes down to the same three steps: copy a line of code, paste it into one place, and check that the bubble appears.

This guide walks through the common website builders, then shows you how to test the install and what to do if the bubble does not show up.

Before you start

You need two things:

  1. A chat account. Sign up with a live chat provider and add your website to it. With Chattiv you can start free, add your website's address, and you will be shown your install code.
  2. Access to your website's settings. That means your WordPress admin, your Wix or Squarespace dashboard, your Shopify admin, or the files of a hand-built site.

Your install code will look something like this (yours will have your own site key):

<script src="https://app.chattiv.com/widget.js" data-site="YOUR-SITE-KEY" async></script>

The async part matters: it tells the browser to finish loading your page first, so the chat never holds your site up.

WordPress

There are two easy ways:

  • With a plugin (easiest). Install a plugin that adds code to your site's header and footer, such as WPCode. Open its settings, paste your chat code into the footer box, and save.
  • In your theme. If you use a child theme, you can paste the code just before </body> in its footer template. Avoid editing a parent theme directly, because the next theme update will erase your change.

If you use a caching plugin, clear the cache after saving.

Wix

Wix lets you add code through Settings, then Custom Code (in the advanced section). Add new code, paste your chat script, choose to load it on all pages, and place it in the body (end). Custom code is available on Wix plans with a connected domain.

Squarespace

Squarespace calls this Code Injection. You will find it in your site settings (under the advanced or developer tools section, depending on your version). Paste the chat code into the Footer box and save. Code Injection is only available on Squarespace plans that include it, so check your plan if you do not see the option.

Shopify

In your Shopify admin, go to Online Store, Themes, then choose Edit code on your live theme. Open theme.liquid, find the closing </body> tag near the bottom, paste your chat code just above it, and save.

Webflow

Open your Site settings, go to the Custom code tab, paste the chat code into the Footer code box, save, and publish your site. Custom code requires a paid Webflow site plan.

A hand-built or HTML site

Paste the code just before the closing </body> tag on every page. If your site uses a shared footer file (common with PHP sites), paste it once in that file and it will appear everywhere.

Check that it works

  1. Open your website in a private or incognito window (this avoids old cached copies).
  2. Look for the chat bubble in the corner. Give it a second, since it loads after the page.
  3. Send yourself a test message.
  4. Check that it arrives in your inbox and that your phone gets a notification.
  5. Reply, and confirm the reply shows up in the website chat window.

Chattiv also detects the install for you: once the widget loads on your site, the install screen in your dashboard confirms it.

If the bubble does not appear

Work through these in order:

  • Clear caches. Clear your site's cache, any caching plugin or CDN, and your browser's cache.
  • Check where you pasted it. It should be in a footer or body-end area that loads on every page, not inside a single page's text block.
  • Check your plan. Some builders only allow custom code on paid plans.
  • Check the domain. Chat tools usually only run on the domains you registered, so the widget cannot be copied onto someone else's site. If you use both www and non-www, or a staging address, make sure the one you are testing is on your list.
  • Look for script blockers. Some privacy extensions block chat widgets. Test in a clean browser window.

After it is installed

Installing the widget is only the start. A few small things make a big difference:

If you are still deciding whether chat is worth it, start with what live chat is and who it helps.

Frequently asked questions

Do I need a developer to add live chat?

Usually not. Most chat tools give you one short line of code, and every major website builder has a place to paste it. If you can edit your site's settings, you can install chat in a few minutes.

Where should the chat code go?

Just before the closing body tag, or in your builder's footer code area. That way it loads after the rest of the page and does not slow the page down.

Why is my chat bubble not showing up?

The most common reasons are a cached page, code pasted into the wrong area, a plan on your website builder that does not allow custom code, or the domain not being on the chat tool's allowed list.

Try Chattiv free

Live chat for your website and a team inbox on your phone, with Ava, an optional AI assistant that always says she is AI and hands off to you. Free plan, no card.

Start free

More from the blog