-
Understanding the Functionality of the ecommerce Property in GTM Events
So, we’ve got these two tracking methods right now in GA4—
gtagand GTM’sdataLayer.gtagdoesn’t need theecommerceattribute to work, but GTM’sdataLayerdoes.
Take a look at what I mean:gtag("event", "add_payment_info", { items: [ { // item's properties } ] }); dataLayer.push({ event: "add_payment_info", ecommerce: { items: [ { // item's properties } ] } });Are they really that different?
Yeah, I know
gtagcallsdataLayer.pushin the background. But, why does GTM need thatecommerceproperty? Is it just how it’s designed or is there a technical reason behind it?
Log in to reply.