Can someone please tell me where to put the google analytics code in my wordpress blog using a custom theme? Thanks in advance....
Simply download the Google analytics plugin, its super lite and doesnt require you to change or do anything!
If you don't download the plugin, then place it in the footer.php. You can place it in the header, but the loading times slow down.
Header/Footer won't matter. Just go to your theme editor, find where it includes other javascripts (Probably in the header.php file) and just paste the code in there.
Well the problem (or the blessing) of putting it in the header instead of the footer is that it loads before the page loads. Having the code in the footer shows that the page actually loaded, while the code could load in the header without the visitor seeing the page (clicks the back button real quick, hits "stop loading page", etc) However, if you are planning to sell your website and want to inflate your stats slightly, you could place your tracking code in the header
Yup, just throw it in the footer. If you have other stuff in the footer (like javascript from other ad networks or other tracking software like Mybloglog or something,) I'd put it above all those to make sure it gets loaded first so you'll get more accurate results.
download analytics plugin or add code manually in footer.php, header.php , or index.php file <body> code goes here </body>