Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

  • Blog Navigation
Split testing with Rails

At Pivotal we are all about rapid iteration and continual feedback for our code, and try to get our clients to get excited about this same mode of thinking with respect to their products. To make that a bit easier, I’ve been working on a simple ruby wrapper for the Google Website Optimizer that allows you to perform split tests with just a few lines of code.

To get my feet wet I’ve set up a simple experiment on this blog — — and need a few more participants to get interesting data. If you get this is an RSS feed (you know who you are) and haven’t been to the site in a while c’mon by and check it out. In addition to a silly split test, we’ve been working on the site in general and there are some cool new updates.

I hope to follow up with the code and results of this test in another post. Meanwhile, I’m interested in experiences other folks have had with split testing. What kinds of tests have you done? What tools did you use, or did you roll your own? What kinds of patterns did you discover for managing multiple tests from a development and deployment perspective?

  • hmm interesting service, i gotta try this out, seems to be a good solutions to roll the dice when a team cannot decide, or for boring ROI research :)

  • Parker,

    Is there a supported Google API for the website optimizer? Is it rolled into another API? Analytics? AdWords? Or are you doing this “by hand”?

  • Can I make a site suggestion? How about individual talk pages for your pivotal lunch talks? I’d prefer to link to a page for “Making a Case for Cucumber” so you guys get credit where credit is due rather than linking directly to a .mov file. (and if your feed linked to that page as well that would be thuper).

    While I am at it. Your comment page requires JavaScript – the name, email, URL and captcha fields don’t show up if javascript is blocked by noscript and there is no indication that they are missing until you go to submit and get errors.

    Whine whine whine.

    I do like the idea of experimental web site design though.

  • Parker Thompson

    @Camron – it’s all JS, which has pros and cons. I hear nuconomy has a great API for tracking everything, so I’d look at that if you need more than Optimizer offers.

  • Parker,

    Yeah I was wondering how you actually configured the test. But from your second post it looks like you just configured it via the web, and copied out the test’s ID into your code. Is that right?

  • Hey guys, just wondering if you ever followed up on this post? We’re trying to implement this on a template basis rather than individual pages.

    I.e. change the header & measure the changes in conversions from 1 style to the next & so on. Then start measuring individual elements once we’re satisfied the actual layout is working for us.

    Would love to see your code for this.


  • Johnston

    Was there ever any followup on this?

    There are scarcely any articles on using Google Website Optimizer with Rails, much less its new replacement, Google Content Experiments. Frankly I don’t understand how it can work, requiring differing URLs for every a/b test; wouldn’t this be a hell of a hack with a dynamic routing system like Rails?

    There are no gems, libraries, articles, nothing… Just this one page with talk about using GWO/GCE with Rails, but no hint as to how it was done. Can you offer any insights into how you got it working?

  • Johnston:

    I’ve never used Website Optimizer (or the new Content Experiments) with a rails app, but I have successfully used A/Bingo[1] and Split[2].

    I’m going to kick the tires on GCE and see if there is a nice way to integrate with rails. Check this space for more info, hopefully I have something useful to report back.



Share This