iFuel Announces Launch of A2C Platform for Ecommerce Alcohol Sales. Read More

FIX Google Analytics _gaq is not defined In Magento 1.4.0.1

Locate: /app/design/frontend/base/default/layout/googleanalytics.xml

Replace With:

[sourcecode]







[/sourcecode]

^ This will move the Google Analytics code to before the closing of the HTML </body> tag (for faster page load times)

Locate: /app/code/core/Mage/GoogleAnalytics/Block/ga.php

Replace at around LINE 171:

[sourcecode]



[/sourcecode]

One Response to “FIX Google Analytics _gaq is not defined In Magento 1.4.0.1”

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>