I put my analytics code in my wordpress header.php, but is this the correct place to put it? I know I had some unique visitors yesterday but it say's 0 visits? I have it on a static site and works a charm.
try and add it to the footer.php. Should probably work at the header.php. But the footer is where mine is and it works like a charm. failing that , look for a file thats loaded on every page load and add it there. hope it helps Dan
As everybody says, Footer.php is the best place to implement it. Or else you can find plugins for it as well, just Google it out and you'll find many out there.
The Google Analytics code should be put just before </body>. That is located in footer.php most of the time.
In your google webmaster tools, did you have google scan your site to see if the code is installed correctly? If I remember right there is a way to check your site from within google webmaster tools. Google webmaster tools should say something like the code has been installed and is collecting data.
The best place is to put it on footer.php. So that the code will load when everything loads. It is how it supposed to be.
here's the download link for google analytic plugin. this will save your time wordpress.org/extend/plugins/google-analytics-for-wordpress/ this is the latest version, the manual is inside.