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, commonly 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.
There are several stat tracking options but the most popular is Google Analytics. I personally use it, as do most bloggers.
To use Google Analytics, you must have a Google Account
A Google Account gives you access to all of Google’s products like Gmail, Google Calendar, 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 and click the link in the top right to start. (They change the wording from time to time, so what you see in these images may not be identical to what you see on your screen.)
If you’re not logged into your Google Account, you will be prompted to do so.
Once you’re all signed up and signed in, set up your web property. Click the “Admin” link at the top of the screen. Under “Account” click the dropdown menu and choose “Create new account.” 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.
The “Account Name” 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 your “Tracking Info.” (You can access this tab at any time by logging into your Analytics account –> Admin –> Account List –> selecting the Account name you chose in the last step in the menu –> selecting the name of the Web Property from the list –> clicking on “Tracking Info”)
Also note “Status: Tracking Not Installed” at the top of your screen. 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 a Genesis (or Elegant Themes) theme is super nice because they make it easy.
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 the top 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 or edit anything, find the < / head > tag. Place your cursor immediately in front of it and press enter to create an open line just before the closing < / head > tag.
On the blank line you just created, 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.
Select the appropriate account and web property.
Click the “Tracking Info” link.
If you see “Status: Receiving Data” at the top, 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, move on to the next step.
- 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 Plugins for more. You would simply search for “Google Analytics” and choose a highly-rated, up-t0-date plugin.
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.
- 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.