Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email

Magento Forum

Google Analytic not tracking eCommerce sales
Jr. Member
Total Posts:  3
Joined:  2012-09-24

Hi Everyone,

I have enabled the eCommerce option in my Google Analytics account and added my tracking codes to the configuration section in the Magento admin menus, however the analytics are not coming through to my Analytics account.

I have checked everything I can think of, but nothing has seemed to resolve the problem yet.

I have checked the source code of all the pages from adding to cart to the success page once the transaction is completed, but there is no _addItem(), _addTrans(), or _trackTrans() parameters in the Google Analytic code. The only thing that is shown is:

<script type=\\\"text/javascript\\\">
var _gaq = _gaq || [];

_gaq.push([\\\’_setAccount\\\’, \\\’XX-XXXXXXXX-X\\\’]);

(function() {
var ga = document.createElement(\\\’script\\\’); ga.type = \\\’text/javascript\\\’; ga.async = true;
ga.src = (\\\’https:\\\’ == document.location.protocol ? \\\’https://ssl\\\’ : \\\’http://www\\\’) + \\\’\\\’;
var s = document.getElementsByTagName(\\\’script\\\’)[0]; s.parentNode.insertBefore(ga, s);


I have checked my app/code/core/Mage/GoogleAnalytics/Block/Ga.php file and everything seems to be fine, but still no eCommerce tracking. I also installed Magento from the most recent release, so this isn\\\’t an update problem.

Has anyone else had this problem, or been able to solve this issue?

Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top