-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2655 from alphagov/start-button-ab-test-july-2016
Start button AB test For July 2016
- Loading branch information
Showing
4 changed files
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//= require govuk/multivariate-test | ||
|
||
$(function(){ | ||
if(SmartAnswer.isStartPage("overseas-passports")) { | ||
new GOVUK.MultivariateTest({ | ||
el: '.get-started a', | ||
name: 'startButton_osPassport_201607', | ||
customDimensionIndex: [13, 14], | ||
cookieDuration: 2, // set cookie expiry to 2 days | ||
contentExperimentId: 'cZbCgQy3SOCHEX2l6bU-eQ', | ||
cohorts: { | ||
original: { callback: function() {}, variantId: 0}, | ||
next: { html: 'Next', variantId: 1 }, | ||
continue: { html: 'Continue', variantId: 2 } | ||
} | ||
}); | ||
} | ||
|
||
if(SmartAnswer.isStartPage("calculate-your-child-maintenance")) { | ||
new GOVUK.MultivariateTest({ | ||
el: '.get-started a', | ||
name: 'startButton_calcChildM_201607', | ||
customDimensionIndex: [13, 14], | ||
cookieDuration: 2, // set cookie expiry to 2 days | ||
contentExperimentId: '02HyTKtNR-yHsYlI6JoJqg', | ||
cohorts: { | ||
original: { callback: function() {}, variantId: 0}, | ||
next: { html: 'Next', variantId: 1 }, | ||
continue: { html: 'Continue', variantId: 2 } | ||
} | ||
}); | ||
} | ||
|
||
if(SmartAnswer.isStartPage("marriage-abroad")) { | ||
new GOVUK.MultivariateTest({ | ||
el: '.get-started a', | ||
name: 'startButton_marriageAbroad_201607', | ||
customDimensionIndex: [13, 14], | ||
cookieDuration: 2, // set cookie expiry to 2 days | ||
contentExperimentId: 'ABoraDMOQCC9WjJWsTpIPg', | ||
cohorts: { | ||
original: { callback: function() {}, variantId: 0}, | ||
next: { html: 'Next', variantId: 1 }, | ||
continue: { html: 'Continue', variantId: 2 } | ||
} | ||
}); | ||
} | ||
}); |