Sha256: a9241e0af6b3a8a9e54c47f26fa8f3588884751eb7965701ac7e89414eee7c75

Contents?: true

Size: 609 Bytes

Versions: 2

Compression:

Stored size: 609 Bytes

Contents

ab_test "Age and Zipcode" do
  description <<-TEXT
Testing new registration form that asks for age and zipcode. Option A presents
the existing form, and option B adds age and zipcode fields.
   
We know option B will convert less, but higher quality leads. If we lose less
than 20% conversions, we're going to switch to option B.
  TEXT

  complete_if do
    alternatives.all? { |alt| alt.participants > 100 }
  end
  outcome_is do
    one_field = alternative(false)
    three_fields = alternative(true)
    three_fields.conversion_rate >= 0.8 * one_field.conversion_rate ? three_fields : one_field
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vanity-1.0.0 test/experiments/age_and_zipcode.rb
vanity-0.4.0 test/experiments/age_and_zipcode.rb