Segmenting Visitor Loyalty Reports in GA

July 17, 2007 by Justin Cutroni

[ UPDATED: I’ve added some more information re: filtering direct and referral traffic. ]

This is a quick post. The goal is to help all you GA users that read Avinash’s most recent post about measuring success for non-e-commerce sites. Avinash lays out three recommendations including:

3. Segment the data! For Visitor Loyalty or Length of Visit what are the most important acquisition sources? What are the keywords that drive valuable segments of traffic to the website? As you look at longer time periods what pieces of content do people with longer visits consume? And so on and so forth. Segmentation is key to insights that will drive action.

Specifically, Avinash recommends that you segment the following reports in GA (or whatever tool you use):

  • Visitor Loyalty
  • Visitor Recency
  • Length of Visit
  • Depth of Visit

However, if you’re a GA user you can NOT segment these reports from the reporting interface. The only way to segment the Visitor Loyalty reports is via filters and profiles.

When you apply a filter to a profile it segments the data during processing. Here’s an example. Let’s say you add an include filter to a profile. Here’s the filter:

Include filter for segmentation

This filter only includes data that comes from the cpc or ppc medium (paid search). So all of the reports in the profile only contain data from paid search campaigns. By using the filter you’ve segmented the data.

Let’s take this one step further. We’ve just filtered the data by the paid search medium. Now we want to further segment by each search engine (i.e. Yahoo!, MSN, Google). We could create a second filter based on the campaign source:

Campaign Source Filter

Now the data in this profile, and the Visitor Loyalty reports, is specific to paid search activities from Google. We’ve successfully implemented Avinash’s recommendation.

You can adjust these filters (and thus the segmentation) based on the values of Campaign Medium and Campaign Source. To create a profile with only email traffic change the medium filter above so the filter pattern is ‘email’.

Remember, the values of Campaign Medium and Campaign Source can have a default value (like organic, referral or direct) or a set value that comes from the utm_medium and utm_source parameters used in link tagging. You can read more about link tagging in a previous post I wrote.

You can always find the values for Campaign Medium and Campaign Source in the Traffic Sources > All Traffic Sources report, just segment the report using the Medium or the Source.

20070717_all_sources.png

Here are the top 10 traffic sources for Analytics Talk:

20070717_sources.png

If I want to create a profile for traffic from the Official GA blog I would use an include filter, based on Campaign Source, with ‘analytics\.blogspot\.com’ as the filter pattern. Remember, the filter pattern is a regular expression!

To filter direct traffic you should set the Filter Field to Campaign Source and the pattern to ‘\(direct\)’. For referral traffic, set the Campaign Medium to ‘^referral$’.

