General

How to Install a Chatbot on Your Website with Google Tag Manager

Published on July 10, 2025

How to Install a Chatbot on Your Website with Google Tag Manager

Follow these simple steps to install a chatbot on your website using Google Tag Manager, no developer needed.

Step 1: Create a New Tag

In your GTM workspace, go to Tags and click the New button.

Create a new tag in Google Tag Manager

Step 2: Name the Tag

Give your tag a clear name, like Chatmoat Chatbot, so you can identify it later.

Naming the Chatmoat chatbot tag

Step 3: Choose Tag Configuration

Click Tag Configuration and select Custom HTML as the tag type.

Selecting Custom HTML tag type

Step 4: Copy Your Chatbot Embed Code

From your chatbot provider dashboard, copy the JavaScript embed snippet. If you're doing this from Chatmoat, go to Install Chatbot and then clicke the button "Copy Javascript Embed Code"

Copying the Chatmoat chatbot embed code

Step 5: Paste the Embed Code

Paste the embed code into the HTML field.

Pasting chatbot code into GTM Custom HTML tag

Step 6: Choose a Trigger

Click Triggering to set when the tag should fire.

Choosing a trigger for the chatbot tag

Step 7: Select “All Pages” Trigger

Choose the All Pages page-view trigger so the chatbot appears site-wide.

Selecting the All Pages trigger in GTM

Step 8: Save the Tag

Click Save to keep your new chatbot tag configuration.

Saving the Chatmoat chatbot tag

Step 9: Submit to Google Tag Manager

Back in your GTM workspace, click Submit to create a new container version.

Submitting changes in Google Tag Manager

Step 10: Name the New Version

Give your new GTM version a descriptive name, e.g. Added Chatmoat chatbot.

Naming the new GTM version

Step 11: Publish Your Changes

Click Publish to make your chatbot live on your website.

Step 12: Verify the Installation

Visit your website and confirm that the chatbot loads correctly. You’ve now successfully installed a chatbot on your website using Google Tag Manager!