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
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 -->