e commerce - Shopping Behavior Analysis is not showing data in google analytics -
i have connected big-commerce site google analytics e-commerce , unable view data in "shopping behavior analysis" section
here site e-commerce tracking code
<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-25352625-2', 'duringdays.com.au'); ga('send', 'pageview'); ga('require', 'ecommerce', 'ecommerce.js'); function trackecommerce() { this._addtrans = addtrans; this._additem = additems; this._tracktrans = tracktrans; } function addtrans(orderid,store,total,tax,shipping,city,state,country) { ga('ecommerce:addtransaction', { 'id': orderid, 'affiliation': store, 'revenue': total, 'tax': tax, 'shipping': shipping, 'city': city, 'state': state, 'country': country }); } function additems(orderid,sku,product,variation,price,qty) { ga('ecommerce:additem', { 'id': orderid, 'sku': sku, 'name': product, 'category': variation, 'price': price, 'quantity': qty }); } function tracktrans() { ga('ecommerce:send'); } var pagetracker = new trackecommerce(); </script>
please body let me know wrong , need add other code track information ?
thanks
Comments
Post a Comment