Google Analytics in Head section

This plugin adds tracking code for Google Analytics to your WordPress site. Unlike other plugins, code is added to the “head” section, so you can authorize your site in Google Webmaster Tools.

There are many Google Analytics plugins for WordPress. I used a few of those myself and it worked well. The trouble began when I willed to use Google Webmaster’s Tools.

It turned out that I can authenticate the ownership of the website using my Google Analytics account. Where’s the catch? Google Webmaster’s Tools expects that the code will be located at the section and all the plugs have placed it at the very end of the page (apart from this case – very rightly).

Therefore, I created a plug-in called “Analytics Head”, which places tracking code in the head section of the webpage.

You can download analytic head plugin at WordPress repository or you may find this plugin on git hub!

Be the first to comment

Leave a Reply

Your email address will not be published.


*