4.3K members online now
4.3K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
Guide Me

Enhanced ecommerce data not visible in Google analytics

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭



I'm implementing the enhanced analytics for a client. But for some reason the data we are trying to send to analytics is not visible. We have enabled the enhanced analytics in the google analytics data view.


We are using following code:


(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

ga('create', 'UA-CODE');
ga('require', 'ec'); 
ga('set', 'currencyCode', 'EUR');
ga('ec:addProduct', {           
  id: '000000000004002555',                   
  name: 'Product name',
  category: 'Product category',           
  brand: 'No brand',                         
  price: '62.05',               
  quantity: 1                    
ga('ec:setAction', 'purchase', {
  id: '1718589',
  affiliation: 'e-commerce website',
  revenue: '78.49',
  tax: '4.44',
  shipping: '0',
ga('send', 'pageview');

Thank you for the help.

Re: Enhanced ecommerce data not visible in Google analytics

[ Edited ]
Explorer ✭ ✭ ☆
# 2
Explorer ✭ ✭ ☆

I created a simple test page with your request, and here's what I did:

  1. Load the page and see how it shows using WASP, and make sure the request is firing correctly: OK
  2. In the debugger network view, I saw the "collect" request worked, so I copied the raw request and just change it to use the debug output
  3. I also checked in GA real-time and saw the hit coming in (although real-time doesn't show transactions details)
  • Don't forget there's a delay, especially for ecommerce, before it shows in the reports.
  • Under admin, make sure enhanced ecommerce is enabled (not just regular ecommerce)

Hope that helps! Smiley Happy




(disclaimer: I'm the original author of WASP, and although you can use Google Tag Assistant, I find it harder to decipher the request, and something like Ghostery won't provide enough details)