Analytics
2.6K members online now
2.6K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Ecommerce data not showing in analytics

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Code( install GA)

<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-67908987-1', 'auto');
  ga('send', 'pageview');
  ga('require', 'ec');
  ga('set', '&cu', 'RUB');
  
      ga('set', 'userId', 'XXXXXXXXXXXXXXX');
  
</script>

Code( When Confirm Order):

 

<script>
                ga('ec:addProduct', {
                  'id': '1178540',
                  'name': 'Бюстгальтер мягкая чашка',
                     'category': 'Белье/Бюстгальтеры/Мягкая чашка',
                  'brand': 'Fantasie',
                  'position': 1,
                        'price': 5406.00,
                        'quantity': 1.00
                });
    ga('ec:setAction', 'purchase', {
      id: '230243-136',
      affiliation: 'www.best-elle.ru',
      revenue: 5406,
        shipping: 0      
    });
</script>

 

24 hours after order - ok

 

I see Data( trafic etc) 

 

when i send in Google Chrome console Command - i see transaction  (((

 

What Wrong ? 

 

 

Site best-elle.ru

1 Expert replyverified_user

Re: Ecommerce data not showing in analytics

Top Contributor
# 2
Top Contributor
Hi,

In enhanced ecommerce the transaction data is being sent together with the pageview hit. Simply move the ga('send', 'pageview'); command after the purchase action and it will work. Let me know if you have questions.

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital