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

Analytics
5.2K members online now
5.2K 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

Double E Commerce Transactions

Follower ✭ ✭ ☆
# 1
Follower ✭ ✭ ☆

Hi,

 

In my GA account GA ecomerce transactions are showing  double  than actual transactions,

 

 

Please review the code below and suggest the way.

 

<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','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-64839314-1', 'auto');
//ga('send', 'pageview');
ga('send', 'pageview', '/success' );ga('require', 'ecommerce');ga('ecommerce:addTransaction', {'id': 'ORD14BEFB8D8C8C492', 'affiliation': 'Lsh', 'revenue': '498','shipping': '0.00'});ga('ecommerce:addItem', {'id': 'fec080e9-e851-49d8-ac74-faaf4261be61','name': 'P4','sku': 'SKU5504036B7A822','price': '459.00','quantity': '1','currency': 'INR'});ga('ecommerce:send');

</script>

 

 

 

 

 

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Addy_SEM
April 2016

Re: Double E Commerce Transactions

Rising Star
# 2
Rising Star
Is there a chance that you have multiply GA codes on the webiste?
Cheers, Alexey
UAWC Agency
Did you find any helpful responses or answers to your query ? If yes, please mark it as the ‘Best Answer.’

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Addy_SEM
April 2016

Re: Double E Commerce Transactions

Rising Star
# 2
Rising Star
Is there a chance that you have multiply GA codes on the webiste?
Cheers, Alexey
UAWC Agency
Did you find any helpful responses or answers to your query ? If yes, please mark it as the ‘Best Answer.’

Re: Double E Commerce Transactions

Follower ✭ ✭ ☆
# 3
Follower ✭ ✭ ☆
Thanks Alexey,

We have checked it, it is only once . please chk the script where the fault lies.

Addy

Re: Double E Commerce Transactions

Follower ✭ ✭ ☆
# 4
Follower ✭ ✭ ☆
No Alexey ,

Re: Double E Commerce Transactions

Rising Star
# 5
Rising Star

Hi Addy_SEM,


I might me not 100% correct since I am not developer but marketer who usually asks developer to set up ecommerce tracking but it seems that you have not needed line in your code - ga('send', 'pageview', '/success' ). Based on Google Developers documentation your code should look like:

 

<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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'YOUR GA CODE', 'auto');
ga('send', 'pageview');

 

ga('require', 'ecommerce');

 

ga('ecommerce:addTransaction', {
'id': 'ORD14BEFB8D8C8C492',
'affiliation': 'Lsh',
'revenue': '498','
shipping': '0.00'});

 

ga('ecommerce:addItem', {'
id': 'fec080e9-e851-49d8-ac74-faaf4261be61',
'name': 'P4',
'sku': 'SKU5504036B7A822',
'price': '459.00',
'quantity': '1','currency': 'INR'});

 

ga('ecommerce:send');
</script>

Cheers, Alexey
UAWC Agency
Did you find any helpful responses or answers to your query ? If yes, please mark it as the ‘Best Answer.’