Tip: Need a refresher on Google Tag Manager and all its features? Read this article.

There are three different standards for implementing e-commerce events for Google Tag Manager:

To quickly check which version of events is sent to your Google Tag Manager (GTM) container, log in to your GTM account. In GTM, navigate to the container implemented on your website and enter preview and debug mode.

With preview and debug mode enabled for your website, add something to your shopping cart. You now should see an event appear on the left side of the Tag Assistant.

If the event is exactly addToCart, you share e-commerce events on your website with GTM with the Enhanced Ecommerce (Universal Analytics) method. The event itself should look something like this:

Please read this article if you’d like to capture these e-commerce events and send them over to Datatrics.

If the event appearing on the left side of the Tag Assistant is exactly add_to_cart, you are sharing the e-commerce events on your website with GTM via GA4 events. Depending on what the exact event looks like, you can find out if it’s via GTM datalayer.push or gtag.js events.

If the event starts with the following, your website has GTM datalayer.push e-commerce events implemented:

dataLayer.push({
event: "add_to_cart",
ecommerce: {
items: [

If you don’t spot the ecommerce part, but there’s an eventModel included in the event, your website has gtag.js e-commerce events implemented:

dataLayer.push({
event: "add_to_cart",
eventModel: {

Example of a GTM datalayer.push e-commerce event

Please read this article if you’d like to capture these GTM datalayer.push e-commerce events and send them over to Datatrics.

Example of a gtag.js e-commerce event

Please read this article if you’d like to capture these gtag.js e-commerce events and send them over to Datatrics.

Did this answer your question?