-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AB tests for new Sticky Liveblog Ask component
- Loading branch information
Showing
3 changed files
with
41 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 |
---|---|---|
|
@@ -64,4 +64,14 @@ trait ABTestSwitches { | |
sellByDate = Some(LocalDate.of(2024, 7, 31)), | ||
exposeClientSide = true, | ||
) | ||
|
||
Switch( | ||
ABTests, | ||
"ab-sticky-liveblog-ask-test", | ||
"A sticky reader revenue ask on the left column of a liveblog", | ||
owners = Seq(Owner.withEmail("[email protected]")), | ||
safeState = Off, | ||
sellByDate = Some(LocalDate.of(2024, 7, 31)), | ||
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
29 changes: 29 additions & 0 deletions
29
static/src/javascripts/projects/common/modules/experiments/tests/sticky-liveblog-ask.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,29 @@ | ||
import type { ABTest } from '@guardian/ab-core'; | ||
|
||
export const stickyLiveBlogAskTest: ABTest = { | ||
id: 'StickyLiveBlogAskTest', | ||
author: '@growth', | ||
start: '2024-07-01', | ||
expiry: '2024-07-31', | ||
audience: 1, | ||
audienceOffset: 0, | ||
audienceCriteria: 'everyone', | ||
successMeasure: 'There is more revenue generated when this is on the page', | ||
description: | ||
'Test that revenue is generated from this ask than when there is only an epic on a pageview.', | ||
variants: [ | ||
{ | ||
id: 'control', | ||
test: (): void => { | ||
/* no-op */ | ||
}, | ||
}, | ||
{ | ||
id: 'variant', | ||
test: (): void => { | ||
/* no-op */ | ||
}, | ||
}, | ||
], | ||
canRun: () => true, | ||
}; |