[This post is part of the WordPress Guide for Beginners – Step by Step Tutorials]
Google Analytics is the best & free tool to track your site stats. It will tell you who is visiting your site, from where they are visiting, how long they stay your site, which pages they are visiting, how they interact with your content etc.
If you want to know more about your site visitors, their demographics and behaviors, then you should consider using Google Analytics.
In this post I will show you how to sing up for Google Analytics and how to set up GA on WordPress blog.
How to Get Started with Google Analytics
The first thing you’ll need to have a Google Account. A Google Account provides access to all Google’s products like YouTube, Gmail, Google+ etc. If you don’t have a Google account then get one here.
1. Once you’ve signed up for your Google Account, go to Google Analytics and Click on ‘Sign In’ .
2.Then you’ll be landed to a new page. If you are logged in with your Google Account, you’ll see the screen like this.
3. Then it will ask you ‘What would you like to track?‘ and to ‘Select a tracking method‘. I think default setting is OK for you. Just make sure that it selected Website tab and checked Universal Analytics BETA. (Follow screen shot)
How to Install Tracking Code to WordPress
Now login to your WordPress Dashboard. Follow any of the options that seems easy to you.
If you are using WordPress Premium theme, then it may have an option like Google Analytics Tracking Code or Google Analytics Tracking ID in theme’s General Setting.
In case of Tracking Code, you have to put the full tracking code there. (Ex:<script> Codes</script>)
For Tracking ID, you have to enter the Tracking ID only. (Ex: UA-4*****84-1)
If you don’t find the above option you can use All in One SEO Pack Plugin to track your site with Google Analytics.
Once you’ve installed the plugin, Go to All in One SEO (Under dashboard) > General Setting > Navigate to Google Setting and enter the Tracking ID on ‘
BTW there are a lot of Google Analytics Plugins to track your site. You can use them too. But I prefer using All in One SEO plugin because it is one of the best plugin for WordPress SEO.
Note: Make sure you back up your WordPress blog before doing it.
If you don’t like to install plugin to do that, you can do it manually by adding the tracking code in header.php file. From your dashboard, go to Appearance > Editor. Then select header.php from right side. Now find the < / head > tag and paste the tracking code before closing < / head > tag.
How to Make Sure Code is Installed Properly
Now go back to your Google Analyics, Click on Admin from upper right.
Select your account and click on ‘Tracking Info’.
How to Add New Site to Google Analytics
If you’ve more sites you can them to Google Analytics.
To add new site, Click on Admin from upper right of your Google Analytics account.
Other procedures are same. For any kind of help, you can check the Official Analytics Help page.
Hope this post helps you to install Google Analytics in your WordPress blog. If you face any difficulties, feel free to ask us via comment. And don’t forget to subscribe our blog to get regular updates.