Supercharge your Advanced Segements with User Defined Variables #WA #GA #Analytics

One of the most elelgant features in Google Analytics is Advanced Segments. It allows analysts to quickly and easily segment visitors based on their behavior on your site and answer questions like:

  • What share  of overal conversions comes  from visitors that were searching for brand search term vs. non branded terms?
  • Which pages do visitors read that do not convert but don’t bounce? (Maybe you missed a goal, or the opportunity to add a call to action to critcal page)
  • What is the conversion rate for visitors from groups of untagged referrers (e.g. social networking sites, blogs) vs. tagged traffic sources and search
  • What is the best indicator for the difference between “super engaged visits” (>10 PV/Visits) and “normal engaged visits” (>1 to 9 PV/Visits). Is it the traffic source? Is it the landing page? Is it the conversion for a specific goal?

Just create 1 or 2 segments and compare the bahavior difference in almost any report in GA, instantly. Anyone who every tried to answer similar questions in Omniture or WebTrends will feel nothing but gratitude to Google to make segmentation that easy. You can find much more detail in Avinash’s great Google Analytics Releases Advanced Segmentation: Now Be A Ninja! post.

What Avinash didn’t tell us in his post is how to supercharge our advanced segment using user defined variables. I learned about this power of this combination, when trying to segment out the behavior of registered visitors. GA has no build in function that can identify registered visitors, but Google Analytics Help had the solution. User Defined Variabeles!

Adding  a small piece of JavaScript to your login script

<script type=”text/javascript”>pageTracker._setVar(‘registered_user’);</script>

tags this visitor as a member of the “registe

red user” segment by setting a variable in the GA cookie that is handed over with each tracking image request. That sounds complicated but in the end it just means that GA now allows you to create a custom segment based on this User Defined Variable and voala, you can segm

ent each report for registered visitors. Sweet!

Registered visitor

But why stop there? Advanced Segments allow an unlimited number of variations. For example

  • Compare “Converting Registered Visitors” (who convert to a Goal) vs. “Non Converting Registered Visitors”, to improve conversion
  • “Returning Registered Visitors” (more than 1 visit in the time period) to “Single Visit Registered Visitors”, to improve loyalty.
  • etc..

To take matters further, Convurgency provided a list of ideas for User Defined Variables in their Google Analytics – User Defined visitor tracking post in Juy 2007. They include ideas like:

  1. Visitor Type Segmentation (Business Users, Technical Users, etc) based on form inputs
  2. Simple A/B testing by setting a user defined variable for each landing page
  3. Referrer Segmentation

This was before the new GA code and before advanced segments became available. Respect! Now implementing all these ideas became even easier.

What are you waiting for? Go segment!

Any ideas for cool segments? Please leave them in the comments.

Reblog this post [with Zemanta]

2 Responses to “Supercharge your Advanced Segements with User Defined Variables #WA #GA #Analytics”


  1. 1 Silvia

    This kind of segmentation is way simpler in Logaholic Web Analytics because it also supports log files. So all the data is automatically updated and you don’t have to deal with tagging.

  2. 2 Florian Pihs

    Thanks Silvia for your feedback. Logfile based tools count “server hits”, e.g. how often was a file requested from a server. That is not the same as page views, which is what user experience on their browser. Tools like GA, Omniture and WebTrends therefore count on the client side using Javascript. Another challenge of server based tools is vitualization, e.g. using multiple physical servers to deliver a web experience. Server based tools need to inteegrate logs from all servers that serve the website, while client script based tools are completely independent from the number of web servers used.

Leave a Reply