Google analytics code must be in header. It was with old google analytics code that people used to place it in footer.
This is new asynchronous code which one should put just below closing </head>. If you have a javascript above google analytics code then its possible that if the above script failed to execute then google analytics may also respond as error.
This is a asynchronous google analytics code and if there is any error in the code for the time being , your site will load properly without hanging or showing errors. Thats why its called as
asynchronous tracking code
Placing asynchronous analytics tracking code in <body> have proved that their data is missing or not correct.
So my suggestion would be open wordpress header file and place the tracking code there...
