Mobile app version of vmapp.org
Login or Join
RJPawlick198

: Google E-Commerce tracking not working I got 9 successful transaction but I can see only 2 in google analytics. I do redirect to https while I get payment that I doubt about it may cause

@RJPawlick198

Posted in: #GoogleAnalytics

I got 9 successful transaction but I can see only 2 in google analytics. I do redirect to https while I get payment that I doubt about it may cause but not really sure while e-commerce tracking doesn't work properly.

UPDATE:

var pageTracker = _gat._getTracker('UA-1234567890');
pageTracker._trackPageview();
pageTracker._addTrans('254','','217,4550','','0','İstanbul','','Turkey');
pageTracker._addItem('254','203','AAA - BBB','','169,00','1');
pageTracker._addItem('254','167','XXX - YYY','','59,90','1');
pageTracker._trackTrans();

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @RJPawlick198

1 Comments

Sorted by latest first Latest Oldest Best

 

@Nickens628

The example you gave is incorrect and you need to check your implementation, since your addTrans and addItems do not match up.

This is how it should look like:

var pageTracker = _gat._getTracker('UA-1234567890');
pageTracker._trackPageview();
pageTracker._addTrans('254','','228,90','','0','İstanbul','','Turkey');
pageTracker._addItem('254','203','AAA - BBB','','169,00','1');
pageTracker._addItem('254','167','XXX - YYY','','59,90','1');
pageTracker._trackTrans();


So what's different? Your addTrans needs to be populated with the TOTAL price of all addItems. You have 169,00 + 59,90, each with a quantity of 1. That translates to 228,90 and not 217,4550 in your example. Since the total sum breaks, no transaction is recorded.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme