Created
May 8, 2010 01:41
-
-
Save markmarkoh/394230 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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