Skip to content
This repository

A Rails plugin that provides an entire A/B split testing / Bucket system, integrated with Google Analytics

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 files
Octocat-spinner-32 lib
Octocat-spinner-32 rails
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb
Octocat-spinner-32 install.rb
Octocat-spinner-32 split_tester.gemspec
Octocat-spinner-32 uninstall.rb
README
SplitTester
===========

This is a plugin that I wrote for doing split testing in a rails application with Google Analytics as your dashboard. The idea is to create an easy to use bucket testing system that wouldn't require another dashboard just for looking at the data. The logic and system are a simplified version of bucket testing based on what I've learned while bucket testing experiments on Yahoo! Search, one of the highest traffic pages on the internet.

With this system, you don't need to muddy up your views, controllers or language files. The test elements are kept separate and can be turned on and off via percentage allocations of your traffic. It is a cookie based system, so users will have a consistent experience even if they end their session and return later. You can also run as many tests at the same time as you would like, only limited by the amount of traffic you have.

I have also built in support for action caching so that you can keep your application fast and awesome.

The code quality isn't as high as I would like and I have taken some shortcuts. I would love any help or input. :)

A new test is a made up of a locale.yml file and or a collection of new views. The local file can override any translations that are in use and the views are direct replacements for views in the core app (BASELINE).

Usage
==========

As a plugin:

rails plugin install git://github.com/jhubert/rails-split-tester.git

As a gem:

Place this in your Gemfile:

gem 'split_tester'

then run:

bundle install

and then run the generator:

rails g split_tester_install

A file named split_tests.yml will be created in your config folder. This is where you will define the tests you want to run and what percentage of the traffic they should receive.

A folder named "split" will be created in your test folder. This is where the actual configuration of the split tests will go.

Please see my demo app for an example: https://github.com/jhubert/split-tested-app-demo
Something went wrong with that request. Please try again.