Install the chat widget on your website

Where to paste the Chattiv code on WordPress, Wix, Squarespace, Shopify or a custom site, and how to check it is working.

Every website in Chattiv has its own install code. Find it under Websites: open the website, then the Install tab. It looks like this:

<!-- Chattiv live chat -->
<script src="https://app.chattiv.com/widget.js" data-site="your-site-key" async></script>

Paste it on every page of your site, just before the closing </body> tag. The chat loads after the rest of your page, so it never slows your site down.

Where to paste it

  • WordPress: use the Chattiv plugin instead of code. See Install Chattiv on WordPress.
  • Wix: Settings, Custom Code. Add it to all pages, in the body end.
  • Squarespace: Settings, Advanced, Code Injection, Footer.
  • Shopify: Online Store, Themes, Edit code, theme.liquid, just before </body>.
  • Custom site: add it to your shared footer or layout template so it's on every page.

Check that it's working

Keep the install page in Chattiv open, then open your website in another tab. Within a few seconds Chattiv shows Chat is live on your site. On the website list, the site switches from Not installed yet to Live.

The chat doesn't show up

  • Clear caching. If your site uses a caching plugin or a CDN, clear its cache after adding the code.
  • Check the domain. The widget only loads on the domains listed under Allowed domains on the website's General tab. yourbusiness.com also covers www.yourbusiness.com and any other subdomain. If your site lives on a different domain, add it there. See Website settings.
  • Check the key. If you created a new widget key on the Install tab, the old code stops working. Copy the new code to your site.
  • Blocked visitor. If you blocked a visitor from the inbox, the chat stays hidden for them on purpose.

More than one website

Each website gets its own code, settings, hours and AI choice, and all chats land in the same inbox. Click Add website on the Websites page. Free includes 1 website, Starter 3, and Pro unlimited.

Open the chat from your own button

The widget has a small JavaScript API. Call window.Chattiv.open() from any button or link to open the chat, or add ?chattiv=open to a page address to open it on load.

Related guides

Still stuck?

Use the chat in the corner of this page. Ava answers right away from this help center, and she can bring in a person from our team.

Start free