Improve your Google Analytics Setup

Google Analytics is an amazing, free tool for learning more about the people who visit your website and it is incredibly valuable in helping to decide where to focus your energy to improve your site. If you don’t have any kind of analytics set up on your website, stop what you’re doing and add Google Analytics right now.

I add Google Analytics on all of my websites and your basic setup gives you a ton of great information, but there are a few really easy ways to improve the basic Google Analytics setup and get much more value from the data. And the best part is you can make all of these changes in less than 15 minutes!
I can setup your Google Analytics Account for YOUR Website but be advised that a Google Gmail account is needed to which I will need access. You can create a new Gmail Account just for this Purpose and grant access or I can set up your Google Analytics Account under one of my Demo Gmail Accounts and grant you access to the Reports.

This post will give you step-by-step instructions for how to:

  1. Create annotations to mark major events for future reference
  2. Enable site search tracking
  3. Add event tracking for important offsite links
  4. Create goals to measure results 

1) Create annotations to mark website milestones for future reference

Annotations are an oft-forgotten tool in Google Analytics because they’re kind of hidden. They’re really helpful however, when you’re looking back at your analytics data and can’t remember why a particular traffic spike occurred or how the change you made to improve volunteer submissions actually worked out.

To add an annotation, take the following steps:

  1. Go to any of the basic Google Analytics overviews (ex. Audience Overview)
  2. Click the downwards arrow just below the graphic overview
  3. Click ‘+ Create new annotation’ on the right-hand side of the page
  4. Select the date of the milestone
  5. Add a note that provides the details of what happened (for example, “Created my first goal!”)
  6. Mark ‘Visibility’ as ‘Shared’
  7. Click Save

These annotations show up across all your analytics reports and they can be great indicators for how a particular change affected your site. You can add an annotation to indicate when a new website launches so you can quickly see how the website activity differs between the new site and the old one. It’s really nice to be able to quickly determine for example, that a new website led to a 275% increase in organic search traffic and a 27% increase in the time on site.


2) If your site has a site search, enable Site Search Tracking

This one only needs to be done if visitors can search your site for content that they’re having trouble finding. It’s particularly useful because you can quickly see what content you may need to consider placing in a more obvious location or what topics you should be writing about if the content doesn’t exist.

Here’s step by step instructions for how to enable Site Search Tracking

  1. Go to the Admin tab in your Google Analytics
  2. Go to the profile that you want to enable Site Search Tracking on
  3. Click on the ‘Profile Settings’ tab
  4. Scroll to the button and select ‘Do track Site Search’
  5. In the ‘Query parameter’ field, add your query parameter (see below for more)
  6. Do not check ‘Strip query parameters out of URL’
  7. Click ‘Apply’

Here’s how you figure out your query parameter:

  1. Open a new browser window or tab and go to your website
  2. Search for something random using your site’s search box (I always search for ‘PayPal’.
  3. Cut and paste the URL of the search results page into something like Microsoft Word so you can more easily read it
  4. Use your investigative skills and locate your search term in the URL.
  5. Just before your term, you’ll see an equals sign and a word or letter (ex.manfredk.com/search?keywords=paypal)
  6. The word or letter just before the equals sign is your query parameter. In my example, the query parameter is the word “keywords”. You can ignore everything else.

Some common query parameters are:

  • q
  • s
  • keyword
  • search
  • name

Once you’ve enabled Site Search Tracking, you can see what people are searching for by going to Content -> Site Search -> Overview in your Google Analytics. It’s important to note that it can take up to 24 hours before Google Analytics starts recording visitor searches so if you don’t see anything there immediately, give it a day and check again.


3) Add event tracking for any important offsite links

Adding event tracking is a little intimidating at first because you have to dive into HTML of a site in order to add it. If you know what to look for and use a few helpful tools though, it’s as easy as copying and pasting!

At a minimum, you should add event tracking to important offsite links like social media or email marketing subscription buttons (that go directly to a vendor like Constant Contact, Mailchimp or Campaign Monitor). You can also add event tracking to file downloads like important whitepapers, affiliate links or when someone clicks the ‘play’ button on a video.

