Skip to content

Instantly share code, notes, and snippets.

@markmarkoh
Created May 8, 2010 01:41
Show Gist options
  • Select an option

  • Save markmarkoh/394230 to your computer and use it in GitHub Desktop.

Select an option

Save markmarkoh/394230 to your computer and use it in GitHub Desktop.
class UsingAbingoController < ApplicationController
def index
#Everything in ABingo stays the same, except we can just add the :press9_tracking variables
@result = ab_test("testing_images", ["control.jpg", "treatment.jpg"] , :press9_tracking => {:test_token => "3CXbb"})
render :index
end
def convert
#Again - use bingo! as you normally would, just add the :press9_tracking option.
bingo!("testing_images", :press9_tracking => {:group_token => 'TB35Z8pH', :test_token => "3CXbb", :properties => {:money => 99.9, :type => "yellow"} })
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment