Why move it to the head section? Try to verify Google Webmaster Tools with the code placed anywhere else and you’ll get this:
“Verification failed for [URL removed] using the Google Analytics method (less than a minute ago). The Google Analytics tracking code on your site is in the wrong location. You can verify site ownership only with the asynchronous snippet placed in the <head> section of your home page.”
Ever since Google updated Analytics they have told you to put the tracking code in the head section. The tracking will work with the code anywhere, but Google’s instructions are for it to be in the head section.
@alistairgd: I found a hack to fix this for All In One SEO Pack. Go to your plugin editor and select All in One SEO Pack. The plugin file you want to edit is all-in-one-seo-pack/all_in_one_seo_pack.php
You are looking for this line of code:
////analytics
if($aioseop_options[‘aiosp_google_analytics_id’])
add_action(‘wp_footer’, array($aiosp, ‘aiosp_google_analytics’));
All you have to do is change wp_footer to wp_head and it fixes it for you. Something to keep in mind, you have to be sure that in your header.php you still have this code: <?php wp_head(); ?>
Of course, if you are using this plugin it must be there else it won’t work. This just moves the analytics tracking code from the footer to the head section.