New to Rails 3? Check out the Ruby on Rails 3 Tutorial book and screencast.

A book and screencast series showing you how to develop and deploy industrial-strength Rails apps in a direct, step by step way. The screencast series includes 12 lessons over more than 15 hours! Get the best "over the shoulder" experience of following what a top Rails 3 developer does when building an app today. Click here to learn more.

ABingo: An A/B Testing Plugin for Rails

In Plugins

abingo.png ABingo is an "A/B testing" plugin to use on your Rails applications in order to test differences between two ways of showing the same information. It was developed by Patrick McKenzie, known mainly in the developer community as the creator of Bingo Card Creator.

A/B testing (also known as split testing) is a system of having two versions (or sometimes more) of a Web page and then showing them randomly to visitors, then comparing what visitors to different versions of the page do. This allows you to see if something as simple as a headline change or as complex as a total redesign has an effect on what user's do - such as purchase your product or signup for your service. Once the "best" version has been determined, you can then continue to do further A/B tests until you run out of things to try, thus resulting in a better page.

ABingo adds helpers to Rails to make it easy to implement A/B testing in your views and controllers:

# Simple syntax to start a test
<% ab_test("login_button_test", ["/images/button1.jpg", "/images/button2.jpg"]) do |button_file| %>
<%= img_tag(button_file, :alt => "Login!") %>
<% end %>
# Track any arbitrary event as a conversion
def login
  # Business logic goes here

jslab.pngJumpstart Lab is running a JavaScript Master Class for Javascript & UI programmers with Thomas Fuchs (Scriptaculous, Prototype Core) and Amy Hoy (UI Expert) on 9/12 in Washington, DC. Save 10% with code "rubyinside"!

Post to Twitter Tweet This Post

Vaguely Related Posts (Usually)

One Comment Response to “ABingo: An A/B Testing Plugin for Rails”

  1. #1
    Patrick McKenzie Says:

    Glad you liked it! If your readers have anything on their wish list, I'd be happy to hear from any of you.

Leave a Reply