Skip to content

google-tag-manager

Auto Added by WPeMatico

Magento 2: GTM dataLayer undefined on KnockoutJS (checkout) page — sessionStorage data empty, how to track checkout/purchase/payment events reliably?

I’m implementing Google Tag Manager (GTM) enhanced ecommerce tracking on a Magento 2 store and facing critical issues specifically on KnockoutJS-rendered pages (like checkout). Despite all setup being done correctly, the GTM events are not firing, and window.dataLayer shows as… Read More »Magento 2: GTM dataLayer undefined on KnockoutJS (checkout) page — sessionStorage data empty, how to track checkout/purchase/payment events reliably?

Magento 2 js library(Magento_Customer/js/customer-data) how to get custom product attributes in js

I’ve a little problem with an override of google tag manager in Magento 2 enterprise. google-analytics-universals.js have some function that trigger the events: addToCart, removeFromCart. To get the products details in addtocart function google tag manager(google-analytics-universals.js) use: ‘Magento_Customer/js/customer-data’ with the… Read More »Magento 2 js library(Magento_Customer/js/customer-data) how to get custom product attributes in js

How to fix Magento’s built-in session management that conflict with how GTM handles sessions causing session regeneration issue

Anyone have this issue before, I notices even in a freshly installed magento 2.4.4p4 commerce edition this issue occur Let me know if this is the correct page to post this issue or I should post this issue into a… Read More »How to fix Magento’s built-in session management that conflict with how GTM handles sessions causing session regeneration issue