Hello, I'm trying to install Google Analytics on my wordpress theme. Where would I place this tracking code in my wordpress blog? There seemd to be so many places I could place it but I want to make sure its the best spot so it will monitor all visitors to the blog. Where in the wordpres theme do I install it on what page or Stylesheet (style.css) or template's Thanks Steve
Okay... here it goes how and where... Login to your wordpress admin... Click on Apperance >> Editor. Now - choose the 'footer.php' page from the right sidebar - click this to open. Enter your google analytics code just before </body></htmll> It will now carried over to all the pages in your blog. Hope this helps...
That works, but Google requests the new Analytics code to be placed inside the <head></head> tags now. Do what infogle said only do it to your "header.php" and add the analytics code just before the </head> tag.
Install analytic plugin for wordpress (if you don't know/need to edit your footer) Follow infogle (if you think you can edit it yourself without installing any pluginns)