Skip to content

How to add live chat to your website

Installing GloxChat takes about two minutes on any website. You paste one line of code; this guide shows exactly where on WordPress, Shopify, Wix, Squarespace, Webflow, Google Tag Manager and plain HTML.

Your install code (find it with your own key in Settings → Chat widget):

<script src="https://gloxchat.com/widget/glox.js?w=YOUR_WORKSPACE_KEY" defer></script>

Paste it just before the closing </body> tag, on every page where you want the chat.

Before you start

  1. Create a free account at gloxchat.com/signup.
  2. Add every domain the chat should appear on (for example example.com and www.example.com) under your workspace's allowed websites. For security, the widget only runs on the domains you list.
  3. Copy your install code from Settings → Chat widget.

Plain HTML website

Open each page's HTML file (or the shared footer template) and paste the code just above </body>:

    …your page content…
    <script src="https://gloxchat.com/widget/glox.js?w=YOUR_WORKSPACE_KEY" defer></script>
  </body>
</html>

WordPress

Option A, with a plugin (recommended):

  1. In your WordPress admin go to Plugins → Add New and install a header-and-footer code plugin such as WPCode.
  2. Open the plugin's Header & Footer settings.
  3. Paste the GloxChat code into the Footer box and save.

Option B, in your theme: go to Appearance → Theme File Editor, open footer.php and paste the code just above </body>. Use a child theme, or the code disappears when the theme updates.

Shopify

  1. In Shopify admin go to Online Store → Themes.
  2. Next to your current theme, open the … menu and choose Edit code.
  3. Under Layout, open theme.liquid.
  4. Paste the GloxChat code just above </body> and click Save.

Add your shop domain and your .myshopify.com domain to the allowed websites.

Wix

  1. In your site's dashboard open Settings, then Custom Code (under Advanced).
  2. Click + Add Custom Code and paste the GloxChat code.
  3. Choose All pages, set the place to Body – end, and click Apply.

Custom code on Wix requires a connected domain on a Wix plan that supports it.

Squarespace

  1. Open Settings → Advanced → Code Injection.
  2. Paste the GloxChat code into the Footer box and save.

Code Injection is available on Squarespace plans that support custom code.

Webflow

  1. Open your project's Site settings → Custom code.
  2. Paste the GloxChat code into Footer code and save.
  3. Publish the site. Custom code runs on the published site, not in the Designer.

Google Tag Manager

  1. In your container click Tags → New, and choose Custom HTML.
  2. Paste the GloxChat code.
  3. Set the trigger to All Pages (or the pages you choose), save, then Submit to publish.

Check that it works

  1. Open your website in a private window. The chat bubble appears in the corner after the page loads.
  2. Send a test message. It arrives in the web console and on the GloxChat app for Android or iOS within a second, with a notification.
  3. Reply from the inbox and watch it appear on your site.

Troubleshooting

The chat bubble does not appear on my site

Check that the exact domain the visitor uses (with or without www) is in your workspace's allowed websites, that the code is on the published page, and that your browser shows no ad-blocker warnings. Then reload the page.

Will the live chat slow down my website?

No noticeable effect is expected. The loader is small, loads with defer after your own content, and the chat runs in an isolated frame.

Can I install GloxChat on several websites?

Yes. Add each domain to the allowed websites of the workspace and paste the same code on each site. You can also create separate workspaces if your plan allows more than one.

Do I need a developer to install live chat?

No. If you can paste text into your website builder's footer or custom code setting, you can install GloxChat.

How do I remove the chat from my website?

Delete the line of code from your site, or remove the domain from your allowed websites, and the widget stops loading.

Last updated

Start talking to your visitors today

Create a free workspace, paste one line of code, and you are live.