Blast Analytics and Marketing

Analytics Blog

Supporting Leaders to EVOLVE
Category: Digital Analytics

Google Analytics Premium Feature Tour: 50 Custom Variables

October 4, 2011

In Google Analytics Premium, the number of custom variables that are available has been dramatically increased from 5 (in Google Analytics Standard) to 50! We’ve helped many clients using custom variables, to both;

  • increase the depth of data that can be collected
  • and to enhance the capabilities of segmentation in GA.

On many sites, it is consistently a struggle to keep inside the 5 custom variable limit.

The GA Premium 50 custom variable increase opens the door to richer data analysis possibilities that will help you better target, optimize, and convert your visitors.

Code Requirements

Once you are on the Google Analytics Premium platform, you can begin using up to 50 custom variables via the same code you would currently use. And instead of being capped at 5 custom variables, you can now go up to 50. For example, to track a visitor-level custom variable in slot #42 (the answer to life) for when a member logs into your site and they are on your platinum service-level plan, you can fire the following code:

_gaq.push([‘_setCustomVar’, 42, ‘member-type’, ‘platinum’, 1]);

Extended Custom Variable Usage

There are two methods to leverage the custom variables in slots 1-50 in Google Analytics Premium reports.

Custom Reports

When you are creating a custom report in Google Analytics Premium, using the interactive report builder, you can reference custom variable keys (names) and values in any of the 50 slots. Another great feature is that you can leverage the Custom Report Filter setting to filter based on the name/values of any custom variable.

Custom Reports 50 Custom Variables

Advanced Segments

You can very easily create an advanced segment in Google Analytics that leverages the above mentioned custom variable #42. After you’ve created this advanced segment, it will then be saved for future usage and it can be applied to both standard and custom reports that you’ve created.

Advanced Segments 50 Custom Variables

Custom Variable Architecture & Planning

As you add additional custom variable slot usage to your website, you’ll want to develop a slot matrix that lists what custom variables are in place, a description, and the scope (visitor, session, or page-level).
Custom Variable Slot Matrix

With proper planning, you’ll have a clear guide to expand to additional Custom Variables as needed and you are less likely to run into an issue where you overwrite the value of a variable.

Examples of Custom Variable Usage

Page-level

  • Page Type (member / guest) OR any other page attributes
  • Page Category/Section

Session-level

  • Member Signed Up
  • Member Upgraded Existing Account

Visitor-level

  • Member Level
  • Newsletter Subscriber

The above are 6 common, real-world examples of using custom variables. Previously, 5 CVs were not enough, so we’re glad to have the ability of using up to 50 custom variables now!

Helpful Tip: Instead of using session-level custom variables, you can often just use event tracking and leverage it to create advanced segments. This may save you a slot. You should be careful though of firing both a pageview and event tracking when a page loads (especially if that is a potential landing page) because it will affect your bounce rate and other metrics. UPDATE: As pointed out in the comments by Analytics Ninja, events are hit-level data and more closely align with page-level custom vars. Due to the way that advanced segments work in GA (targets the entire session), you can use them in advanced segments to segment against all sessions that contained a specific _trackEvent call.

More Info on Extended Custom Variable Usage

For more information on Extended Custom Variable usage and considerations, view Google’s help article.

Let us know if you have any questions or comments about this new feature in Google Analytics Premium.

Joe Christopher
About the Author

As Vice President of Analytics at Blast Analytics, Joe leads a team of talented analytics consultants responsible for helping clients understand and take action on their vast amounts of data, to continuously improve and EVOLVE their organizations. With over 20 years of experience in analytics and digital marketing, Joe offers a high-level of knowledge and guidance to clients across all industries. He is an expert in all major analytics platforms including Google Analytics and Adobe Analytics, as well as various tag management systems such as Tealium and Adobe Launch. He also consults on data visualization, data governance, and data quality strategies. Having extensive expertise in many areas, has enabled Joe to become a well known thought leader and speak at industry events such as Tealium’s Digital Velocity series. Joe remains on the pulse of various information technology, programming languages, tools and services, keeping Blast and its clients on the leading edge.

Connect with Joe on LinkedIn. Joe Christopher has written on the Blast Digital Customer Experience and Analytics Blog.