Thursday, 5 February 2009

Event Tracking is a feature of Google Analytics you use to track different actions visitors take on your website, such as clicking a button or downloading a file. It is useful for tracking actions on your website that don't take the user to a new page (such as clicking play on a video player).

Since we launched Event Tracking in October of 2007, we have made some changes to improve it. These changes aren't always captured in online tutorials, so we wanted to give an official update on Event Tracking best practices.

From "Double Call" to "Single Call"

After the initial launch of event tracking, we realized that the two-step process of implementing event tracking in Analytics could be simplified to a single call using the _trackEvent() method. In the initial version of event tracking, your implementation involved two steps:
  1. Setting up the object to track and giving it a name
  2. Tracking actions, labels, and values on that object using myObjectName._trackEvent(action, label, value)
With the newer version of event tracking, released in spring of 2008, two important changes occurred:
  • Simply use pageTracker._trackEvent() to create a named category and track actions, labels, and values in one step, not two
  • The term Objects was changed to Categories to better reflect the concept of tracking a category of page elements, such as "Video Player"
Example: Tracking Interaction with a Video Player

To illustrate, suppose you have a video player that you want to track. In order for the player tracking to show up in your reports under the "Categories" section, you need to provide a category name. We'll use myVideos as an example. If the video has a "Pause" button that you want to track, we can accomplish this by attaching the following call to the "Pause" button on the video player for the Snoopy movie:

pageTracker._trackEvent("myVideos", "Pause", "Snoopy");

When users click the "Pause" button for the Snoopy movie, an event for that category/action combination is triggered.

If your movie player is Adobe Flash based and you use ActionScript 3, check out Google Analytics for Adobe Flash. It provides an intuitive environment for event tracking if you are an Adobe Flash developer.

Additional Resources
What do you use event tracking for?

Wednesday, 4 February 2009

San Jose, February 11, 12, 13

Are you attending Search Marketing Expo West in Santa Clara, CA? If so, here's a chance to acquire some hard skills as part of your trip to the conference. If not, you can still sign up for one or more days of professional Google Analytics and Website Optimizer training in San Jose.

If you’re a marketing professional, web designer, analyst, business owner or anything in between, these three courses will help you to efficiently measure and improve your online strategy.

Landing Page Testing with Google Website Optimizer - Wednesday, February 11
This hands-on course in Google Website Optimizer will take you through the process of testing your site to deliver an experience to your users that will take your conversion rates to new heights. Experts on Website Optimizer will present an overview, testing best practices, and then give you hands-on experience to better understand and run A/B/N and multivariate tests on your website and key landing pages.

Google Analytics – Introduction & User Training- Thursday, February 12
Are you new to the world of Google Analytics? Have you been using it for a while but have yet to really get beyond the dashboard? This course starts you off from the beginning with an overview of web analytics and by the end of the day you’ll have learned how to turn the sea of analytics data and reports into actionable information that can help drive your business decisions.

Google Analytics – Advanced Technical Implementation - Friday, February 13
If you already have the basics down and want to see what Google Analytics is really capable of, the advanced and technical implementation course is for you. This training is ideal for the tech-savvy, but equally valuable to those wanting to understand what’s possible. This course covers the inner workings of Google Analytics, configurations, filters and setups as well as advanced installs and implementations, new features and best practices.

Seats are limited, so register today!



Denver, Feb 24, 25, 26

Can't make it to the San Jose session? Try Denver instead.

Google Analytics – Introduction & User Training- Tuesday, February 24
Google Analytics gives you visibility into every aspect of how your website is used to accomplish the goals you had in mind when you designed it. The first of these three Seminars for Success courses will start you off with a high level overview of web analytics. By the time you leave you’ll be ready to take a mountain of data and endless reporting options and transform them into actionable information that can help drive your business decisions.

