-
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.
Merge pull request #27632 from guardian/doml/onward-ab-test
Add onwards content article test
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -55,7 +55,18 @@ trait ABTestSwitches { | |
"Test the impact of showing the user a component that highlights the Guardians journalism", | ||
owners = Seq(Owner.withEmail("[email protected]")), | ||
safeState = Off, | ||
sellByDate = Some(LocalDate.of(2024, 12, 18)), | ||
sellByDate = Some(LocalDate.of(2025, 1, 29)), | ||
exposeClientSide = true, | ||
highImpact = false, | ||
) | ||
|
||
Switch( | ||
ABTests, | ||
"ab-onwards-content-article", | ||
"Test the impact of showing the galleries onwards content component on article pages", | ||
owners = Seq(Owner.withEmail("[email protected]")), | ||
safeState = Off, | ||
sellByDate = Some(LocalDate.of(2025, 1, 29)), | ||
exposeClientSide = true, | ||
highImpact = false, | ||
) | ||
|
24 changes: 24 additions & 0 deletions
24
static/src/javascripts/projects/common/modules/experiments/tests/onwards-content-article.js
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,24 @@ | ||
export const onwardsContentArticle = { | ||
id: 'onwardsContentArticle', | ||
start: '2024-11-25', | ||
expiry: '2025-01-29', | ||
author: '[email protected]', | ||
description: | ||
'Test the impact of showing the galleries onwards content component on article pages.', | ||
audience: 0 / 100, | ||
audienceOffset: 0 / 100, | ||
audienceCriteria: 'Article pages', | ||
successMeasure: | ||
'Users are more likely to click a link in the onward content component.', | ||
canRun: () => true, | ||
variants: [ | ||
{ | ||
id: 'control', | ||
test: () => {}, | ||
}, | ||
{ | ||
id: 'variant', | ||
test: () => {}, | ||
}, | ||
], | ||
}; |