All About Google Analytics Goals

July 7, 2007 by Justin Cutroni

Goal!Google Analytics Goals are a way to measure conversions on your website. A conversion occurs when a visitor does something you want them to do. This could be completing some type of high value process or viewing a specific page on your website.

Setting up goals is one of the most important steps when configuring Google Analytics. Without goals, there is no easy way to measure conversions. If you’re unfamiliar with conversion, or the related metric conversion rate, please take a moment to read about why both of these metrics matter. In general, counting the number of conversions and tracking the conversions rate is a good way to measure the success of your website.

During this post I’m only going to cover how goals work and how to set them up. I’ll discuss how to use goals in my next post.

What’s A Goal (Technical)?

At its core, a goal is just a pageview. It’s could be a specific page on your website that you want the visitor to see or the page that is displayed when a visitor has completed a process. A goal is literally defined by the URL of said page. As GA processes site data, it increments the goal counter each time a pageview for the ‘goal’ page is found. It should be noted that if the goal page is found multiple times in a single visit then goal counter is only incremented once.

I’ll explain a little bit more about how goals work, at a technical level, at the end of this post. There’s a few things I need to cover before we get into the nitty-gritty tech stuff.

Creating A Goal

There are multiple ways to define a goal. The method you choose depends on the complexity of your website. The easiest way to create a goal is to copy the URL of your goal page from a browser into the Goal URL text field. So, if the process ends with http://www.epikone.com/thankyou.php, enter http://www.epikone.com/thankyou.php in the Goal URL field. Here’s another example. If the URL of the goal page is http://www.epikone.com/thankyou.php?submit=true then enter http://www.epikone.com/thankyou.php?submit=true into the Goal UL field.

Goal Settings

A goal can also be defined using a regular expression. Rather than enter an exact URL in the Goal URL field you can enter a regular expression. This is particularly helpful if the website is dynamic. If the goal page contains a unique identifier then you can’t copy and paste a URL into the Goal URL field. Every goal URL will be different. You need to use a regular expression for the Goal URL. I’ll discuss this below in the Additional Settings section.

Goal Name
When defining a goal you also need to give the goal a name. There’s nothing special here. The Goal name will be used to identify the goal in the Google Analytics reports. Don’t use anything too long, it can make the reports difficult to read.

Activate Goal
The Activate Goal setting is an on-off switch. Switching the setting to ‘Off’ will stop tracking for the goal. Why would you want to turn a goal off? Google Analytics will calculate an overall website conversion rate using all of the goals you define for the site. If you create a goal that is temporary, say for a specific campaign, then it could artificially skew the overall site conversion rate if you leave the goal on after the campaign, ends.

Additional Settings

Each goal has an Additional Settings section that can help configuration in unique situations. It’s located at the bottom of the page under the Funnel settings. By the way, you do not need to create a funnel when you create a goal. Defining a funnel is optional.

Additional Settings

Case Sensitive
The Case sensitive setting can be used with websites that have mixed-case URLs. So, if your Goal URL value is case sensitive then click the Yes radio button. However, profile filters can affect this setting. I’ll explain more at the end of this post.

Match Type
Match!
The Match Type setting is a powerful setting that can aid in goal tracking. For example, if each goal page contains a unique customer identifier then it will be impossible to paste a single URL into the Goal URL field without the use of the more sophisticated match types. Google Analytics has three different match types that can be used for Goals and Funnels.

Exact Match
When you choose Exact Match the value in the Goal URL field must exactly match the URL of the goal page displayed in the location bar of the visitor’s browser. This is the setting you want to choose if you copy the URL from the browser and paste it into the Goal URL field. If your website uses a unique identifier in the goal URL (like a visitor ID number or an order ID number) do NOT use an Exact Match. Use a Head Match or a Regular Expression.

Head Match
The Head Match is like a light-weight regular expression. You should use a head match when a small part of the goal URL differs from one visitor to another. With a head match, if the value entered into the Goal URL matches any part of the URL in the visitor’s browser then the goal will be counted. The Head Match will match both path data and query string variables.

For example, if there is a unique identifier in the goal URL then you can use the head match to define the goal. Let’s say the Goal URL for a visitor is http://www.epikone.com/thanks.html?submit=true&id=12345. The id query string parameter is a unique identifier that will change from one visitor to the next. So, I could use a HEad Match and enter the following into the Goal URL: http://www.epikone.com/thanks.html?submit=true. Because the Goal URL matches PART of the actual URL for the goal page, GA will count this goal.

