⚠ Support will be limited on 23th and 24th September 2021 due to our annual seminar.
Thanks for your understanding.


Learn more

Configure Google Tag Manager for the Google Analytics connector

If you are using Google Tag Manager to integrate our tag and the one of Google Analytics then you will have to configure it so that Google Analytics takes the events triggered by iAdvize into account.

1. Configuration of the connector from iAdvize

You must first configure the Google Analytics connector to make it compatible with your use of Google Tag Manager.
From the connector page, select "Google Tag Manager" from the drop-down menu

GTM-Google-AnalyticsEN.png

 

Then indicate the name of the Google Tag Manager container used on your site. By default, the value is "dataLayer" unless you have customized this value during your integration of Google Tag Manager. You will find the name of the container in the Google Tag Manager code that you have integrated on your site (in green below): 

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXXX');</script>
<!-- End Google Tag Manager -->


Then configure Google Tag Manager so that iAdvize events are taken into account by your Google Analytics. 

The configuration we propose below works on a classic Google Tag Manager environment but can be adapted to your needs.

2. Create a trigger

  • Go to the "Triggers" sub-menu
  • Click on "New"

GTM-Google-AnalyticsFR01.png

  • Choose "Evénement personnalisé"

GTM-Google-AnalyticsFR02.png

  • (1) Name of the event "iAdvize"
  • (2) Click on the checkbox "Utilisez la correspondance avec expression régulière"
  • (3) Click on "Save" (name the trigger "iAdvize")

GTM-Google-AnalyticsFR03.png

3. Create variables

  • Go to the "Variables" sub-menu
  • Click on "New"

GTM-Google-Analytics-varFR04.png

  • Click on "Variable de couche de données"

GTM-Google-Analytics-varFR05.png

  • (1) Put "category" in "Nom de la variable de couche de données"
  • (2) Click on "Save"

GTM-Google-Analytics-varFR06.png

  • Name it "iAdvize Category"

GTM-Google-Analytics-varFR07.png

  • Redo the operation for the "action" data layer variable with the name "iAdvize Action".
  • Redo the operation for the "label" data layer variable with the name "iAdvize Label".

En fin d'étape, vous devriez obtenir ceci : 

GTM-Google-Analytics-varFR08.png

4. Create a tag

  • Go to the "Tags" submenu
  • Click on "New"

GTM-Google-Analytics-baliseFR09.png

  • Select a tag type (The tag type depends on the version used by the client - cf. Document Google).
  • In the example: "Google Analytics : Universal Analytics"

GTM-Google-Analytics-baliseFR10.png

  • (1) In "Type de suivi" choose "Evènement"
  • (2) In "Catégorie" click on the button on the right and choose "iAdvize Category" in the list
  • (3) In "Action" click on the button on the right and choose "iAdvize Action" in the list
  • (4) In "Libellé" click on the button on the right and choose "iAdvize Label" in the list

GTM-Google-Analytics-baliseFR11.png


You should get this: 

GTM-Google-Analytics-baliseFR11.1.png

  • In "Paramètres Google Analytics" select the variable Paramètres

GTM-Google-Analytics-baliseFR12.png


You should get this: 

GTM-Google-Analytics-baliseFR12.1.png

  • Click on "Save"
  • Click on the button in "Triggers"

GTM-Google-Analytics-baliseFR13.png

  • Select the box with the name "iAdvize" and the type "Custom Event"

GTM-Google-Analytics-baliseFR14.png

  • Name the tag "iAdvize"
  • Click on "Save"

At the end of the step, you should get this: 

GTM-Google-Analytics-baliseFR15.png

Also read: Monitor the iAdvize performances with Google Analytics