in media/js/base/experiment-utils.es6.js [28:55]
function isApprovedToRun(params, ua) {
let queryString =
typeof params === 'string' ? params : window.location.search || null;
const userAgent = typeof ua === 'string' ? ua : navigator.userAgent || null;
// Exclude Googlebot from experiment redirects issue #15773.
if (userAgent && userAgent.indexOf('Googlebot') !== -1) {
return false;
}
if (gpcEnabled()) {
return false;
}
if (dntEnabled()) {
return false;
}
if (queryString) {
queryString = decodeURIComponent(queryString);
return knownExcludedParams.every((param) => {
return queryString.indexOf(param) === -1;
});
}
return true;
}