Google Analytics – Advanced Technical Implementation - Wednesday, February 25
After you have the basics down from day one or if you are already working with Google Analytics but want to know how to take it to the next level, the advanced and technical implementation course is for you. Day two of the Seminars for Success gets into the inner workings of Google Analytics, configurations, filters and setups as well as advanced installs and implementations, new features and best practices.

Landing Page Testing with Google Website Optimizer - Thursday, February 26
Your users are the reason you have a website. Google Website Optimizer is the tool you need to deliver an experience to them that will make your conversions take off. Experts on Website Optimizer will present an overview and testing best practices, and then give you hands-on experience to better understand and run A/B/N and multivariate tests on your website and key landing pages. This is invaluable information to see those conversions jump.

Seats are limited, so register today!

Tuesday, 3 February 2009

Imagine that you are the online marketing manager for a successful E-Commerce business. It is Friday afternoon and your CEO phones with a request. "I've seen our sales numbers, but I need more data. How many of our website visits and sales relate to men's products versus women's products?"
"Sure, I'll have it for you next week," you reply cheerily.
Your CEO almost sounds apologetic and explains that she needs the information tomorrow. "Of course," you reply, and hang up the phone wondering how you are going to pull this off.

After considering it, you realize that this may not be so hard after all. All you need to do is:
  1. Find out if there is a unique URL identifier that distinguishes men's and women's products
  2. Create two advanced segments based on the unique URL identifier: one for men's products, and one for women's products
  3. Apply these segments to the reports to compare metrics/trends for each product category
That's it - it's as easy as 1, 2, 3!

Step 1 - Review your website URL structure


For this website, the men's product section and pages have an identifier called "bysex=1" in the URL, whereas the women's product section and pages have "bysex=2". You might want to double-check with your webmaster and/or web developer to identify all identifiers for each category. For this site, there are two additional identifiers, "CatID=1" and "men" as well as "CatID=2" and "women." Jot all this information down and then get ready to create your advanced segments.

Step 2 - Create Advanced Segments in Google Analytics

Within your Google Analytics report, click on one of the "Advanced Segment" links (see images below) and then click on the "Create a new advanced segment" link. If you need more details on the concept of segments and advanced segments, check out this video or read this post on how to create advanced segments.



In the above image, you'll see what information you need to create the advanced segments. You select the "Page" dimension, set the condition to "Contains" and set the value equal to the identifier you jotted down earlier. Since we had two more identifiers, you would want to include other pages that have these two identifiers, namely "CatID=1" and "men." You save this segment, give it a meaningful name such as MenCategory, and then create another segment for the women products category and use its identifiers, "bysex=2," "CatID=2" and "women," and follow the steps we used for the men's advanced segment.

Step 3 - Apply GA Advanced Segments and Analyze

After creating and saving your advanced segment, apply this new segment to your reports (by clicking on the "apply to report" link), and let the fun begin!


A few tips: apply the segments together so that you can compare (use the "Advanced Segments" dropdown in the top-right corner of your reports to apply segments). Here, we're comparing the All Visits segment (which is always selected by default) with the WomenCategory and MenCategory segments. While the results do not indicate if the visitor is a male or a female, the advanced segmentation provides insight into which clothing line category is currently driving more visits. You're now able to start some deep-dive analysis and provide some actionable insights to the CEO.

A few quick notes about your segments:
  • The visits will never add up because the "all visits" segment includes visits to other categories and bounces off of the homepage.
  • Similarly, the pageviews will not add up, because you could visit both the men's and women's categories in one visit or even visit neither category.
  • You can see that the specific categories seem to be of more interest to the visitor. A much higher pages per visit, much lower bounce rate, and a higher average time on site. You could act on this by directing traffic (paid, banner, e-mail) to a specific category instead of dumping them on the home page.
  • Such a large amount of traffic makes the site an excellent candidate for Google Website Optimizer!
Congratulations! You've proven yourself yet again to your CEO (and you'll still keep your Saturday for yourself :))

Additional Resources

Do you run an e-commerce site? Post a comment and tell us how you use Advanced Segments.