Mar 19 2009

Google Analytics for WordPress Not Working

I just installed the Google Analytics for WordPress plugin, because it seems like everyone is doing it now and I’m missing out on something.

After installing and configuring this plugin, I went through my site and refreshed a couple pages, only to find out that the javascript needed for the analytics was not being included in the HTML as I expected. Google AnalyticsI tried to briefly search for help on this, but I didn’t find anything.

It turns out that you have to be logged out of Wordpress for this to display within the code. It makes sense, you don’t want your statistics to tell you about your traffic on your own website, you want to know the stats on REAL visitors. I hope this tip helps save someone some time.