Analytics Recipe Cookbook - Summaries

 View Only

Google Analytics 4: How to use Enhanced Ecommerce dataLayer of Google Universal Analytics and set up a complete e-commerce GA4 configuration with 6 step

  • 1.  Google Analytics 4: How to use Enhanced Ecommerce dataLayer of Google Universal Analytics and set up a complete e-commerce GA4 configuration with 6 step

    Posted 11-19-2020 03:26 PM

    Introduction:  
    In this guide, I'll explain to you the easiest way how to move from Enhanced E-commerce tracking to Google Analytics 4 e-commerce tracking with Google Tag Manager using the current dataLayer set up.

    This post is inspired by:


    Analysis Overview:
    With this recipe, we are going to set up two/three Google Analytics 4 tags with a custom template variable, 2 triggers, and 7/8 dataLayer variables.

    This is the smartest way to use the current dataLayer settings without other configurations by developers.

    [PS]: GTM Templates have some limits because they use "sandbox JavaScript". With a Custom HTML Tag we can do the same configuration with a single GA4 Tag and a single trigger. But in the future Custom HTML Tag will delete and this is the (current) best way to spread this configuration (with GTM Template Gallery)

    Analysis Benefits:
    • Settings the complete GA4 e-commerce (if you have already a good Google Universal  Analytics Enhanced Ecommerce dataLayer configuration)
    • Very limited numbers of GTM elements to set up GA4 Ecommerce

    Are you ready to take advantage of the power of dataLayer and custom Template in Google Tag Manager?

    Let's go!

    DAA members, view the full recipe here.



    ------------------------------
    Matteo Zambon
    Founder
    Tag Manager Italia
    info@tagmanageritalia.it
    https://www.tagmanageritalia.it
    ------------------------------
    2020 compensation survey now open