Regular Expression
This setting defines a goal using a regular expression. If the regular expression entered into the Goal URL matches any part of the goal URL then the goal counter is incremented. Using a regular expression is particularly useful because it let’s ‘wrap up’ goal tracking so you track multiple goals in a single goal. You can track multiple goals using a single goal because a regular expression can match multiple URLs. For example, let’s say you want to create a goal that tracks and PDF file download. You could enter \.pdf into the Goal URL field. I actually wrote about using regular expressions to get more out of goals last year.

Goal Value
Money

The final option in the Additional Settings section is Goal Value. Use this field to monetize non-e-commerce goals. For example, if each Contact Form submitted by a user is worth $100, enter 100 in the Goal Value field. Google Analytics will use 100 to calculate return on investment (ROI) and other revenue based calculations. If e-commerce tracking is active for a profile, and you would like to use e-commerce data for your goals, simply leave the goal value field blank. Google Analytics will pull in the e-commerce data.

One thing to note is that the Additional Settings are applied to both the values in the Goal URL and Funnel steps. I know I’m not covering funnels in this post, but this is a common mistake. It is not possible to use an Exact Match for your funnel steps and a Regular Expression for the Goal URL.

Tips, Gotchas & More

Let’s dig a bit deeper and learn how GA actually counts goals. During data processing the value you use to define a goal is compared to the Request URI value. You remember the Request URI, right? It’s part of the URL (everything after the .com, .net or .org). I know this seems strange especially because a goal can be defined by a complete URL, but this is how the data processing works.

It is important to understand that the Request URI is used during goal processing because if you create a filter that modifies the Request URI then it might break your goals.

Here’s an example. Let’s say the Request URI, in its original form, is /pages/html/index.html. You decide to modify this value using an advanced filter and it becomes /pages/index.html. If you define a goal using /pages/html/index.html then the goal will not work. The reason is that the Request URI (/pages/index.html), which was changed by the advanced filter, no longer matches the value entered as a goal (/pages/html/index.html).

How about another example? If you force the case of the Request URI to lowercase, and then define a filter using all uppercase characters AND specify that the goal is case sensitive, then the goal will not work. Get it?

I know this seems strange, especially when most people use an exact match to define their goals. But that’s the way goals work, honest! Don’t be alarmed by this. Using an Exact Match is a perfectly fine way to define a goal.

Here’s a tip. You can also define goals based on data created by urchinTracker(). Remember, if you pass a value to urchinTracker() then that data becomes a pageview in Google Analytics. These pageviews can then be defined as goals. You can read more about urchinTracker() in this series of posts. I’m using this technique to track RSS subscriptions on my blog.

And finally… A great way to debug goals is to use the Top Content report. Remember, a goal is just a pageview. If GA is reporting 0 goals, then check the top content report. Does the goal page appear in the Top Content report? If it’s missing, then there is probably an issue with your page tags. But, if the goal page is present in the Top Content report then there is probably an issue with your goal setup.

Wow… that’s a long post. Does it all make sense? Leave a comment and let me know!


Share:
These icons link to social bookmarking sites where readers can share and discover new web pages.

  • Digg
  • Technorati
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • Ma.gnolia
  • YahooMyWeb
  • co.mments
  • Reddit
Subscribe:
  1. 43 Responses to “All About Google Analytics Goals”

  2. Very good explanation on how GA goal works! Thank you! :)

    Only a question… the only way to count with a goal the “pageviews” instead of the “unique pageviews” is to pass values to urchinTracker()?
    And this configuration can crete conflict to the natural counter of pageviews and unique pageviews on that pages?

    Thanks,
    Tucana

    By Tucana on Jul 9, 2007

  3. Hi Tucana,

    A goal can be defined by a virtual pageview that is created using urchinTracker(). For example, when you click on the RSS subscription icons I call urchinTracker and create a pageview for /blog/rss. I then created a goal for RSS subscription and entered /blog/rss into the goal URL.

    The number of goals should match (or be close to) the number of Unique Pageviews for a page. Google Analytics counts the number of goals based on Unique Pageviews, not pageviews. This can’t be changed.

    Sorry if that was confusing.

    Justin

    By Justin on Jul 9, 2007

  4. Great article, really looking forward to later installments on funnel etc. It would be good to cover some edge cases: Creating a goal is not retroactive. Disabling a goal does not clear past , that disabling a goal does not completely clear past “achievements”, so if you repurpose the goal for something new later, the “achievements” come back. There are probably more, but those were the ones we encountered (and there are definitely more with funnels).

    By Gleb Arshinov on Jul 9, 2007

  5. Hi Gleb,

    Thanks for adding to the discussion. You make a great point. Creating a goal, or changing a goal, has no impact on historical data. That’s a great point. Many people forget that changes made to a GA configuration do not alter the historical data.

    Thanks for reading and sharing!

    Justin

    By Justin on Jul 9, 2007

  6. Hi Justin,

    thanks for the reply, I was confused because I don’t have read your old post (august 2006) on GA Goals, now I have understand better the virtual pages created calling urchinTracker().

    Finally there is no way to track with GA Goals the total pageviews on a specific page of a site?

    For example a site that is lead generator wants to track all the emails generated (pageviews of the confirmation page), not only the unique emails (unique pageviews of the confirmation page).

    Thanks,
    Tucana

    By Tucana on Jul 10, 2007

  7. Tucana,

    Correct. The number of coal conversions should match the number of unique pageviews for the goal page and not the total number of pageviews.

    Hope that helps.

    Justin

    By Justin on Jul 11, 2007

  8. Your wrote:

    “If e-commerce tracking is active for a profile, and you would like to use e-commerce data for your goals, simply leave the goal value field blank. Google Analytics will pull in the e-commerce data.”

    I have been recently told by my Google rep that with v2 of GA, this no longer works, but I am just having trouble believing it. Do you have the dynamic goal value working?

    By Chris on Jul 17, 2007

  9. Hey Chris,

    The new GA should use the e-commerce value for the goal if the goal value is left blank. I have not heard anything contrary to this.

    I’m not exactly sure I know what you mean by dynamic goal value. The only way a goal can have a dynamic value is if the e-commerce tracking code is used.

    Hope that helps and thanks for reading.

    Justin

    By Justin on Jul 17, 2007

  10. By dynamic goal value, I mean if you leave it blank, it grabs whatever the value of the ecommerce transaction is (when the ecommerce tracking code is used). I can’t get this to work (although I believe we had it working in GA v1) and was wondering if you have a profile that is currently working by grabbing the values of your ecommerce transactions and attributing that to the goal.

    I have left the field blank, installed ecommerce tracking and I am not getting any values. When I contact my adwords rep, he investigated and told me that the value can now only be static…which I am having trouble believing (accepting ;))…

    By Chris on Jul 18, 2007

  11. Hey Chris,

    Thanks for the clarification. GA should be using e-commerce value for the goal. The functionality in V2 should be the same. It does appear that this is currently broken, but I’ll check.

    I’ve got some e-commerce profiles that are collecting e-commerce data but not applying it to the goal, which is wrong.

    Thanks for the heads up and I’ll see what I can do.

    Justin

    By Justin on Jul 18, 2007

  12. Hey guys, do i need to put the Analytics code on all the pages in the funnel i’m creating?

    By George on Jul 24, 2007

  13. Hey, what a great post! But I have one problem with google analytics right now and that is, how do you remove goals? I didn’t have it propertly installed, and now they are annoying to see!

    Any suggestions? thanks

    By brian on Aug 20, 2007

  14. Hi Brian,

    Hmmm, I’m not quite sure what you mean. Are you asking how to remove old goal data from the reports? If so, you can’t. Once the data has been processed and is in the reports it can not be removed.

    Or, are you asking how to turn a goal off? In that case you can do two things. First, you can use the ‘Activate Goal’ setting. It’s located under the Goal Name field. Or you can simply erase the value for Goal Name and Goal URL.

    Hope that helps and thanks for reading!

    Justin

    By Justin on Aug 21, 2007

  15. Justin,

    Do you have any new information about this?

    —–

    Hey Chris,

    Thanks for the clarification. GA should be using e-commerce value for the goal. The functionality in V2 should be the same. It does appear that this is currently broken, but I’ll check.

    I’ve got some e-commerce profiles that are collecting e-commerce data but not applying it to the goal, which is wrong.

    Thanks for the heads up and I’ll see what I can do.

    Justin

    ——

    I am still having a problem getting this to work.

    Thanks,
    –Mike

    By Michael on Aug 21, 2007

  16. Hi Mike,

    Sorry, things have been a bit crazy so I haven’t followed up.

    Justin

    By Justin on Aug 22, 2007

  17. Hi Justin,

    I’m trying to set up a 3 step goal funnel, but the third step is showing 100% conversion. Looking at examples of other funnels, I can’t see what we’re doing wrong.

    Does it have any impact if the url for the final 2 steps is https?

    Thanks,
    Alex

    By Alex on Aug 24, 2007

  18. Hi Alex,

    To answer your second question, no. It does not matter if the second step is on a secure server.

    Are you using a regular expression or head match to define the page that is showing 100% conversion? If so, it could be that the expression is matching too many URLs. I would also take the time to walk through the process on your site. Maybe the page is actually coming up more than you expect.

    Hope that helps.

    Justin

    By Justin on Aug 24, 2007

  19. Hi Justin

    I am also having problems getting the ecommerce value to the a goal value. I’m on a search now, I’ll post anything I find.

    Simon

    By Simon Luijk on Sep 12, 2007

  20. So this is the responce I got from Google.

    Thank you for your message regarding the Goal Value. Please know that it is not possible to use actual e-commerce values in your goals. I apologize for the confusion. To view the e-commerce data for your goals, please visit the E-commerce section in your account.

    By Simon on Sep 12, 2007

  21. Hi Simon,

    Thanks for doing some leg work and contacting Google. I checked some data and you’re right. E-commerce values are not being used as conversion values. I’ll need to follow up with my contacts on the support team for additional information. I know that initially the e-commerce data was supposed to be used as the goal value.

    Thanks for your help.

    Justin

    By Justin on Sep 13, 2007

  22. Hi Justin,
    I have 2 websites where people can subscribe to my newsletter. It’s the same list and the “thank you page” (on Site A) is shown whether they subscribe from Site A or Site B.

    I’d like to be able to use GA to measure the conversion rate for each site. I’d rather not have a second thankyou page as I keep updating it with special offers etc.

    I’ve searched the groups, GA help, and your post but this multi-site to 1 goal tracking is not so clearly explained.

    It’s not clear to me how to set this up? I have a profile set up for each site but not sure what tracking code to use on the thankyou page and what else I need to do?

    -Peter

    By Peter Koning on Sep 26, 2007

  23. Hi Peter,

    Here’s what I would try…

    First, if you have multiple domains then you need to use the cross-domain tracking feature in GA. The reason is that you want to originating source for each conversion.

    To determine which site the visitor was on prior to the thank you page you can use the reverse goal path report.

    Good luck,

    Justin

    By Justin on Oct 6, 2007

  24. Hi Justin,

    I have some question regarding setting up funnels.

    I have set up a goal where the user purchase the item from my website and there are various ways to get to the goals. Here are few simplified examples:

    I.
    1. Page where the item is listed
    2. Click on buy item from the list page
    3. Confirmation page
    4. Thank you page (Goal)

    II.
    1. Page where the item is listed
    2. View the details of the item (new page)
    3. Click on buy item from the detail page
    4. Confirmation page
    5. Thank you page (Goal)

    Is there a way to setup only one goal for this particular goal?

    Will this funnel tracks both cases above,
    Step 1: List Page
    Step 2: Detail Page
    Step 3: Confirmation Page
    Goal : Thank you page
    ?

    Thanks

    Eric

    By Eric Purwaka on Nov 5, 2007

  25. Hey Eric,

    It’s really hard to ‘lengthen’ a funnel in Google analytics. This is complicated bythe fact tht GA has some funny behavior when it comes to funnels. Here’s what I mean. If a visitor starts a funnel, and completes a funnel, but does not hit all of the pages inthe funnel, GA will ‘backfill’ the funnel to make it appear as though they did hit all the pages. Why, I’m not sure. It will still show all the entrances and exits as well.

    So, knowing this, you could create a funnel for the longest path on your site. Then use it to see where people are entering and leaving. I would also suggest using the navigation summary for the various pages in the funnel to gain more insight into the exact movement between funnel pages.

    Hope that helps and thanks so much for reading.

    Justin

    By Justin on Nov 17, 2007

  26. HI,
    I have a problem; I want to track the funnel people use to order from my site. They can come to a hotel page (I have two deferent hotel page, one a regular one and one as a landing page from Addwords)and go directly to the order form or go through the shopping cart first.
    Since in both cases the first page is the same and the goal page is the same, I get the same results (as you explained). Any idea how to solve that? Thanks

    By rami gur on Dec 6, 2007

  27. Hi Rami,

    You need to change the pageview that is registered for either the goal page or the initial page. Essentially you need to differentiate the pageviews. Check out this post on using urchinTracker() to differentiate pageviews.

    Good luck,

    Justin

    By Justin Cutroni on Dec 9, 2007

  28. Wow, I’m very impressed with your knowledge off many apects of site analytics, thanks again! Question….

    In Google Analytics, for the Traffic Source report for Source/Medium, i was testing new links and I’m getting 0 as the number of visits for one of the links. Have you seen this before? The other links report fine.

    myspace / banner 0 0.00% 0.00% $0.00

    Thank you

    By Jacob on Dec 14, 2007

  29. Hi Jacob,

    Thanks for the comment, I’m glad you find the blog useful.

    If you’re seeing ‘myspace / banner’ in the reports then you should have data. I would double check that the tracking cookies are set correctly. Try clicking on the banner and, once you’re on your site, check your cookies. You should see one named _utmz and you should see data about the banner.

    Hope that helps and thanks again for reading.

    Justin

    By Justin Cutroni on Dec 14, 2007

  30. Justin,

    If I have two distinct conversion paths that lead to the same thank you page, is there any way to track the goals separately by using filters? I can’t edit the GA code since it’s on a 3rd party shopping cart.

    Thanks.
    Tyson

    By Tyson on Jan 3, 2008

  31. Hi Justin,

    Any idea what can be causing a pretty big discrepancy in the goal conversion numbers on the goals “Overview” page against the numbers in the “Funnel Visualization” page?

    Let me explain further: I have a goal in place on my website with 5 steps. On Google Analytics, the overview page says I have 114 conversions, but when I go on the Funnel visualization page I realize I have only 52 total conversions (”52 visitors finished”).
    Can it be because “required step” should not be checked? I have no clue about such a discrepancy between numbers.

    Any idea?

    Thanks!

    By Christophe on Jan 9, 2008

  32. Tyson,

    There is only one way to diferentiate the conversions, and that’s using the funnel visualization report.

    Try using the ‘required Step’ setting in the funnel visualization report. This setting mandates that the conversion process include a specific step. If it does not, then the funnel visualization report will not count a conversions.

    Christophe,

    Your problem is related to the required step setting. Check out what Tyson is trying to do.

    Hope that helps and thanks for reading,

    Justin

    By Justin Cutroni on Jan 11, 2008

  33. I am a new user to google analytics and have just set a goal and filters; however, I found that the URL address that I had typed in are incorrect. Any idea how to go back and revise it?

    Any help would be much appreciated!

    By cherilyn on Jan 29, 2008

  34. Hi
    Is there a way to view the visitor source for those visitors that have completed a goal? ie if 100 people have signed up to my newsletter (and the thank you page is the goal) I would like to know how they got to the site ie which search terms they used in google, etc.

    I know I can see the funnel and previous pages using reverse path, but that doesn’t seem to tell me how they got to the site in the first place and I want to know which are my most valuable organic search terms.
    Many thanks
    Bronwen

    By Bronwen on Feb 5, 2008

  35. Hi Cherilyn,

    There is no way to change the historical data in Google Analytics. Once the data has been processed and is in GA’s database it can never be modified. You can still modify the URL used for the goal, but it will only affect future data, not historical data.

    Thanks for reading,

    Justin

    By Justin Cutroni on Jun 24, 2008

  36. Bronwen,

    When looking at any report, just click on the Goal Conversion tab to view conversions. So, if you are looking at keyword data, and you click on the Goal Conversion tab, then GA will show you the conversions for each keyword.

    Good luck with your analysis!

    Justin

    By Justin Cutroni on Jun 25, 2008

  37. What would the potential difference between the number of unique pageviews and analytics goals be due to?

    By Joseph on Jul 3, 2008

  38. Hi Joseph,

    If the number of unique PV is not matching the number of conversions you may want to check how the goal is defined. There may be an issue with the regular expression used or head match that is used.

    Hope that puts you on the right track.

    Justin

    By Justin Cutroni on Jul 3, 2008

  1. 6 Trackback(s)

  2. Jul 10, 2007: Google Analytics Review « Internet Marketing Blog by Noon-an-Night
  3. Jul 12, 2007: Google Analytics Experts → From EpikOne | All About Google Analytics Goals
  4. Jul 24, 2007: The Venture Skills Blog Page not found again! 404 in depth «
  5. Aug 15, 2007: Tracking Multiple Sub-domains in Google Analytics » Viget’s Four Labs
  6. Mar 12, 2008: Undermining analytics is just plain stubborn : MediaVision Blog : Search Engine Marketing
  7. Apr 24, 2008: Get more from Google Analytics by tomorrow morning | Tracking Tourism: The Tourism Research Blog

Post a Comment