diff --git a/ab-testing/config/abTests.ts b/ab-testing/config/abTests.ts index 75180923317..be9a82b1475 100644 --- a/ab-testing/config/abTests.ts +++ b/ab-testing/config/abTests.ts @@ -169,6 +169,16 @@ const ABTests: ABTest[] = [ audienceSize: 0 / 100, groups: ["control", "variant"], shouldForceMetricsCollection: false, + shouldReportToOphan: () => { + const flashingElements = window.localStorage.getItem( + "gu.prefs.accessibility.flashing-elements", + ); + const autoplayVideo = window.localStorage.getItem( + "gu.prefs.accessibility.autoplay-video", + ); + /* Don't report if either preference has been disabled as videos will not autoplay*/ + return flashingElements !== "false" && autoplayVideo !== "false"; + }, }, { name: "martech-admiral-adblock",