Testing out the e-commerce-tracking feature, I modified Google's standard-script to ensure its functionality:
<script>
(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-47398882-9', 'dummy.net');
ga('send', 'pageview');
ga('require', 'ecommerce', 'ecommerce.js');
ga('ecommerce:addTransaction', {
'id': '34-57658',
'affiliation': 'Dummy Shop',
'revenue': 109.56,
'shipping': 4.5,
'tax': 19.81
});
ga('ecommerce:addItem', {
'id': '34-57658',
'name': 'Shirt Amalfi',
'sku': 'WKM-76576-7867-s',
'category': '',
'price': 105.06,
'quantity': 1
});
ga('send', 'ecommerce');
</script>
Upon loading the page with this script, only the page views are recorded instead of the expected data for the dummy order. Is this a script error or a configuration issue with analytics?
Is there a way to troubleshoot this problem outside of the browser? Are there any error reporting tools provided by Google?