Add to Google Add to Bloglines Add to Newsgator Add to Yahoo! Contact ROI Revolution Sign Up for the ROI Newsletter Unofficial Google Analytics Blog Feed Unofficial Google Analytics Blog
Unofficial Google Analytics Blog by ROI Revolution

Categories Search This Blog Blogroll Archive

| |

May 12, 2008

Using Website Optimizer with Google Analytics NEW!!

By Shawn Purtell, Google Analytics Support Tech

gwo-ga.gif
You may remember that back in April of '07, I came up with a way to get your Google Website Optimizer multivariate experiment data to show up in Google Analytics. While useful, there were a few drawbacks that I'm sure some of you have noticed, and it wasn't the easiest thing to implement. After getting a lot of great feedback from users, I've come up with a new script that has many advantages over the old method:

  • Uses easier implementation
  • Works with both ga.js and urchin.js (make sure you use the right instructions below for Step 2)
  • Includes error-handling so that a JavaScript error no longer occurs if an experiment is not yet running or is paused, stopped, or completed
  • Features automatic page name tracking - no more changing the Google Analytics code on the page
  • No longer replaces regular page reporting

As a refresher, the whole point of this integration is to allow you to make the most of your experiments. While Google Website Optimizer by itself can give you a quick look at which combination is best at improving conversion, it tells you nothing about transactions, revenue, micro-conversions, navigation, segmentation by source, and bounce rate. If you integrate Google Analytics into your Google Website Optimizer experiments, you will get much richer data, and be able to get a true idea of how your test is doing.

Again, this integration is designed for multivariate experiments only - you do not need to use any special tools to be able to get A/B test data from Google Analytics.

The first thing to do is find out if you are using ga.js or urchin.js. Depending on which version of the Google Analytics code you are using, you'll want to use different instructions.

Step 1: Upload the ga_gwo.js file to your server.

You can find this file here. Upload it to your server, and make a note of its location on your server, as you'll need it in the next step. That's it for Step 1!

Step 2: Paste the appropriate script onto your test page immediately after your existing Google Analytics code. There is one version of this for ga.js and another for urchin.js, so make sure you grab the right one!

If you are using ga.js, copy and paste the following code after your Google Analytics code:



You need to do three things to the script:

First, change the path to ga_gwo.js so that it points to the right location on your server.

Then, replace UA-XXXXXX-X with your Google Analytics account number.

Finally, change what's inside getcombo_ga to match your experiment. The numbers inside will match the number of sections and variations (including the original) that are in your experiment. So if you are running an experiment with 2 headlines, 3 images, and 4 paragraphs, again including the original, you would call getcombo_ga("2-3-4");

You can find a working example of a page that's using ga.js by viewing the source code of the page found here.

If you are using urchin.js, paste this code after your Google Analytics code instead:



You need to do two things to the script:

First, change the path to ga_gwo.js so that it points to the right location on your server.

Finally, change what's inside getcombo_urchin to match your experiment. The numbers inside will match the number of sections and variations (including the original) that are in your experiment. So if you are running an experiment with 2 headlines, 3 images, and 4 paragraphs, again including the original, you would call getcombo_urchin("2-3-4");

You can find a working example of a page that's using urchin.js by viewing the source code of the page found here.

That's it! Now you'll be tracking your combinations within Google Analytics!

Now, there are a few different ways you can go about seeing your data. I'd recommend excluding the test data from your main profile. You can do this by using a Custom Exclude Filter. Filter out any Request URIs that contain \?combo. You can simply create a duplicate profile that doesn't use this exclude filter.

Within your new profile, you would go to the Top Content report, where you can search for your test page by using the search bar on the bottom of the report. If you want to get more information about a specific combination, all you need to do is click on its name within the report.

Once you've clicked on a specific combination, you can then segment by a number of things. (As an aside, if you haven't seen Jeremy's cool GreaseMonkey script for segmenting, you should definitely check it out!) Once you've segmented, you'll have access to the Site Usage, Goal Conversion, Ecommerce, and (for AdWords) Clicks tabs. There you can find all kinds of information about Bounce Rate, alternative goals, and Ecommerce data. You can then use these more detailed metrics to get the full story concerning your Google Website Optimizer experiment!

So feel free to use this tool and please leave your feedback so that I can continue making improvements. Thanks for reading, and best of luck with your testing!

Find The Secret To Solid, Sustainable Improvements To Your Website
Learn the insider secrets to making more money from your website than ever before – Guaranteed! Get started right away with the Google Analytics Training Course.

Posted by Shawn Purtell at 2:16 PM









Filed under: , , ,

TrackBack

TrackBack URL for this entry:
/mt/mt-tb.cgi/296.

Comments

Awesome, thanks for posting this, the combined power of GWO and GA totally blows my mind. It's incredible to think how much power is there for free, all you need is a little elbow grease :)

Posted by: Luke Stevens at May 14, 2008 8:57 PM

@Luke:

I feel the same way. It's hard to believe that enterprise-level tools like these are available to absolutely everyone at no cost. That being said, you definitely have to roll up your sleeves sometimes, but it's absolutely worth it.

