1
votes

I send a various information according to the Ecommerce tracking protocol, particularly info for additem(). Some of the information is category for each item, but the google analytics only shows name, product revenue, and quantity.

How can I obtain what category and other info i originally sent via the tracking protocol?

Also, for some records the information is not showing at all, even if the graph indicates that there is. This disappearing act occurs sometimes when I'm trying to reverse a transaction as per https://support.google.com/analytics/answer/1037443?hl=en

enter image description here

Example code for one transaction (sensitive data altered):

<!-- thingy -->
<script type="text/javascript">

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-mytrackingcode-3','auto');
ga('require', 'displayfeatures');
ga('send', 'pageview');

ga('require', 'ecommerce', 'ecommerce.js');
ga('ecommerce:addTransaction', {'id': '100007606',
    'affiliation' : 'mystorename', 
    'revenue': '-172.40', 
    'shipping':'-44.40', 
    'tax':'-10.24' });
ga('ecommerce:addItem', {'id': '100007606',
    'name' : 'Soft Wallet', 
    'sku': 'KB-GS0513-10', 
    'category':'', 
    'price':'128.00', 
    'quantity':'-1' });
ga('ecommerce:send');

</script>
<!-- thingy -->
2

2 Answers

1
votes

Product category, and other things like variant and brand, are attributes of enhanced ecommerce. At least from the resource you linked to, it looks like you are using standard ecommerce tracking.

0
votes

On the bottom left of the graph, there is a selectbox labeled "secondary dimension" Click that, then click the "ecommmerce" option, and you will be able to choose sub-options that correspond to product data, which will correspond to showing it in a column.