Skip to content

Commit

Permalink
Add AB tests for new Sticky Liveblog Ask component
Browse files Browse the repository at this point in the history
  • Loading branch information
sookburt committed Jun 25, 2024
1 parent 2b874f4 commit 34b189d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
10 changes: 10 additions & 0 deletions common/app/conf/switches/ABTestSwitches.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { remoteRRHeaderLinksTest } from './tests/remote-header-test';
import { signInGateAlternativeWording } from './tests/sign-in-gate-alternative-wording';
import { signInGateMainControl } from './tests/sign-in-gate-main-control';
import { signInGateMainVariant } from './tests/sign-in-gate-main-variant';
import { stickyLiveBlogAskTest } from './tests/sticky-liveblog-ask';

// keep in sync with ab-tests in dotcom-rendering
// https://github.com/guardian/dotcom-rendering/blob/main/dotcom-rendering/src/web/experiments/ab-tests.ts
Expand All @@ -15,4 +16,5 @@ export const concurrentTests: readonly ABTest[] = [
remoteRRHeaderLinksTest,
mpuWhenNoEpic,
deeplyReadRightColumn,
stickyLiveBlogAskTest,
];
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,
};

0 comments on commit 34b189d

Please sign in to comment.