December 27, 2010

Magento 1.4.0.1 Google Analytics fix

Magento 1.4.0.1 Google Analytics fix
If you updated to latest Magento 1.4.0.0 or 1.4.0.1 version you may notice that Google Analytics implementation is broken. Here are few easy instructions how to fix this.


Navigate to and open app/code/core/Mage/GoogleAnalytics/Block/Ga.php and add this on line 179

var _gaq = _gaq || [];


Since this bug is already reported and fix can be seen on latest official svn, I don’t see any harm in modifying core files in this particular situation.


http://www.magentocommerce.com/bug-tracking/issue?issue=8658
http://svn.magentocommerce.com/source/branches/1.4-trunk/app/code/core/Mage/GoogleAnalytics/Block/Ga.php
As Magento Team said, changes will be included in next stable release.

No comments:

Post a Comment