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.




2 Responses to “Google Analytics for WordPress Not Working”

  • Eric Fredericks Says:

    Hmm that didn’t work for me. :( The plugin has settings that can track when you’re logged into the WordPress admin pages, so I doubt that’s why it wasn’t tracking for you. I’ll have to look into this some more…

  • admin Says:

    When I posted this the version of the plugin I was using was 2.9. I see how that 2.9.1 is out, so this may have changed. Nonetheless it made sense to me.

Leave a Reply