Patch google analytics pour magento 1.4

Depuis la version 1.4 de magento, les statistiques de google analytics ne sont plus prises en compte.
le fichier a modifier est
app/code/core/Mage/GoogleAnalytics/Block/Ga.php

le code correct est :

<!-- BEGIN GOOGLE ANALYTICS CODE -->
<script type="text/javascript">
//<![CDATA[
var _gaq = _gaq || [];
_gaq.push(["_setAccount", "' . $this->getAccount() . '"]);
_gaq.push(["_trackPageview", "'.$this->getPageName().'"]);

(function() {
var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
(document.getElementsByTagName(\'head\')[0] || document.getElementsByTagName(\'body\')[0]).appendChild(ga);
})();
//]]>
</script>
<!-- END GOOGLE ANALYTICS CODE -->

source : http://www.fragento.org/Questions-d-utilisation/28871-Magento-1.4-Google-Analytics-asynchrone-=-0-visiteur.html