Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ab-testing/config/abTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading