Features

Features > Biz

Google Analytics is a free web analytics application that is quickly becoming one of the most widely used web analytics tools around. A common misconception that many people have is that GA can only be used to track Google AdWords. That’s simply not true. GA can be used to track any online marketing activity. And […]

Google Analytics is a free web analytics application that is quickly becoming one of the most widely used web analytics tools around. A common misconception that many people have is that GA can only be used to track Google AdWords. That’s simply not true. GA can be used to track any online marketing activity. And not only will Google Analytics track online marketing, it will also identify the conversion events that your online marketing creates.

There are two distinct steps to configure Google Analytics to successfully track online marketing activities:

  1. Tag your advertising links
  2. Create goals in Google Analytics

Before we can really get into how to track online marketing we must understand what we can track. With Google Analytics we can track 5 attributes of our online marketing campaigns. Each of these attributes provides insight into what is, and what is not, working, and are the foundation for making good decisions when adjusting your online marketing activities.

5 Aspects of Online Marketing

  • The Campaign: The campaign is the high level marketing activity that you’re conducting. Think of it as a bucket that holds other activities. For example, you may conduct a big “back to school” marketing campaign. This campaign might involve an email blast to your newsletter subscribers, a special paid search campaign, and some banner ads. All of these activities are part of the “fall-sale” marketing campaign.
  • The Medium: The medium is the mechanism that is used to push the message to the customer. Continuing the fall sale example, the campaign has multiple mediums because we’re using multiple mechanisms to reach the consumer. We’re using email, banner ads and paid search. All are different mechanisms for pushing the message out.
  • The Source: The source identifies who is delivering the message to the customer and helps us better understand the medium. For example, there might be three sources for the paid search component of our campaign: “Google” for Google AdWords, “Yahoo!” for Yahoo! Search Marketing and “MSN” for Microsoft AdCenter.
  • Term: The term is only used for paid search tracking and identifies the keyword that the visitor used in their search. It should be noted that you do not need to use a term. Every search engine will, by default, pass a keyword to your site and Google Analytics will capture and store that keyword. However, not every search engine will pass along the exact term that the visitor entered.
  • Content: The content attribute is optional and stores information about the ad that the visitor clicked on. For example, we may want to send out two versions of our email newsletter during the back to school campaign. The emails will be sent at the same time, but will contain different formatting. We say these emails have different content. Using Google Analytics we can identify which ad performed better for us.

So now that we know what attributes of our online marketing we can track, how do we actually do it? We use a process called link tagging. Link tagging involves adding query string parameters to the destination URLs used in online ads. It doesn’t matter where the URL is used, it could be in an email, a banner ad or a paid search ad. If the URL has the appropriate query string parameters then Google Analytics can identify which ad the visitor clicked on. Once Google Analytics knows which ad the visitor responded to it stores the information in a cookie on the visitor’s machine. From that point forward, as long as the cookie exists, Google Analytics can connect the visitor’s actions with the originating ad.

We have one query string parameter for each campaign attribute.

Campaign Attribute

Query String Parameter

Campaign utm_campaign
Medium utm_medium
Source utm_source
Term utm_term
Content utm_content

All you need to do is assign a value to each parameter and attach it to the URL used in your online ad. What should you use for values? It doesn’t matter! Whatever you place in your parameters will be extracted by Google Analytics and appear in your reports. With that said, there are some best practices that will make your data easier to use.

  1. Avoid white spaces. Separate words with a dash or an underscore.
  2. Make sure that whoever is going to use the reports can understand the meaning of each value. For example, a value of ‘back-to-school-2007’ is easier to understand than ‘BTS07’.
  3. Be consistent. Create a naming convention for each parameter and stick to it. Don’t use CPC for some paid search mediums and PPC for others.
  4. Be aware that case matters. ‘CPC’ is different from ‘cpc’.
  5. Track your values from one campaign to another. I suggest using a spreadsheet to keep track of all the parameters you create. I like to use a Google Spreadsheet because it is easy to share with co-workers and clients. Add a column for each of the campaign parameters, a date column and a note column. If you’re savvy with a spreadsheet then use the CONCATENATE function to automatically create tagged URLs. You can find an example on my blog, Anyalytics Talk.

How about some examples? Let’s look at a few links that will be used in our fictional back to school campaign.

Tagged Link What It Means
http://www.mysite.com/index.php?
utm_campaign=back-to-school-2007
&utm_medium=email&utm_source=fall-newsletter
This link was part of the 2007 back to school campaign. It appeared in the fall newsletter email blast.
http://www.mysite.com/index.php?
utm_campaign=back-to-school-2007
&utm_medium=banner&utm_source=facebook
&utm_content=800×100
This ad was part of the 2007 back to school campaign. It was an 800×100 pixel banner ad that appeared on Facebook.
http://www.mysite.com/index.php?
utm_campaign=back-to-school-2007
&utm_medium=banner&utm_source=facebook
&utm_content=60×300
This ad was part of the 2007 back to school campaign. It was a 60×300 pixel banner ad on the Facebook site.
http://www.mysite.com/index.php?
utm_campaign=back-to-school-2007
&utm_medium=cpc&utm_source=yahoo
This ad was part of the 2007 back to school campaign. It was a CPC ad on Yahoo!. The keyword was whatever Yahoo! passed to the browser.
http://www.mysite.com/index.php?
gclid=CLTrqPOc2o4CFSBMGgod7ljIAg
This ad was part of the 2007 back to school campaign. It was a CPC ad on Google AdWords.

The great thing about link tagging is that Google Analytics creates a report based on each parameter. For example, there is a Campaign report that identifies all the values in your utm_campaign parameter. You can then drill into the campaign to see which sources, identified by the utm_source variable, were better at driving traffic. I’ll discuss how to use these reports below.

Here’s another tip. If you’re unsure about your tagged links, run a small test. Send an email to 10 co-workers that includes a tagged link. Ask them all to click on the link. Wait a few hours and then log into Google Analytics. You should see data from the link in the email.

Once the tagged links are published Google Analytics will start collecting data.

I can’t stress how important it is to tag your links. It is the single most important step to tracking your online marketing. If your links are not tagged you won’t be able to track the traffic from your online marketing activities. Un-tagged links is one of the most common problems I see when working with clients.

A Note About Google AdWords

I just spent all that time explaining link tagging and now I’m going to tell you that you do not need to do it … sort of. Google Analytics is integrated with Google AdWords and one of the benefits is a feature called auto-tagging. Auto-tagging automatically adds a unique parameter to all of the destination URLs in your AdWords campaigns. There’s no need to go through the link tagging process, the unique parameter is used by Google to identify the ad that the visitor clicked on. Here’s an example of what an auto-tagged link looks like:

http://www.google.com.com/analytics/?gclid=CLTrqPOc2o4CFSBMGgod7ljIAg

Google Analytics decodes the unique parameter (named gclid) and creates the appropriate values for campaign, medium, source, term and content. The campaign will be the name of the campaign as defined in AdWords. The medium will be ‘cpc’ and the source will be ‘google’. Auto-tagging has a number of implications that you should take into consideration when tagging your non-AdWords links:

  1. As I mentioned above, Google will automatically apply a medium of ‘cpc’ to your AdWords campaigns. If you want all of your paid search data to appear together (which you do) then your non-AdWords paid search links must also have a medium of ’cpc’’. This will cause GA to group all paid search traffic together.
  2. The value for the content variable will be the name of the ad that you’ve created in AdWords. An ad with the title ‘Buy Widgets Now!’ will have a content value of ‘Buy Widgets Now!’.
  3. The campaign value will be the campaign name that you define in AdWords. If this campaign has multiple source or mediums you want to make sure that your manually tagged links have the same value for campaign.

Remember, auto-tagging only works for AdWords. You still need to tag other paid search URLs.

Goals

Another extremely important step in tracking the success of your online marketing is creating goals. Goals are outcomes that we want our site visitors to achieve. Every website has a purpose, it could be to sell a product, provide information to the visitor or generate a sales lead. Measuring these outcomes is vital to web analytics and evaluating the performance of online marketing. To measure an outcome we need to configure goals in Google Analytics.

Goals in Google Analytics are simply pageviews. To set up a goal you need to identify the page on your website that indicates that a visitor has reached the desired outcome. To create a goal simply navigate to the goal setting for a specific profile and paste the URL in the Goal URL field for a profile.

Goal Settings

There is more to setting up a goal. You could create a funnel to show the visitor’s path to the goal. But I’m not going to discuss advanced goal configuration here as I’m already pushing my word count limit. You can read more about goals and how they are configured in the Google Analytics help section or on my blog Analytics Talk.

Once you create goals, and once you tag your links, Google Analytics will automatically identify which marketing activities are generating goals. There’s no special configuration necessary to connect goals to marketing activities. GA will do that for you.

Analyzing the Data

You’ve tagged all your advertising links. You’ve created your goals. Now what? It’s time to evaluate your online marketing campaigns. This is the fun part. As I mentioned above Google Analytics creates a report for each of the query parameters that we attach to the URLs in our ads. Each report provides valuable information about the traffic and conversions that the markting generated.

Let’s start with the campaign report. It provides a high level view of how the campaign is performing. Google Analytics provides some standard metrics indicating how much traffic the campaign is generating (visits), how engaged that traffic is (pageviews per visit and average time on site) and how good the campaign is at attracting new visitors (% new visits). Campaigns are usually focused on attracting new customers to the website (which should yield a high % of new visits) or getting existing customers to come back (which should yield a low % of new visits).

Site Usage tab

Remember, these numbers just tell us about the traffic. We also want to understand if the ad generated any conversions. To view these metrics we use the Goal Conversions tab.

Goal Conversion

You’ll notice that the columns of the table have changed. We now see conversion rates for the various goals that were configured. But let’s go a bit deeper. Each tagged advertising link has a campaign, a medium and a source. We can drill into each campaign and evaluate how well the various sources and mediums are working. First, click on a campaign in the Campaign column.

Goal Conversion: visits sent

We’re now looking at summary information for this campaign. I can use the Segment drop down box to view the sources and mediums associated with the campaign.

Goal Conversion: segment dropdown

You can see how I’m evaluating what drove the success of my campaign. Was it a particular partner (i.e source) or a particular medium (i.e mechanism of communicating with the customer)? Again, I can use the Site Usage tab to measure how well a source or medium does at generating traffic and the Goal Conversion tab to measure the conversions for each ad.

The analysis does not end here. There are other reports that help us compare the effectiveness of our marketing in other ways. One of my favorate reports is the All Traffic Sources reports. This report creates a master list of all of the sources and mediums that drove traffic to the site. This report is great for comparing ongoing marketing activities.

Site Usage tab

We can dig into each campaign even further using the Segmentation feature in Google Analytics. Let’s say we want to know where, geographically, our campaign visitors are located. I can select a campaign from the Campaigns reports and then use the segment dropdown box located at the top of he report.

If I choose ‘city’ Google Analytics will show me which cities generated the traffic for the campaign. This is particularly useful if you’re doing any geo-targeted advertising.

So there you have it. Remember, you must tag your links and create goals to accurately measure the performance of your online campaigns. If you do you’ll have really valuable data to when evaluating your online marketing activities.

Fuel is a brand new, affordable conference about powering your business with the web: London June 13

28 Responses to “Measure Online Advertising with Google Analytics”

  1. Ed Valenti says

    This is a very useful and valuable source of information. Great to know that it’s NOT just for AdWords but realistic goals can be set for any company website.

  2. Wayne says

    It is often hard to explain this service to a new client. Thanks for breaking it down. I will have to re-use this text when I talk to clients about how GA can help them track campaigns.

  3. Josh G says

    FYI, there is a tool for generating the tracking urls to be found on the Analytics site. http://www.google.com/support/analytics/bin/answer.py?answer=27255&hl=en

  4. links for 2007-10-17 « Donghai Ma says

    […] Vitamin Features » Measure Online Advertising with Google Analytics (tags: reference tips tutorial web marketing) […]

  5. Vikram says

    GA only provides only 4 goals to be set how can we increase the number of goals

  6. Web 2.0 Announcer says

    Vitamin Features » Measure Online Advertising with Google Analytics…

    […][…]…

  7. links, ideas and geek stuff » Blog Archive » links for 2007-10-18 says

    […] Vitamin Features » Measure Online Advertising with Google Analytics […]

  8. links for 2007-10-19 « Simply… A User says

    […] Vitamin Features » Measure Online Advertising with Google Analytics (tags: analytics google marketing advertising statistics tutorial adwords seo **) […]

  9. Measure Online Advertising with Google Analytics » Technology News says

    […] Source: Vitamin Features […]

  10. Blog at veanndesign.com » Sunday Weekly Roundup #13 - 10/21/2007 says

    […] Measure Online Advertising with google analytics […]

  11. Period Three Blog » Google Analytics - How to says

    […] This is a great article on Vitamin about Google Analytics - you should defnately have Google analytics setup on your website… […]

  12. tim says

    Setup multiple profiles for the same URL.

    You should keep one unfiltered profile and then add more profiles for adding more goals and using GA filters (as they are destructive filters).

  13. The Cotton Club » Blog Archive » Measure Online Advertising with Google Analytics says

    […] I ran across a good article on Vitamin about using Google Analytics to track your Online Advertising (keywords, banner ads, ppc’s, etc.)  GA is the analytics software that we use and recommend to our clients as well, I can’t say that I use it to it’s potential though, I pretty much just look at traffic information and search terms. I am able to get the information I need out of the reports in just a few seconds which is very nice.  I also like having the ability to have a weekly report automatically generated and emailed to me, pretty handy info.  If I were doing adwords or online advertising I would definitely be spending more time in GA than I do now, it’s a must have if you are into Online Advertising.  Here is a Link to Vitamin Features » Measure Online Advertising with Google Analytics Social Networks: […]

  14. I like UX » Blog Archive » A few UX Related Links says

    […] Measure Online Advertising with Google Analytics has some good tips re: setting up Google Analytics. […]

  15. Rob Enslin says

    Great post Justin. You’ve made me see just how powerful GA can be. I need to prepare a marketing campaign at work and your post has helped put me on the right track.

    Now I just need to figure out how to direct the url with utm string to the correct pages on my website. I assume that’s best achieved setting up re-directs on my web server?

    Cheers and thanks.

  16. sam says

    You are google analytics guru ! thanks for the great stuff. really useful !

  17. Ben Congleton says

    I just updated a piece of software I am working on called Hab.la to automatically report user behavior to google analytics. Hab.la is a web service that let’s you chat with visitors to your website using your existing instant messenger. I.e. visitors to your site appear as buddies on your buddylist.

    In any case, it is now seamlessly integrated with Google Analytics so you can keep track of how many customers send messages, how many receive messages from operators.. the number of messages sent etc. Really interesting stuff. It’s a great example in how Google Analytics can do reporting for other applications that enhance your website experience:

    I blogged about this at: http://hab.la/articles/2007/10/27/now-with-google-analytics-integration

  18. australien - fan says

    I used to evaluate my log files offline with a nifty little software tool. However, I haven´t touched it ever since I was introduced to Analytics. I like the convenience of being able to check stats from any computer. Love it.

  19. picture of Justin Cutroni Justin Cutroni says

    Hi Rob,

    The implementation of a redirect is really important. You need to insure that all of the Google ANalytics campaign parameters are present in the URL of the final landing page. You can use a server redirect or some programmatic redirect (like the header call in PHP). As long as the query string parameters persist the campaign will be tracked.

    Thanks for reading and thanks for the comment.

    Justin

  20. picture of Justin Cutroni Justin Cutroni says

    Hey Ben,

    Great application of Google Analytics. There are a couple of things that I think you should keep in mind. All of this extra chat data is going to artificially inflate some of the metrics. You’ll want to use filters to maintain the accuracy of the data. Also be aware of any personally identifiable info (PII) that you may be collecting. GA should not be used to collect any PII.

    Justin

  21. Adam Tornes says

    Google Analytics is great. I’d also highly recommend using the tools at Compete.com. They are great for planning online marketing and advertising campaign.

  22. Gazeteler says

    Thank you for the information about google Analytics. This is very good tool.

  23. Google scares me! says

    I have found it a very powerful and useful tool. It can save newbie webmasters lots of time in the long run, so it’s worth getting your head round.

  24. Zaigham says

    Very nice and easy to digest post… I hope I can now look deep into GA Goals Tracking.
    Thanks.

  25. Stuart Steel says

    Great article! I’ve been putting off delving into these areas of google analytics for want of time - now I’m keen to re-engage.

  26. Dan says

    Does anyone know how to do this. I want to know how many people in IE are using 1024 X 768 screen size. Can Analytics do this? It seems as though my nav is broken in IE 6 and below at 1024 X 768 and I just want to know how many visitors are affected by this.

    Thanks

  27. picture of Justin Cutroni Justin Cutroni says

    Dan,

    Google Analytics has a number of reports re: the visitor’s environment. They are located in the Visitors > Browser Capabilities section.

    Hope that helps,

    Justin

  28. Michael says

    Great article - like the bit for tracking email campaigns using the variables in the query string. Does anyone know the maximum number of goals that can be set up in Google analytics?

Leave a Reply

Basic HTML (<strong>, <em>, <a>, etc.) is allowed in your comments. Please be respectful and keep your comments on-topic. If we think you're being offensive for no reason, we'll delete your comment.

Comments RSS