Google 电子商务跟踪分析未显示任何内容
Google Analytic on Ecommerce Tracking is not showing anything
我阅读了 Google 电子商务跟踪分析的文档。我只是按照它的说明进行操作,复制并粘贴到测试页面上,然后才能在实时站点上进行操作。我的问题是,即使我按照其示例进行操作,我也没有在电子商务跟踪上看到任何内容。请问有人能帮我吗?谢谢
这是 Google 电子商务分析文档:https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-87205702-2', 'auto');
ga('send', 'pageview');
ga('require', 'ecommerce');
ga('ecommerce:addTransaction', {
'id': '1234', // Transaction ID. Required.
'affiliation': 'Acme Clothing', // Affiliation or store name.
'revenue': '11.99', // Grand Total.
'shipping': '5', // Shipping.
'tax': '1.29' // Tax.
});
ga('ecommerce:send');
</script>
是的,我在 "Enable Ecommerce" 和 "Enhanced Ecommerce Settings." 上都启用了
您必须在 ga('ecommerce:addTransaction' 和 ga('ecommerce:send') 之间发送;
ga('ecommerce:addItem', {
'id': '1234', // Transaction ID. Required.
'name': 'Fluffy Pink Bunnies', // Product name. Required.
'sku': 'DD23444', // SKU/code.
'category': 'Party Toys', // Category or variation.
'price': '11.99', // Unit price.
'quantity': '1' // Quantity.
});
我阅读了 Google 电子商务跟踪分析的文档。我只是按照它的说明进行操作,复制并粘贴到测试页面上,然后才能在实时站点上进行操作。我的问题是,即使我按照其示例进行操作,我也没有在电子商务跟踪上看到任何内容。请问有人能帮我吗?谢谢
这是 Google 电子商务分析文档:https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-87205702-2', 'auto');
ga('send', 'pageview');
ga('require', 'ecommerce');
ga('ecommerce:addTransaction', {
'id': '1234', // Transaction ID. Required.
'affiliation': 'Acme Clothing', // Affiliation or store name.
'revenue': '11.99', // Grand Total.
'shipping': '5', // Shipping.
'tax': '1.29' // Tax.
});
ga('ecommerce:send');
</script>
是的,我在 "Enable Ecommerce" 和 "Enhanced Ecommerce Settings." 上都启用了
您必须在 ga('ecommerce:addTransaction' 和 ga('ecommerce:send') 之间发送;
ga('ecommerce:addItem', {
'id': '1234', // Transaction ID. Required.
'name': 'Fluffy Pink Bunnies', // Product name. Required.
'sku': 'DD23444', // SKU/code.
'category': 'Party Toys', // Category or variation.
'price': '11.99', // Unit price.
'quantity': '1' // Quantity.
});