1 parent 209207a commit 0b3a14aCopy full SHA for 0b3a14a
1 file changed
ab-testing/config/abTests.ts
@@ -169,6 +169,16 @@ const ABTests: ABTest[] = [
169
audienceSize: 0 / 100,
170
groups: ["control", "variant"],
171
shouldForceMetricsCollection: false,
172
+ shouldReportToOphan: () => {
173
+ const flashingElements = window.localStorage.getItem(
174
+ "gu.prefs.accessibility.flashing-elements",
175
+ );
176
+ const autoplayVideo = window.localStorage.getItem(
177
+ "gu.prefs.accessibility.autoplay-video",
178
179
+ /* Don't report if either preference has been disabled as videos will not autoplay*/
180
+ return flashingElements !== "false" && autoplayVideo !== "false";
181
+ },
182
},
183
{
184
name: "martech-admiral-adblock",
0 commit comments