Enhanced Ecommerce Not Passing Data To GA

229 Views Asked by At

I'm trying to get enhanced ecommerce data flowing to GA but after 2 tries, something is missing/not correct with the set up.

Here are screenshots that show the tag is firing, enhanced ecommerce is enabled, and the event is showing in GA - however the purchase event values like revenue etc aren't being recorded in GA.

tag details values

tag details names

tag configuration

data layer

tags fired

GA event

ecommerce setup

Any assistance here would be greatly appreciated! Thanks,

1

There are 1 best solutions below

1
On

the data layer values are not correct, in order to record a transaction, you need to add purchase, not transaction

{
   'ecommerce': {
       'purchase': {
         'actionField': {
         'id': 'RL00195',                    
         'affiliation': 'Relish',
         'revenue': '12.99',                    
         'tax':'2.16',
         'shipping': '4.17',
         'coupon': '',
         'currency':'GBP'
      },
      'products': [{                            
          'name': 'Category Snap',    
          'id': 'AB005',
          'price': '6.66',
          'brand': '',
          'category': '',
          'variant': '',
          'quantity': 1,
          'coupon': '' 
      }]
   }
}

this should be the data layer values