Install the iAdvize main tag with Google Tag Manager

Google Tag Manager allows you to set up and deploy tags from third-party products. So you no longer need to add iAdvize tags directly to your website. You can configure them, specify their triggering mode and publish them from the Tag Manager user interface.

1. Create a Google Tag Manager account and a container

To do this, log into your Google account.

Then go to the following url

Then create a Tag Manager account.

Click on the tab "Account" then on "Create an account".

Accept the terms of use of Google Tag Manager.




Click on the "Admin" tab

Enter your company name in the corresponding field, as well as the type of application you wish to track (web or mobile).




The Google Tag Manager tag to be implemented in your code is generated automatically. 


Copy it and paste it on all the pages of your site, positioning it as high as possible in the header :

  • Insert the <script> code snippet into the <head> element of your web page's HTML code, preferably as close to the <head> tag as possible, but below the dataLayer declarations.
  • Insert the <noscript> code snippet just after the <body> tag in your HTML code.



You can install the container now, or clear the contents of the dialog box by clicking OK and resume the installation later.

To do this, once you are logged into your Google Tag Manager account, click on "Workspace". 

At the top of the window, look for the ID of your container. It is in the form "GTM-XXXXX".


Click on the ID of your container to launch the Tag Manager installation window

2. Install the main iAdvize tag in the container

Go to "Workspace".

Click on "Add a new tag".




Indicate the name of the tag, then select "custom html" or "custom HTML tag" as type, then copy and paste the main iAdvize tag:

You will find the different iAdvize tags (main, custom data and transaction) in the administration of our solution in the integration section (accessible from your avatar, then "Projects"). 


NB : Make sure you activate the consent toggle. The iAdvize teams assume that the useExplicitCookieConsent variable is activated and configured by default with the value "true". This is a legal requirement in Europe.




NB : In order to guarantee the persistence of the conversation, we strongly advise you to integrate the main tag on all the pages of your site. It is then your targeting strategy that will define precisely which pages are able to display the chat. 


Opt for the triggering rule on all the pages of your site. 

To do this, select "All Pages".




3. Put the main iAdvize tag into production with GTM

Go to "Workspace".

Click on "Submit".




Then click on "Publish".