Google analytics not working?

Have you inseerted Google API in the admin? Yes? That might be a simple issue. Check googleanalytics.xml of your template. If you see something like

<block type="googleanalytics/ga" name="google_analytics" as="google_analytics" />

Bingo! The reference to the template file is missing!

Change it to

<block type="googleanalytics/ga" name="google_analytics" as="google_analytics" template="googleanalytics/ga.phtml" />

and ensure that you have the template file ga.phtml (you should have it in base). You are done!

This entry was posted in Errors, Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


− three = 6

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>