-
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 #26989 from guardian/ei/block-supporter-revenue-me…
…ssaging-sport Block supporter revenue messaging in the Sport section
- Loading branch information
Showing
4 changed files
with
54 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 |
---|---|---|
|
@@ -64,4 +64,14 @@ trait ABTestSwitches { | |
sellByDate = Some(LocalDate.of(2024, 4, 2)), | ||
exposeClientSide = true, | ||
) | ||
|
||
Switch( | ||
ABTests, | ||
"ab-block-supporter-revenue-messaging-sport", | ||
"Block supporter revenue messaging in the Sport section", | ||
owners = Seq(Owner.withEmail("[email protected]")), | ||
safeState = Off, | ||
sellByDate = Some(LocalDate.of(2024, 5, 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
31 changes: 31 additions & 0 deletions
31
...ipts/projects/common/modules/experiments/tests/block-supporter-revenue-messaging-sport.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,31 @@ | ||
import type { ABTest } from '@guardian/ab-core'; | ||
|
||
export const blockSupporterRevenueMessagingSport: ABTest = { | ||
id: 'BlockSupporterRevenueMessagingSport', | ||
author: '@commercial-dev', | ||
start: '2024-03-14', | ||
expiry: '2024-06-01', | ||
audience: 0 / 100, | ||
audienceOffset: 0 / 100, | ||
audienceCriteria: 'Fronts and articles in the Sport section', | ||
successMeasure: | ||
'Ad revenue and ad ratio increases without significantly impacting supporter revenue', | ||
description: 'Block supporter revenue messaging in the Sport section', | ||
variants: [ | ||
{ | ||
id: 'control', | ||
test: (): void => { | ||
/* no-op */ | ||
}, | ||
}, | ||
{ | ||
id: 'variant', | ||
test: (): void => { | ||
/* no-op */ | ||
}, | ||
}, | ||
], | ||
canRun: () => | ||
window.guardian.config.page.section === 'sport' || | ||
window.guardian.config.page.section === 'football', | ||
}; |
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