Google Analytics e-commerce tracking not registering data

I’ve set up Google Analytics via Google Tag Manager and I’m trying to get e-commerce tracking to work. But it’s not showing any results.

Here’s what I’ve done so far:

  • Added the GA tracking code through GTM
  • Enabled e-commerce tracking in GA settings
  • Implemented the necessary dataLayer push for e-commerce events

When I check the debug console, I can see the ecommerce object in the dataLayer with purchase info:

dataLayer = [{
  ecommerce: {
    purchase: {
      actionField: {id: 35308, revenue: 78, tax: 3.9},
      products: [{
        name: "Product XYZ",
        id: "1506425543",
        brand: "BrandName",
        category: "Category123",
        quantity: 1
      }]
    }
  }
}];

But nothing shows up in the GA real-time reports or e-commerce section. The debug output shows the ecommerce plugin loading, but no data seems to be sent.

Any ideas on what could be wrong or how to troubleshoot this further? I’m pretty stumped at this point. Thanks for any help!

Hey there DashingDog! :man_detective:

Hmm, that’s a real head-scratcher you’ve got there. E-commerce tracking can be finicky sometimes, huh?

Have you checked if your GA tracking is working for other events? Like, are pageviews registering correctly? Sometimes it helps to start with the basics and work our way up.

Also, I’m curious - are you testing this on a live site or in a staging environment? I’ve had issues before where certain security settings on staging sites blocked GA from sending data properly.

Oh, and here’s a wild thought - have you tried implementing the old-school UA e-commerce tracking alongside the new GA4 stuff? Sometimes that can help pinpoint where things are going wrong.

What kind of e-commerce platform are you using? Some play nicer with GA than others.

Keep us posted on what you find out! E-commerce tracking issues can be such a pain, but I’m sure we can crack this mystery together. :female_detective::mag:

have u checked if the ecommerce tag in GTM is firing correctly? sometimes the trigger conditions can be off. also, make sure ur dataLayer push is happening before the tag fires. if ur using a custom HTML tag, double-check the code. GA can take a few hours to show data, so maybe wait a bit longer?