Google Tag Manager Configuration

Note

This part is only useful if you enabled GTM in the extension’s configuration, see Google Tag Manager.

You’ll need two tags so our extension can work with GTM : Pageviews Tag and Events Tag

_images/Webcooking%20Google%20Universal%20Analytics%20-%20GTM%20Tags%20overview.doc.png

Pageviews Tag

Easiest first, the pageview tag. You just need to create a tag with this configuration :

  1. Tag type : Universal Analytics

  2. ID : Your GUA ID (UA-XXXXXX-X)

  3. Hit Type : Pageview

  4. Enhanced ecommerce checked and “Use data layer” checked. (Optional but recommended. Should match your GA/Magento’s configuration)

  5. Trigger : All pages

_images/gtm_ua.png

Events Tag

For this tag you will need to create data layer variables and a custom event.

Data layer variables are :

  1. eventAction

  2. eventCategory

  3. eventLabel

  4. eventValue

  5. eventNoInteraction

_images/Webcooking%20Google%20Universal%20Analytics%20-%20GTM%20Event%20Tag%20Variables.png

Custom event name is GAevent

_images/Webcooking%20Google%20Universal%20Analytics%20-%20GTM%20Event%20Tag%20GAEvent%20Trigger.png

Once it’s done, you can create your GTM tag with this configuration :

  1. Tag type : Universal Analytics

  2. ID : Your GUA ID (UA-XXXXXX-X)

  3. Category : {{eventCategory}}

  4. Action : {{eventAction}}

  5. Label : {{eventLabel}}

  6. Value : {{eventValue}}

  7. Non-Interaction Hit : {{eventNoInteraction}}

  8. Enhanced ecommerce checked and “Use data layer” checked. (Optional but recommended. Should match your GA/Magento’s configuration)

  9. Trigger : GAevent

_images/gtm_ua_event.png

Note

Don’t forget to save all your modifications and to publish before testing !