Analytics
2.5K members online now
2.5K 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 Tracking Code stop working

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello, 

For a long time now i use Ecommerce for my Woocommerce websites. I usually use a plugin but last weeks i was trying to change to analytics code but i can see its not working. Bellow i send you an example from one of my websites.

 

Can you please tell me, what's it's wrong with this code and not working? 

 

<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-ΧΧΧΧΧΧΧΧ-Χ', 'auto');
ga('require', 'displayfeatures');

ga('require', 'ec');
ga('send', 'pageview');
</script>

 

Thank you very much

Regards, 

Antonia Louvari

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Tania L
March 2017

Ecommerce Tracking Code stop working

A T
Participant ✭ ✭ ✭
# 4
A T
Participant ✭ ✭ ✭

Ecommerce Tracking Code stop working

A T
Participant ✭ ✭ ✭
# 2
A T
Participant ✭ ✭ ✭

please share the website url?

Ecommerce Tracking Code stop working

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Sure, 

 

You can see website here http://www.fastlightled.com/ 

 

 

Thank you very much , 

Marked as Best Answer.
Solution
Accepted by topic author Tania L
March 2017

Ecommerce Tracking Code stop working

A T
Participant ✭ ✭ ✭
# 4
A T
Participant ✭ ✭ ✭

GA pageview data is being sent to : UA-86347126-16

 

Make sure you have added all the 4 steps for ec tracking : https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce#implementation

 

Ecommerce Tracking Code stop working

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Thank you very much for your reply.

All these steps has to go only in Thank you page, right? 

 

 

 

Ecommerce Tracking Code stop working

A T
Participant ✭ ✭ ✭
# 6
A T
Participant ✭ ✭ ✭

correct. happy to help. :-)