2016-11-15 9 views
0

Googleアナリティクスのeコマーストラッキングのドキュメントを読んでいます。私は単にその指示に従いました、私は生命のサイトでそれを行うことができます前に、テストページにコピーして貼り付けました。私の問題は、私がその事例に従ったとしても、eコマーストラッキングで何も見ていないということです。誰でも私を助けてくれますか?ありがとう。ここでGoogleアナリティクスのeコマーストラッキングに何も表示されていません

をGoogleアナリティックeコマースのドキュメントです: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> 

はい、私は両方の「eコマースを有効にする」とで有効になって「拡張eコマースの設定。」 enter image description here

答えて

2

あなたはGA( 'eコマース:addTransaction' の間に送信する必要がありますし、GA( 'eコマース:送信');

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. 
}); 
+0

は、私はちょうどそれが今まで見せていることを加えた、ありがとう – PJU

+0

: - ! D私の答えに投票してください:-D、ありがとう! – apradillap

関連する問題