Sharing is helping.

We offer you this space to share your knowledge about Magento and learn from our experienced customers.


    Home Forums Reply To: Google Analytics Not Working Reply To: Google Analytics Not Working

    #11832

    Anonymous

    This is a bug in magento. You need to update the GA Analytics block code in magento files. They messed up the tracking code. 1 row is missing from the code.

    in GA.php align your code to match this.

    <!– 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&#8217; : ‘http://www&#8217 ;) + ‘.google-analytics.com/ga.js’;
    (document.getElementsByTagName(‘head’)[0] || document.getElementsByTagName(‘body’)[0]).appendChild(ga);
    })();

    //]]>
    </script>
    <!– END GOOGLE ANALYTICS CODE –>