Skip to content

Split testing should be easy. Here are some drop-in files that will allow developers to create bare-bones split tests and track the results in Google Analytics. More than anything, these are here to illustrate that testing doesn't have to be complex or time-consuming.

Notifications You must be signed in to change notification settings

robby1066/Quick-and-dirty-split-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Quick and Dirty Split Testing

Doing split tests to understand the behavior of your visitors should be simple.

Basic concepts

  1. Define a test at the top of your page
  2. Get the visitors current variation
  3. Do stuff conditionally based on that variation
  4. Track the visitor in Google Analytics

Language and framework-specific implementations

PHP

The PHP version of this script has been used in high-traffic production environments. It is by far the most stable of the bunch.

Ruby on Rails

This ruby on rails helper should allow for simple tests at the view level.

Javascript

About

Split testing should be easy. Here are some drop-in files that will allow developers to create bare-bones split tests and track the results in Google Analytics. More than anything, these are here to illustrate that testing doesn't have to be complex or time-consuming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published