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 www.google.com/tagmanager
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").
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".