Google Analytics for WordPress: Easily Installing Statistics Tracking
By Cory Miller • October 2, 2008Google Analytics is a free online service for tracking your website statistics. It’s one of my favorites that I use on every website or blog I build.
Your site’s traffic is important if you are using it as a marketing tool for your business. You should be tracking how many unique visitors and pageviews you get a day. And more importantly, how that traffic is converting — or achieving your goals and objectives.
You can see what keywords people are using to find your site. Where people are coming from. And lots more.
To use Google Analytics, or other web statistics programs (like Woopra), you typically have to install tracking code into your theme, usually in your header or footer file, which looks like this:
![]()
I’m delighted to say that every new iThemes WP theme now includes a handy Tracking Code easy install box on the Theme Options page inside WordPress.
It looks like this:
![]()
All you have to do is copy and paste the code you get from Google Analytics into this box and click Save Options. Done!
See these resources about site statistics also:
- Study your site traffic to refine your strategy (video from 7 Steps to Optimizing WordPress series)
- How to install Google Analytics manually (video)
Still wanna do it the manual way?
- Go to Design / Theme Editor and find the header.php or footer.php file (I use the footer).
- Then paste your code above the < / body > code
- Update that theme file
- Done!
Keep Up With iThemes
One Response to “Google Analytics for WordPress: Easily Installing Statistics Tracking”
Leave a Reply
Get Theme Discounts
& Special Offers
Free WordPress Training
Our WebDesign.com team offers a number of free (regular) online workshops for WordPress web design to grow your skills. Sign up for the free workshops at WebDesign.com here.Featured Themes
Featured Plugin
Need WordPress Hosting?
For the do-it-yourself option, iThemes recommends HostGator. Excellent customer service, affordable prices.
Live Show Every Tuesday
How to Use WordPress
to Power Your Website
Want an easy, affordable way to build and manage websites online? Check out our free report on how you can use WordPress as a content management system. Download our free white paper here ยป




Cory, what a GREAT little feature that you’ve decided to build into all your themes! – For someone who isn’t quite sure what to do when it comes to installing the tracking code, then it really does make things 10 times easier.
While I can manage to do that myself, there’s still a lot to learn yet about the way WordPress works exactly, and other things. (You can almost say that I enjoy ‘messing’ with WP themes in my spare time, if I happen to have any!)
…But again, what a SIMPLE feature you have created. It could clinch you the sale, and for what, 5 minutes creating it?!
Thanks
Mark