Is this an intuitive approach to segmentation? Not really. But it works perfectly. When you set up accounts create profiles for major acquisition mediums and sources to gain the insight you need to judge success.


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. 18 Responses to “Segmenting Visitor Loyalty Reports in GA”

  2. Love the post! Do you know how to filter just direct & then just referral traffic? That’d be very helpful when doing this type of thing. Thanks!!

    By Will on Jul 17, 2007

  3. Hi Will,

    To filter direct traffic you should set the Filter Field to Campaign Source and the pattern to ‘\(direct\)’. For referral traffic set the Campaign Medium to ‘^referral$’.

    Glad you like the post and thanks for reading!

    Justin

    By Justin on Jul 18, 2007

  4. Awesome awesome awesome. Thanks for a great blog!

    By Will on Jul 18, 2007

  5. Can you use two include filters in one profile? Perhaps I misunderstood what you said above, are you saying you can create one include for paid search then another for campaign source in the same profile?

    Is it just the case that you cannot have two include filters for the same filter field - for example you cannot have two includes filtering on Network Location, only the first one will work?

    thanks

    By Brian on Jul 20, 2007

  6. Hi Brian,

    In the example above I use two include filters on a single profile. The first filter is on the medium and the second filter is on the source.

    You’re correct, having two include filters for the same filter field would not work. The first filter would naturally exclude the value you are trying to include using the second filter.

    In my example I use 2 different filter fields, so everything will work.

    I hope that helps and thanks for reading.

    Justin

    By Justin on Jul 20, 2007

  7. Great picture of you holding An Hour a Day.

    When does Google use ‘none’ and when do we use ‘direct’ ??

    Why can’t Will filter on ‘direct,’ why does he have to include parentheses, aren’t the regex greedy enough, and then he won’t need to escape them with the backslashes. Or as one of my RegEx Coaches taught me, always keep your RegEx as simple as possible.

    Brian can use a pipe in his filter (that *does* sound like he is smoking, doesn’t it?) so that he can effectively have two filters for the same field. Such as, include if visitor language pattern is en|de

    No?

    Robbin

    By Robbin Steif on Jul 21, 2007

  8. Maybe you are worried that ‘direct’ is *too* greedy?

    By Robbin Steif on Jul 22, 2007

  9. Hi Robbin,

    The reason I included the parenthesis in the ‘direct’ filter is to insure that the filter did not match any other patterns that may include the string of characters ‘direct’. So yes, ‘direct’ could be too greedy.

    I may have misunderstood Brian’s question. If you want a single profile, that includes referral traffic and direct traffic, then you need to use a single include filter based off of the Campaign Medium. The reason you need to use medium is that the filter must ference a piece of information common to both, i.e. the medium. You can’t use Campaign Source because each referral has a different source value. The pattern for the filter would be:

    \(none\)|referral

    Justin

    By Justin on Jul 24, 2007

  10. Justin

    Great blog, I read every post! My question to you is how come when I view referring sites - my own domain name is at the top of the list? How can I change this because obviously I don’t think this is correct.

    Thanks!

    Rob

    By Rob on Jul 26, 2007

  11. Justin,

    I just got into trouble with one of my manager’s requests. She wants to see two of the reports you quoted from Avinash (Visitor Loyalty, Visitor Recency) but for each of our campaigns in Adwords (we have a few of them, so creating profiles for each would not be ideal).

    Is it possible?
    Thank you.

    By Daniel Waisberg on Aug 13, 2007

  12. Hi Daniel,

    The only way to display the Visitor Loyalty and Recency reports for a specific AdWords campaign is to create a new profile specifically for the campaigns. That’s the only way to segment those reports.

    Sorry there isn’t an easier way,

    Justin

    By Justin on Aug 13, 2007

  13. For the example on this page just make sure you tag the Yahoo and MSN Paid Campaigns medium with “cpc” or “ppc” otherwise you will have 0 visits in those filtered profiles.

    Cheers,
    Traian

    By Traian on Oct 2, 2007

  14. How come when I view the Top Traffic Sources report it lists my website as the top “referrer”?

    My website is www.davehopla.com. When I look at the Top Traffic Sources, #1 in the list looks like this:

    davehopla.com (referral). Is this supposed to be correct? Shouldn’t this be a direct visit?

    Appreciate your help & love this blog!

    By Rob on Nov 29, 2007

  15. Hi Rob,

    It may be that there is something overwriting the original referral information. It could be a redirect. It’s really hard to say without spending some time looking into the issue.

    Justin

    By Justin Cutroni on Dec 2, 2007

  16. hey justin

    I have been looking into it a little bit. In my profile where it says Website Url: i have put http://www.davehopla.com. When I dig down into the referral reports it says referring website is davehopla.com.

    When you visit just davehopla.com it automatically redirects you to www.davehopla.com. I wonder if this is why this is happening? And then question two would be how to have this stop from happening?

    Could I maybe implement cross-domain tracking? What do you think?
    thanks!

    By Rob on Dec 13, 2007

  17. Justin

    Maybe something similar to this?

    http://www.google.com/support/googleanalytics/bin/answer.py?answer=55523

    Would this solve that problem potentially?

    By Rob on Dec 13, 2007

  1. 2 Trackback(s)

  2. Aug 3, 2007: Segmenting Visitor Loyalty Reports in GA
  3. Jan 8, 2008: Analytics Talk » Blog Archive »

Post a Comment