Search code examples
google-analyticsgoogle-tag-managerenhanced-ecommerce

GTM and Enhanced Ecommerce. Not showing in Analytics - Scraping DOM for DataLayer


I'm having a nightmare trying to get enhanced eCommerce data showing in Google Analytics. Using Tag manager I've got the below in my data layer but I can't see anything in my Google Analytics account.

Unfortunately at the moment I'm having to scrape the DOM for the relevant information, so I'm pushing all the information to the datalayer with a 'payment ' event. The corresponding tag is correctly firing on this event.

The GTM preview inspector is showing everything as I would expect

I have ticked the relevant enabled enhanced eCommerce boxes and waited 72 hours after each attempted change but still no luck - can anyone help? I'm sure I've missed a simple step somewhere but no luck on the Google developer docs.

Many Thanks,

Eoghain

'Payment' Event:

DataLayer Screen Shot

After page Fully Loaded:

DataLayer ScreenShot

Tag: tag view

Trigger: Trigger


Solution

  • OK I believe the issue is because you are using the Transaction type tag. This applies only to standard e-commerce. You need to piggyback your e-commerce data with either a pageview or a (non interactive) event.