Once your blog 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 are they 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
To be able to track your stats with Google Analytics you first need a Google Account. 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
If you're not logged in with your Google Account, you will be prompted to do so. Once you're logged in, you'll see a screen like this:
Click the "Sign up" button. (I know. A lot of signing up and accounts.)
On the next screen, you'll do two things. First, you will set up your "web property" (i.e. your blog/website). Second, you will set up (yet another) account. (I know. It's crazy. Just a tad bit confusing, but stay with me…) Here's what it looks like:
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 and then you should see this:
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, but if you want to see a relatively new overview of Google Analytics, try A Beginner's Guide to Google Analytics 5 at the KISSmetrics blog.)
In addition to tracking your stats, I've also explained 7 Ways to Optimize Your Exit Pages which is a good idea.
Don't forget to reference the How to Start a Blog or Website Cheat Sheet to work through the series at your own pace.
Other posts in this series
- How to Start a Blog or Website: Intro & FAQ
- How to Start a Blog or Website: Cheat Sheet
- How to Find (or Refind) Your Passion
- How to Decide What to Blog About: What Works for Readers?
- How to Decide What to Blog About: What Works for You?
- Understand Branding: 4 Tips
- Understand Keywords: Increase the Odds of Getting Found
- Writing Great Content: 3 Tips
- How to Write a Killer About Page
- 12 Blog Organization Tips
- How to Choose a Domain Name: 12 Tips
- How to Register a Domain Name
- How to Set Up Hosting and WordPress
- How to Change Your Nameservers
- How to Add a New User in WordPress
- How to Optimize Your WordPress Settings
- How to Install a Plugin
- My Favorite Plugins
- How to Get & Optimize a Feedburner Feed
- How to Choose a WordPress Theme
- How to Install a WordPress Theme
- Elegant Themes for WordPress
- How to Install Google Analytics
- How to Use WordPress: Tips & Tricks
- How to Start a Blog or Website: 10 Tips for New Bloggers