Hi folks, I want to add Google Analytics to a few WP blogs I have, and would like to know the quickest way please. I have added a plug-in but it doesnt appear to be working. (for www.qrjuice.com )
If we check in the page source, the GA code is already there. We should see in a few days in your GA account, if it detects activity. If it does, then it works..
go to google analytics and create a account and add all of you website one by one and then they will give you a code that you will need to add in the footer or header , i recommend footer and then your website it ready for google analytics , start tracking your traffic
If you want an easy solution you can install this plugin that can add the code for you: http://wordpress.org/extend/plugins/google-analyticator
I use google analyticator also google analytics dashboard this adds a nice small stat area on your dashboard.
Go to your Wordpress admin area. On the left, look for "Appearance" and expand it to reveal "Editor". Click on that and you will be taken to a screen with HTML code on it and a bunch of file names to the right. Click on "footer.php". Scroll to the very bottom of the text area that should now be displaying the HTML code of your footer. Find the </body? line and right above it, add/paste your Analytics code.
Well, plugins are fine to use. However, I find that if I'm already using a few plugins and all I want to do is add Google Analytics code, then it's better just to edit the footer.php template file found in the "Appearance->Editor" tab (in WordPress version 3+) so I don't have the processing load when a page is displayed. Just open that file and put your Google Analytics code before the closing body tag (</body>). WARNING: If you've used a free theme and there is a theme upgrade, it might overwrite the file and erase your GA code.
There are also some times when it is better to install the code the head rather than before the closing body tag. http://support.google.com/googleanalytics/bin/answer.py?hl=en&answer=55574