AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

3.9K members online now
3.9K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
Guide Me

Ecommerce Tracking code

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I want to measure revenue and transaction from organic, referral and paid channels. And for that we want to install ecommerce tracking code on website.
Below is the code of Google Analytics :
(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','//','ga'); ga('create', 'UA-47475220-1', ''); ga('send', 'pageview'); </script>

Can you please share the ecommerce tracking code here so I can install on my site. Also, mention where is need to paste?
Also, what is the difference between ecommerce and enhanced ecommerce?

For more refer the below image :


Looking for your reply.

Re: Ecommerce Tracking code

Follower ✭ ✭ ☆
# 2
Follower ✭ ✭ ☆
1. You are using universal analyitic so you can use enhance ecommerce or just plain old ecommerce tracking.
2. Enhanced Ecommerce allows you to collect much more information on ecommece
2. Diffrent pages and stages in the funnel need different codes.
3. Some of the code, such as impressions should go abouve the ga('send', 'pageview');
4. Other codes such as add to cart should be triggered by a user interaction.

Here are some links to help you along
1. enhanced ecommerce -
2. ecommerce -
3. living demo for the code at

Best Regards

'Star' or 'Accept as Solution' if it helped.