Thanks for reading, and please leave some feedback if you decide to use this!

Posted by: Shawn Purtell, Google Analytics Support Tech Author Profile Page at May 15, 2008 8:27 AM

In the previous article (old version) that referenced the old GA interface there was a way to see all the goal conversions by combination (http://www.roirevolution.com/blog/initialnavsmall.jpg). How do you see a similar report in the new GA interface?

As far as I see, top content only shows the $ Index instead of conversions and conversions by goal. Clicking through a URL on Top Content does not show goals (at least as far as I can tell either).

Thanks

Posted by: Vikas Gupta at May 20, 2008 5:42 PM

@Vikas:

You are were actually only one step away - when you click through a URL on Top Content, you then need to segment. You can segment by anything you want. Once you've segmented, you'll be able to see goal conversion and ecommerce metrics (you'll want to look at the totals - found just above the regular report data). I highly recommend adding one or more of these segmented reports to your dashboard, so you don't have to drill down every time.

We're developing some other possible ways to look at your combination data within Google Analytics, and I plan on blogging about landing page/normal page metrics within the next few days.

Posted by: Shawn Purtell, Google Analytics Support Tech Author Profile Page at May 21, 2008 8:10 AM

@Shawn
Thanks for the help! I found what I am looking for. I look forward to the upcoming info on other ways to look at combination data.

Posted by: Vikas Gupta at May 21, 2008 11:51 AM

Great work as always, Shawn. Thanks for sharing this tool.

We love using your technology with our clients :)

Chris

Posted by: Chris Goward at May 21, 2008 3:26 PM

@Chris:

Thanks for the compliment! I hope to come out with a few more things soon that I've been kicking around.

Posted by: Shawn Purtell, Google Analytics Support Tech Author Profile Page at May 21, 2008 3:29 PM

In the post you mentioned that you do not need to use this method to get AB test data out of GA. How does AB test data show up in GA?

Thanks
Vikas

Posted by: Vikas Gupta at May 30, 2008 5:53 PM

@Vikas:

A/B tests simply require you to have two different pages with two different names. If you have tagged both with Google Analytics code, then you can find metrics on A/B tests in the same way you find metrics for any other page on your site. You have slightly more options if the page you are testing is a landing page, but for any page on your site you can use the Top Content report and segmentation to find many important metrics. As a note - the Google Analytics code must come after the GWO control script at the top of your 'A' page to get best results.

Posted by: Shawn Purtell, Google Analytics Support Tech Author Profile Page at June 2, 2008 7:51 AM

Thanks again for the help!

Posted by: Vikas Gupta at June 3, 2008 2:15 PM

@Vikas:

No Problem! Thanks for reading.

Posted by: Shawn Purtell, Google Analytics Support Tech Author Profile Page at June 4, 2008 8:18 AM

I may have set it up incorrectly, but if I am varying just the headline with two variations on my homepage, I see three pages corresponding to this in GA:

/
/?combo=0
/?combo=1

Where the views of the last two add up to the views of the first.

Additionally, the bounce rate of the second two is 0%.

I think that GA sees the users as visiting "/" then moving to one of the combinations. Since this doesn't count as a single page visit, bounce rate isn't applicable, so the data we want is in "% Exit" instead.

Is this right? Have I set it up incorrectly.

Thanks alot for creating this free integration tool!

Posted by: Mike at June 30, 2008 7:43 AM

@Mike:

It sounds like you have it set up correctly. Currently, the Google Website Optimizer integration code fires a separate pageview, but we're looking into ways to make this better. For now, you can use the navigation summary and entrance paths report to find the data you're looking for, but I'll definitely look into making this easier for everyone.

That said, it should still function correctly for conversion rate, ecommerce, and other metrics. Bounce rate is the only one that should be affected by this.

Finally, to make sure you get Bounce Rate information for your original page ('/' in this case), you should exclude the two extra pageviews from your main Google Analytics profile. Thanks for the feedback and we hope to make this better in the future!

Posted by: Shawn Purtell, Google Analytics Support Tech Author Profile Page at June 30, 2008 8:38 AM

Post Your Comments

Post a comment

Contacting ROI Revolution

Telephone Number:
(919) 954.5955 ext. 306
ask for Meredith Smith

Office Fax:
(919) 954.4767

Address:
3109 Poplarwood Ct.
Suite 219
Raleigh, NC 27604


Authorized Google Analytics Consultant

Google Analytics Certified Service and Support Consultant


Free Webinar!

Join a Live FREE Google Analytics Training Webinar
Register now to learn how to
turn Google Analytics into
pure profit! You'll learn how to use many of the key reports, a ten-step system for properly configuring Google Analytics on your website, and how to apply what you learn to the attainment of your online goals. Register for our free Google Analytics training webinar today.


Subscribe to the
ROI Revolution Google
Analytics Newsletter today

Free monthly email publication that contains valuable, practical tips, secrets, and much more! Subscribe to our free Google Analytics newsletter today.


Looking to Purchase
Urchin 5 Software or Fee
Based Support?

We are a Urchin software certified service and support partner! Buy Urchin 5 software, profile packs, load balancing modules, campaign tracking, or fee-based support today.