Search code examples
wordpressgoogle-analyticsanalytics

Google Analytics for Wordpress not working


I have the Google Analytics for wordpress plugin produce by http://yoast.com

I have it installed on two blogs. On one it works perfectly... the other it does not work.

Both designs are custom designed. As such the only thing i can think is that the designs are coded in different ways such that the plugin inst inserting the code into one of my sites.

Does anyone have any ideas of how to fix this?

Thanks


Solution

  • Look in the page source of each site to see if GA is loading. Use Firebug as well, to see what's loading in terms of the javascripts involved with GA.

    Is <?php wp_head(); ?> in header.php of your theme? That's required for plugins to load. See Function Reference/wp head « WordPress Codex