-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create switch and test for onward journeys
- Loading branch information
Showing
3 changed files
with
49 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,4 +54,14 @@ trait ABTestSwitches { | |
sellByDate = Some(LocalDate.of(2024, 5, 31)), | ||
exposeClientSide = true, | ||
) | ||
|
||
Switch( | ||
ABTests, | ||
"ab-onward-journeys", | ||
"Test click through rate when there is only one onward journey container shown.", | ||
owners = Seq(Owner.withEmail("[email protected]")), | ||
safeState = Off, | ||
sellByDate = Some(LocalDate.of(2024, 6, 7)), | ||
exposeClientSide = true, | ||
) | ||
} |
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
37 changes: 37 additions & 0 deletions
37
static/src/javascripts/projects/common/modules/experiments/tests/onward-journeys.ts
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,37 @@ | ||
import type { ABTest } from '@guardian/ab-core'; | ||
|
||
export const onwardJourneys: ABTest = { | ||
id: 'OnwardJourneys', | ||
start: '2025-03-01', // update once test is ready to go live | ||
expiry: '2025-12-01', // update once test is ready to go live | ||
author: '@web-experience', | ||
description: | ||
'Show the user one onward journey containers at a time to see which is the most effective', | ||
audience: 25 / 100, | ||
audienceOffset: 0, | ||
audienceCriteria: 'all users', | ||
dataLinkNames: 'OnwardJourneys', | ||
idealOutcome: | ||
'Determine which combination of onward journey containers is the most effective', | ||
showForSensitive: true, | ||
canRun: () => true, | ||
variants: [ | ||
{ | ||
id: 'control', | ||
test: (): void => {}, | ||
}, | ||
{ | ||
id: 'variant-1', | ||
test: (): void => {}, | ||
}, | ||
{ | ||
id: 'variant-2', | ||
test: (): void => {}, | ||
}, | ||
{ | ||
id: 'variant-3', | ||
test: (): void => {}, | ||
}, | ||
], | ||
successMeasure: '', | ||
}; |