Live Chat

How to install the chat code

To show Drag Live Chat on your website, add one line of code to your pages. This article covers where to find the code and how to add it on any website, WordPress, Shopify and Google Tag Manager.

Available on: Web app · Desktop app

Find your code

Open your Live chat board's settings, go to the Live chat tab, then Install. (While you set up a new board, this is the Go live step.) Under Add it to your website, choose where your website is built and click Copy.

Any website

Paste the code just before </body> on every page where the chat should appear. If your site uses a shared footer or layout file, paste it there once.

WordPress

  1. Install the free WPCode plugin (Plugins > Add New, search "WPCode").
  2. Go to Code Snippets > Header & Footer.
  3. Paste the code in the Footer box and click Save Changes.

Shopify

  1. Go to Online Store > Themes.
  2. Next to your theme, click ... > Edit code.
  3. Open layout/theme.liquid, paste the code just before </body> and click Save.

Google Tag Manager

  1. Go to Tags > New > Tag Configuration > Custom HTML.
  2. Paste the code.
  3. Under Triggering, choose All Pages. Save, then Submit to publish.

Check that it works

After you add the code, open your website. On the Install tab, the line Waiting for the chat to appear updates by itself as soon as your website loads the chat.

The chat only loads on the website you set for the board, and its subdomains. To use it on another site, change the website in the board's live chat settings first.

Let a developer do it

Click Send it to your developer to open an email with the code and instructions, ready to send. It also includes the optional code to recognise signed-in customers.

Show the chat on your Help Center too

Turn on Also show on your help center on the Install tab to add the same chat to your Drag Help Center portal, with no code. One Live chat board per team can be shown there.

No website?

You can still use live chat with a link instead of code. See How to share your chat link.

Related articles

Built withDrag
Back to Help Center