Custom Dimension values passed with eCommerce transactions not recorded

527 views
Skip to first unread message

Lothaire Ruellan

unread,
Jan 5, 2013, 8:44:21 PM1/5/13
to google-analyti...@googlegroups.com
Hello,

I'm passing several custom dimensions and metrics along with my eCommerce transactions, but the values appear to be discarded and are not available in the UI.
Is this a bug or the expected behavior?
This is what my ecommerce tag looks like:

  ga('require', 'ecommerce', '//www.google-analytics.com/plugins/ua/ecommerce.js');

   ga('ecommerce:addTransaction', { 
     id: {{booking number}},
     affiliation: {{cobrand ID}},
     revenue: {{booking value}},
     dimension1: {{booking status}},
     shipping: '',              
     tax: ''                     
   });
 
   for (var i=0; i< {{product skus}}.length; i++) {
     ga('ecommerce:addItem', {
       id: {{booking number}},  
       sku: {{product skus}}[i],
       name: {{product names}}[i], 
       dimension3: {{product names}}[i], 
       dimension4: {{product skus}}[i],
       dimension5: {{product deliveries}}[i], 
       dimension2: {{product sources}}[i],
       metric1: {{product prices}}[i],  
       metric2: {{product quantities}}[i],        
       category: {{product categories}}[i],
       price: {{product prices}}[i],
       quantity: '1'
     });  
   }
   ga('ecommerce:send');

Eivind Savio

unread,
Jan 10, 2013, 8:04:47 AM1/10/13
to Lothaire Ruellan, google-analyti...@googlegroups.com

From what I can tell, you can’t send a dimension or a metric along with addItem, but you can send dimensions and metrics along with the transaction.

 

Based on my testing….

 

Works:

ga('set', 'dimension4', 'Dimension Value');

ga('set', 'metric2', 5);

   ga('ecommerce:addTransaction', {

     id: {{booking number}},

     affiliation: {{cobrand ID}},

     revenue: {{booking value}},

     dimension1: {{booking status}},

     shipping: '',             

     tax: ''                    

   });

 

Google, can you confirm that my observation is correct?

Being able to send and connect a dimension or metric with addItem, and not only the transaction, would be very useful for one of my clients.

 

Regards,

Eivind

--
 
 

Matt Clarke

unread,
Jan 10, 2013, 9:02:23 AM1/10/13
to google-analyti...@googlegroups.com, Lothaire Ruellan
I'm also trying to implement this. I want to link custom dimensions and metrics to the transaction and the individual items. Using Measurement Protocol, this does not appear to work yet. 

It would be extremely useful to have this functionality, please! It opens up a huge array of ways to customise and improve e-commerce reporting. 

Thanks,
Matt

Avi Mehta

unread,
Jan 14, 2013, 6:33:37 PM1/14/13
to Matt Clarke, google-analyti...@googlegroups.com, Lothaire Ruellan
Hi Matt, Eivind and Lothaire,

Thanks for pointing out an issue with the ecommerce tracking. We would like to support the use cases you mentioned and will be fixing those issues. Please look out for more on this soon.

Avi


--
 
 

Eivind Savio

unread,
Jan 15, 2013, 6:26:50 AM1/15/13
to Avi Mehta, Matt Clarke, google-analyti...@googlegroups.com, Lothaire Ruellan

Great to hear that this will be supported. Thumbs up.

 

/ Eivind

--
 
 

Eivind Savio

unread,
Jan 24, 2013, 4:10:02 AM1/24/13
to Avi Mehta, Matt Clarke, google-analyti...@googlegroups.com, Lothaire Ruellan

I just wonder if there is any news about this use case?

To be more specific, how to link especially metrics to only one item in the transaction.

 

If I send a metric along with a transaction, the metric will be sent with each item and the transaction.

Below is an example transaction. “Bookings” is a Metric counter, and the value should be 1 in this case.

The result is that Bookings are summed, and the result is 19 Bookings instead of 1 (there are 18 items sent with this test transaction).

 

 

Regards,

Eivind

 

From: google-analyti...@googlegroups.com [mailto:google-analyti...@googlegroups.com] On Behalf Of Avi Mehta


Sent: 15. januar 2013 00:34
To: Matt Clarke
Cc: google-analyti...@googlegroups.com; Lothaire Ruellan

--
 
 

image003.jpg

Németh Attila

unread,
Mar 4, 2013, 4:54:40 AM3/4/13
to google-analyti...@googlegroups.com, Avi Mehta, Matt Clarke, Lothaire Ruellan
Reply all
Reply to author
Forward
0 new messages