diff --git a/common/app/conf/switches/ABTestSwitches.scala b/common/app/conf/switches/ABTestSwitches.scala index d2fe010ab0b2..cd94cd7d9b34 100644 --- a/common/app/conf/switches/ABTestSwitches.scala +++ b/common/app/conf/switches/ABTestSwitches.scala @@ -25,6 +25,16 @@ trait ABTestSwitches { exposeClientSide = true, ) + Switch( + ABTests, + "ab-sign-in-gate-times-of-day", + "Show sign in gate a different frequency depending on the time of day", + owners = Seq(Owner.withGithub("personalisation")), + safeState = Off, + sellByDate = Some(LocalDate.of(2023, 11, 23)), + exposeClientSide = true, + ) + Switch( ABTests, "ab-deeply-read-article-footer", diff --git a/static/src/javascripts/projects/common/modules/experiments/ab-tests.ts b/static/src/javascripts/projects/common/modules/experiments/ab-tests.ts index 683be8168e81..21cf7875c0cd 100644 --- a/static/src/javascripts/projects/common/modules/experiments/ab-tests.ts +++ b/static/src/javascripts/projects/common/modules/experiments/ab-tests.ts @@ -9,12 +9,14 @@ import { prebidKargo } from './tests/prebid-kargo'; import { remoteRRHeaderLinksTest } from './tests/remote-header-test'; import { signInGateMainControl } from './tests/sign-in-gate-main-control'; import { signInGateMainVariant } from './tests/sign-in-gate-main-variant'; +import { signInGateTimesOfDay } from './tests/sign-in-gate-times-of-day'; // 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 export const concurrentTests: readonly ABTest[] = [ signInGateMainVariant, signInGateMainControl, + signInGateTimesOfDay, remoteRRHeaderLinksTest, deeplyReadArticleFooterTest, consentlessAds, diff --git a/static/src/javascripts/projects/common/modules/experiments/tests/sign-in-gate-times-of-day.js b/static/src/javascripts/projects/common/modules/experiments/tests/sign-in-gate-times-of-day.js new file mode 100644 index 000000000000..6c26bb343bfe --- /dev/null +++ b/static/src/javascripts/projects/common/modules/experiments/tests/sign-in-gate-times-of-day.js @@ -0,0 +1,27 @@ + + +export const signInGateTimesOfDay = { + id: 'SignInGateTimesOfDay', + start: '2023-10-23', + expiry: '2023-11-23', + author: 'Lindsey Dew', + description: + 'Show sign in gate more frequently to users in the morning', + audience: 0.5, + audienceOffset: 0.4, + successMeasure: 'Increase registration and sign ins by 5%', + audienceCriteria: + '1st article of the day, max 5 articles, lower priority than consent banner, simple articles (not gallery, live etc.), not signed in, not shown after dismiss, not on help, info sections etc. Exclude iOS 9 and guardian-live-australia. Suppresses other banners, and appears over epics', + ophanComponentId: 'morning', + dataLinkNames: 'SignInGateTimesOfDay', + idealOutcome: + 'TODO', + showForSensitive: false, + canRun: () => true, + variants: [ + { + id: 'morning', + test: () => {}, + }, + ], +};