All Collections
🤖 BOTNATION Help: First steps to start a chatbot!
Installing your web chatbot with Google Tag Manager
Installing your web chatbot with Google Tag Manager
An alternative to the Javascript code on your website
Cyprien Barthez avatar
Written by Cyprien Barthez
Updated over a week ago

Your web chatbot is done, it's time to launch it and install it on your website ! In this purpose, you have several choices :

1) Your website is hosted on Wordpress, then we have a dedicated plugin for you

2) Get the JavaScript code delivered by Botnation and paste it on your website. Follow the guide !

3) A Google Tag Manager already exists on your website ? Integrate Botnation's JavaScript to your GTM set up !

Find how to do that in the following article.

Get the JavaScript code

It is generated via Botnation's platform. You can find it in your chatbot, find the how-to here.

Once the JavaScript code retrieved, add it on Google Tag Manager to set your chatbot live on your website.

Install Google Tag Manager on your website

First things first, if it's not already done, install Google Tag Manager on your website. Google explains the procedure.

Create the tag

On Google Tag Manager, create a tag through the "Custom HTML" option then add the Javascript code you previously create.

This code will be inserted on your website to display the chatbot.

Create a trigger

You'll now have to create a trigger on Google Tag Manager to display the chatbot. The best option might be the "visited page tag", but you have several filter options.

On this example, the chatbot is displayed only if the URL contains the keyword


Save your work and publish your set up on Google Tag Manager. Once published, the changes will take a few minutes to appear.


The Google Tag Manager can be really useful if you have a multilingual chatbot. If your website is available in 4 versions, you'll have to create 1 chatbot per language, meaning 4 chatbots. You have the possibility to display the Botnation's chatbot via Google Tag Manager by positioning triggers on targeted languages by using URL containing /fr/ or /en/. It will then be really easy to obtain a different chatbot tag for each language.

Go further :

Did this answer your question?