Scott Watermasysk

Still Learning to Code

Quick and Dirty Rails View AB Testing

Not bad, a blog post less than one week after retiring from technical blogging….

There are many ways to do A/B testing and I generally prefer the likes of services like VisualWebOptimizer.

However, there are times when you want to test a much bigger change (or just need something simpler). In those cases, we use this helper on KickoffLabs to enable A/B testing across multiple views.

Then it is just a matter of calling the choose__test helper method.

We then send any relevant data to KissMetrics so that we can analyze it with everything else.

While it is quite simple, it worked really well for us.