Magento 2 Google Analytics 4 Enhanced Ecommerce tracking using Google Tag Manager

Standard

Magento 2 Google Analytics 4 Enhanced Ecommerce tracking with Google Tag Manager

Recently once of client ask me to implement Magento 2 GA4 Enhanced eCommerce tracking using Google Tag Manager with Data layer on Magento 2 or using Exiting data layer which is used for Enhanced eCommerce tracking.

Google Analytics 4 (GA4) on Magento 2

Implement Google Analytics 4 (GA4) on Magento 2 using Google Tag Manager

Magento 2 Google Analytics 4 Enhanced Ecommerce tracking Data Layer using Google Tag Manager 

Paste this code as high in the <head> of the page as possible:

<!– 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-XXXX’);</script>
<!– End Google Tag Manager –>

Additionally, paste this code immediately after the opening <body> tag:
<!– Google Tag Manager (noscript) –>
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-XXXX”
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<!– End Google Tag Manager (noscript) –>

Note: Make you will replace GTM Tracking Code with your GTM ID XXXXX

Magento 2 Google Analytics 4 Enhanced Ecommerce Events for view_item_list: To Track when user visitor visits to category pages product listed on the Page for Magento 2 Google Analytics 4 Enhanced Ecommerce tracking using Google Tag Manager

Google Analytics 4 (GA4) on Magento 2

Implement Google Analytics 4 (GA4) on Magento 2 with Google Tag Manager (GTM)

Magento 2 Google Analytics 4 Enhanced Ecommerce Events for select_item: To Track when user click on list of product listed on the category Pages or List on Home page and related Page using Magento 2 Google Analytics 4 Enhanced Ecommerce tracking using Google Tag Manager

Add Google Analytics 4 (GA4) With Magento 2

Enhanced Ecommerce tracking Magento 2 Google Analytics 4 for Google Tag Manager

Magento 2 Google Analytics 4 Enhanced Ecommerce Events for view_item: To Track when user visit a product details page using Magento 2 Google Analytics 4 Enhanced Ecommerce tracking using Google Tag Manager

Setup Magento 2 GA4

Setup Magento 2 GA4 (Google Analytics 4) with Google Tag Manager

Magento 2 Google Analytics 4 Enhanced Ecommerce Events for add_to_cart: To Track when user visit a product details page then added a product on cart Clicking on AddtoCart using Magento 2 Google Analytics 4 Enhanced Ecommerce tracking using Google Tag Manager

Magento 2 Google Tag Manager

Implement Google Analytics 4 (GA4) on Magento 2 using Google Tag Manager

Magento 2 Google Analytics 4 Enhanced Ecommerce tracking Events for add_to_wishlist: To Track when Add a product into Add to Wishlist using Magento 2 Google Analytics 4 Enhanced Ecommerce tracking using Google Tag Manager

GA4 for Magento 2 Enhanced E-commerce Tracking for GA4

Magento 2 Google Tag Manager Enhanced E-commerce Tracking for GA4

Magento 2 Google Analytics 4 Enhanced Ecommerce Events for view_cart: To Track when user visit View Cart using GA4 Enhanced Ecommerce Tracking for Magento 2 Google Analytics 4 Enhanced Ecommerce tracking using Google Tag Manager

 GA4 Enhanced E-commerce Tracking for Magento 2

Google Tag Manager GA4 Enhanced E-commerce Tracking for Magento 2

Magento 2 Google Analytics 4 Enhanced Ecommerce Events for begin_checkout: To Track when user start Payment Process to begin_checkout using Magento 2 Google Analytics 4 Enhanced Ecommerce tracking using Google Tag Manager

Integrate Google Analytics 4 Magento

Setup Magento 2 GA4 Enhanced Ecommerce tracking using Google Tag Manager

Magento 2 Google Analytics 4 Enhanced Ecommerce Events for add_shipping_info: To Track when user entered to selected a Shipping Method using Magento 2 Google Analytics 4 Enhanced Ecommerce tracking using Google Tag Manager

Implement Google Analytics 4 on Magento 2

Implement Google Analytics 4 on Magento 2 Enhanced Ecommerce tracking using Google Tag Manager

Magento 2 Google Analytics 4 Enhanced Ecommerce for add_payment_info: To Track when user Visitor to selected a Payment Method using Magento 2 Google Analytics 4 Enhanced Ecommerce tracking using Google Tag Manager

Google Analytics 4 (GA4) on Magento 2

Implement Google Analytics 4 (GA4) on Magento 2 Enhanced Ecommerce tracking using Google Tag Manager

Magento 2 Google Analytics 4 Enhanced Ecommerce for purchase: To Track when user completed purchase using GA4 Enhanced Ecommerce Tracking for Magento 2 Google Analytics 4 Enhanced Ecommerce tracking using Google Tag Manager

 Google Analytics 4 for Magento2

Setup Magento 2 GA4 (Google Analytics 4) with Google Tag Manager

Warning: If you do n’t know about javascript or do n’t have developing knowledge then do n’t try to Magento 2 Google Analytics 4 Enhanced Ecommerce tracking using Google Tag Manager that can broke your site, Cart and other functionality 

Disclaimer: Google tag manager belongs to Google property 

For Contact: mappchero@gmail.com

I am available for Hire on Freelancer: Freelancer.com

I am available for Hire on Upwork: Upwork.com

I am available for Hire on Peopleperhour: Peopleperhour.com

I am available for Hire on Guru: Guru.com

Leave a Reply

Your email address will not be published. Required fields are marked *