A lot of TARS bot makers use Google Tag Manager (GTM) to control the way their chatbots behave. For example, some bot makers create different bots for different pages on their site and use GTM to efficiently deploy the bot flows to these pages without increasing the length of their website’s code base. To use GTM however, users must have the service set up first. We created this guide for beginners who do not know how to set up GTM but want to use it on their website.

Step 1

This should go without saying, but in case you haven’t used it before, log in or signup to Google Tag Manager

Step 2

If you are new to tag manager, you can create different accounts within tag manager in case you have multiple websites.

Once you’ve signed in, create an account for each website that you want to use tags on. You will need to give the account a name, a container and a container type. The name can be the name of your business, the container should be your website URL and the container type should be web.

While creating an account within Google Tag Manager, you will be prompted with a pair of code snippets that are required for deployment. Copy these snippets some where on your computer because you’ll need them in a minute.

Step 3

While creating an account within Google Tag Manager, you will be prompted with a pair of code snippets that are required for deployment. 

Add the first code snippet as high as possible in the head tag of your website 

and the second snippet as high as possible in the body tag of your website. 

If you are using a WordPress site, navigate to page Header and Footer in the Settings tab in the menu on the left. You will be able to add the snippets into the head and body tags over here.

With that you have GTM set up and you can start adding tags to your website efficiently. Check out out tutorial on how you can have your bots show up on certain pages of your website and not others.

Did this answer your question?