Everyone wants to know the stats to their sites, and there is simply no better way to track and monitor who is on your site, where they are coming from and what they are doing while they are there than through the use of Google Analytics.
Google currently provides this advanced tracking service at no cost and if you are currently using WordPress, it’s very simple to setup. In this post we are going to walk you through the process of how to add Google Analytics to your site or WordPress in under a minute. In terms of tracking visitors and the growth of your site, it’s best to install your Google Analytics code right when you start your blog.
1.) Login to Your Google Analytics Account
As a site owner, you should already have your own Google Analytics account. (If you don’t have one, just click the link to set one up) Once logged in, all you need to do is click on the name of your site (or add a new site) and then Admin on the top right, then the Tracking code option.
I’ve laid out the process for you below.
1 – Login to your account and click on your site name (or create one for your site)
2 – After selecting your site, then click on ADMIN at the top of the page, then select Tracking Info in the new area that appears
3 – Once your tracking code appear on the page, you can copy it and paste it onto your site (which we cover below)
2. Adding the Google Analytics Code to Your WordPress Theme
Now it’s time for you to add the tracking code from your Google Analytics page to your WordPress dashboard.
In previous versions of WordPress, you would go to Appearance > Editor, but this has since been removed in the latest updates.
Instead you now have a few options. You can add the theme through the use of a custom WordPress theme (like the example shown below). This would be done through the “Appearance” menu on the left hand side, then clicking on your theme and going to theme options. Many premium themes now have a custom area for you to place your Google Analytics code like I did in the example below.
Another option is for you to click on Appearance > Widgets within WordPress and adding the code as a Widget in your sidebar or footer.
3. Confirm Analytics is Working On Your Site
Now we want to make sure the the Google Analytics code is properly placed on your site and that it’s sending information to Google.
To do this, all you need to do is follow the same steps we showed above, which was logging into your Google Analytics account, clicking on Admin, then Property and Tracking Info.
If your tracking pixel was setup correctly, you should see a similar response like the one below.
With your tracking code properly in place, you will start receiving new data updates from Google Analytics and you can pull full reporting charts on your site and it’s historical data (starting at the date you added the tracking code).
Quick Option: Google Analytics WordPress Plugin
We just walked through the process of logging into Google Analytics, grabbing the tracking code and placing it within your WordPress dashboard… however there is yet another simpler and faster way.
This would be through of WordPress plugins you can quickly and easily add Google Analytics to any site. The two plugins below are most used and recommended:
If you don’t want to use the hard code for placing the Google Analytics within WordPress, each of these plugins will do the trick and take only seconds to setup.