The basic parts of adding event tracking are:
1) get your event tracking code and
2) adding that code on your website.

Fortunately, the kind people over at GAconfig have made both parts super easy and you can simply go to gaconfig.org/google-analytics-event-tracking and follow their instructions. To make things even more clear however, we’ll walk through a real-life example – adding Event Tracking to a Facebook link.

Part 1: Getting your Event Tracking code

  1. Go to gaconfig.com/google-analytics-event-tracking
  2. In Step 1, select Social Follow/Share/Like
  3. In the Category field, put “Social Media”
  4. In the Action field, put “Facebook”
  5. In the Label field, put “Like” or “Click”
  6. In the Value field you don’t need to add anything
  7. In the Non-Interaction field, select “true” if the person will leave your site when they click the link. In this case, they will be taken to facebook.comso select “true”
  8. Copy the code that begins with “onClick”. In this case, your code should beonClick=”_gaq.push([‘_trackEvent’, ‘Social Media’, ‘Facebook’, ‘Click’,, true]);”

That’s it! You’re half-way there!

Part 2: Adding the Event Tracking code to your website

Part 2 will vary depending on your specific website setup but for the sake of this example, I’ll assume that you have some kind of Content Management System (CMS) where the Facebook link exists in a WYSIWYG editor.

  1. Go to the page in your CMS where the Facebook link is set up
  2. Click on the HTML button. You will see a bunch of HTML pop up.
  3. Search for your Facebook link. It will look something like:<a href=”https://www.facebook.com/yourpagetitle”>Facebook page</a>
  4. Paste the code from Part 1 after the a  Facebook link quotation mark but before the first ‘>’.
  5. Your new code will look something like:<a href=”https://www.facebook.com/yourpagetitle” onClick=”_gaq.push([‘_trackEvent’, ‘Social Media’, ‘Facebook’, ‘Click’,, true]);”>Facebook page</a>
  6. Click ‘Update’
  7. Save the page

Playing around with the HTML may seem daunting at first, but once you do it a couple times, it’ll become second nature! Now that you’ve set up an event to track, you can actually view the data in your Google Analytics by going to Content > Events > Overview. Event tracking can be used in a lot of different ways to better quantify how visitors interact with your website.


4) Create at least one goal

Goals are the foundation of reporting concrete successes (or failures) of a website. There are variety of different ways that you can measure those successes but it’s important to establish at least one measurable goal for your website.

Setting up goals is particularly useful when you want to see how a particular blog post or marketing initiative lead to conversions on your website. Goals are often used in conjunction with Event Tracking.

Here are step-by-step instructions for setting up a goal for a form submission that redirects visitors to a confirmation page after filling out the form:

  1. Go to the Admin tab in GA
  2. Click on the profile that you want to add a goal to
  3. Click on the ‘Goals’ tab
  4. Click ‘+ Goal’
  5. Give the Goal a name (ex. Newsletter subscription)
  6. For ‘Goal Type’, choose ‘URL Destination’
  7. In the ‘Goal URL’ field, put the confirmation page’s end-URL (for example, /volunteer-signup/thank-you)
  8. In the ‘Match Type’ field, choose ‘Head Match’
  9. Add a Goal Value (ex. 1)
  10. Click ‘Save’

The goal value is usually used to associate a monetary value to a certain action on the site. For example, if 20% of people who fill out a contact form on your site end up becoming a customer and the average value of a customer is € 200.00, then the goal value would be € 40.00 (or 40).

If you aren’t selling a product or trying to acquire customers, you should still set up a goal value relative to your other goals on the site. For instance, newsletter subscriptions might be worth 1 and volunteer signups might be worth 5.


By incorporating these Google Analytics additions, you are setting yourself up to be able to see a much clearer picture of how visitors navigate your site, how they got there and how you can improve their experience. Let me know if you need any help to improve Google Analytics!