Google analytics GA增强型电子商务不记录交易
我很难让GA增强型电子商务发挥作用。它正在记录事件,但没有事务或产品数据 我在我的视图设置中启用了增强型电子商务。我还使用了GA调试器,它似乎不会显示错误 这是我的密码:Google analytics GA增强型电子商务不记录交易,google-analytics,Google Analytics,我很难让GA增强型电子商务发挥作用。它正在记录事件,但没有事务或产品数据 我在我的视图设置中启用了增强型电子商务。我还使用了GA调试器,它似乎不会显示错误 这是我的密码: (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.getE
(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-20148609-3', { userId: 'fdea0a15-bf1e-49e0-97c2-8092255aad21' });
ga('send', 'pageview', {
'title': 'Receipt'
});
ga('send', 'event', 'Completed Order', '');
ga('require', 'ec');
ga('ec:addProduct', {
'id': '207033767504',
'name': "Some product",
'category': '',
'brand': '',
'variant': '',
'price': '29.95',
'quantity': 1
});
ga('ec:setAction', 'purchase', {
'id': '735441434',
'affiliation': 'My Store',
'revenue': '61.15',
'tax': '0',
'shipping': '31.2',
//'coupon': 'SUMMER2013'
});
GA调试器日志:确定已修复。似乎pageview调用必须在之后发生。我在文档中没有看到这一点,但它似乎起到了作用