views:

25

answers:

1

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

A: 

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

songdogtech
It is not. I know this... I am trying to work out why it is not being included. cHEERS
Thomas Clowes
Is <?php wp_head(); ?> in your header.php?
songdogtech
Thankyou. As an aside what is this wp_head function? It fixed the problem but without it everything else worked fine..
Thomas Clowes
Plugins need wp_head to hook into the page and load their functions. See the documentation link above. Some themes don't include it, but that's unusual.
songdogtech