Once your site is set up, it’s helpful to track your visitors to see who’s visiting, from where they are visiting, how many are visiting, how long they are staying, which pages they are visiting, etc.
This information (called your “stats”) is highly valuable and will help you maximize your blogging efforts. Not only will it provide you the opportunity to better connect with your visitors, this is information advertisers and potential advertisers will definitely want to know.
To use Google Analytics, you must have a Google Account first
A Google Account gives you access to all of Google’s products like Gmail, Calendar, Google Reader, Google+, etc. So, if you don’t already have a Google Account, get one here. The process is pretty straightforward.
How to Get Started with Google Analytics
Go to Google Analytics account and click the “Sign in” link in the top right.
If you’re not logged in with your Google Account, you will be prompted to do so.
Click the “Sign up” button. (I know. A lot of signing up and accounts.)
Next you’ll need to set up your web property. It’ll look something like this:
Make sure the “Web Site” tab at the top of the screen is selected (unless of course you are adding an app but if you’re reading this, that’s highly unlikely).
Next, under “Setting up your web property” enter the appropriate information. Pretty straightforward.
Then, under “Setting up your account” you will enter an Account Name. Now, this account is basically a way of organizing all the sites you will track within Analytics. For some people with a ton of sites to track, this is helpful, but for us, it would be sufficient to use your name, your blog name or whatever you like.
(I leave the Data Sharing Settings checked typically, but it does give Google access to your info so you might want to click the little question mark next to “Data Sharing Settings” for more info.)
Click the blue “Get Tracking ID” button.
You’ll need to accept the Google Analytics Terms of Service.
Note the “Tracking Info” tab is selected. (You can access this tab at any time by logging into your Analytics account –> Admin tab in right corner –> Account List –> selecting the Account name you chose in the last step –> selecting the name of the web property from the list –> clicking on the “Tracking Info” tab.)
Also note, “Status: Tracking Not Installed.” That’s because we now have to take that snippet of code in the box there and paste it into our site. Once it is installed correctly, that status will change to “Status: Receiving Data.”
How to install the tracking code in your site
First, select the entire snippet of tracking code. We want to paste this code just before the closing < /head > tag.
This is where using Genesis or Elegant Themes is super nice because they make it easy (although it’s not too hard in Twenty Eleven or Twenty Twelve either).
Login to your WordPress Dashboard.
Installing tracking code in Genesis
From your Dashboard, go to Genesis (in left column) –> Theme Settings.
Scroll down until you see the “Header and Footer Scripts” box like so:
Paste your tracking code into this box. (If you already have code in here, paste the Analytics code at the bottom.) Don’t forget to save!
Installing tracking code in Elegant Themes
From your Dashboard, go to Appearance (in left column) –> [Theme Name] Theme Options.
In your epanel, click “Integration” –> Enable Header Code. Paste the code in the “Add code to the < head > of your blog” box at the end, per Google’s instructions.
Don’t forget to save!
Installing tracking code in Twenty Eleven or Twenty Twelve
(I recommend you back up your blog before you do this as you will be working in the sensitive files of your site.)
From your Dashboard, go to Appearance (in left colum) –> Editor.
In the right column, click on “Header” under “Templates.” This is your header.php file.
In the main window, you’ll see a whole bunch of code. Being very, very careful not to erase anything or otherwise edit anything, find the < / head > tag (no spaces). Place your cursor immediately in front of it and press enter to create an open line immediately before the closing < / head > tag.
On the blank line, paste your Analytics code.
Don’t forget to save by clicking the “Update File” button.
How to make sure your Google Analytics tracking code is installed properly
Log back into your Analytics account.
Click the “Admin” tab in right corner.
Select the appropriate account.
Select your web property.
Click the “Tracking Info” tab at the top of the list (see image above).
If you see “Status: Receiving Data” you’re good. If you see “Status: Tracking Not Installed” or something similar here are a few things you can do:
- Wait a minute or two. It shouldn’t take longer than a few minutes to start tracking, so if you still don’t see that it’s tracking after a few minutes, do some more troubleshooting.
- Complete the process again making sure you are copying and pasting the entire snippet of code. Make sure you save after pasting!
- If those don’t work, log out of Analytics and log back in. You never know if that’ll do the trick…
- Check the Google Analytics Help section and these common issues.
How to install Google Analytics with a plugin
I much prefer the above steps to install Google Analytics as I’m not a fan of unnecessary plugins, but if you’re desperate, you might consider a plugin. Use my instructions in How to Install a Plugin for more.
How to view your stats
Data updates every 24 hours so you will have to wait that long to see your most recent stats.
- Login to Google Analytics.
- From your Account Home, click the account under which your your web property (website) is contained.
- Click on your website name when it drops down.
- Your Account Overview will appear. Navigate the menu on the left to pull out more specific bits of information. For example, your Overview will give you an idea of your basic traffic levels. Your Traffic Sources will tell you where traffic is coming from, etc.
The interface changes frequently, so if it looks differently than it does here, check the Google Analytics Getting Started section.
In addition to tracking your stats, I’ve also explained 7 Ways to Optimize Your Exit Pages which is a good idea.