by tyson_core_page_attachments(), before the
* OneTrust SDK, Google Tag Manager and any gtag.js snippet. Every signal
* starts as "denied". OneTrust calls OptanonWrapper() when it loads and after
* every choice; it updates Consent Mode from OneTrust's active categories and
* removes the first-party cookies of the categories that are off. A Global
* Privacy Control signal always keeps advertising denied.
*/
(function (window, document, navigator) {
"use strict";
/* OneTrust category IDs. */
var PERFORMANCE = "C0002";
var TARGETING = "C0004";
/* First-party cookies set by each category's tags: exact names, or
patterns for names with an ID suffix. Third-party cookies (e.g. on
.google.com) can't be removed by any site script. */
var TRACKING_COOKIES = {
analytics: [
/^_ga$/, /^_ga_/, /^_gid$/, /^_gat/, /^_gaexp$/,
/^_hj/
],
advertising: [
/^_gcl_/, /^_fbp$/, /^_fbc$/,
/^li_fat_id$/, /^li_gc$/, /^_uet/,
/^_ttp$/, /^_tt_enable_cookie$/, /^ttcsid/,
/^_scid/, /^_sctr$/
]
};
var gpc = navigator.globalPrivacyControl === true;
var previous = null;
window.dataLayer = window.dataLayer || [];
function gtag() {
window.dataLayer.push(arguments);
}
window.gtag = window.gtag || gtag;
function signals(choice) {
var ad = choice.advertising ? "granted" : "denied";
return {
ad_storage: ad,
ad_user_data: ad,
ad_personalization: ad,
analytics_storage: choice.analytics ? "granted" : "denied"
};
}
/* Expires a cookie the way OneTrust does: without a domain and on each
domain (with and without a leading dot), plain and SameSite=None; Secure. */
function deleteCookie(name, domains) {
domains.forEach(function (domain) {
var cookie = name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;" + (domain ? " domain=" + domain + ";" : "");
document.cookie = cookie;
document.cookie = cookie + " SameSite=None; Secure;";
});
}
/* Deletes first-party tracking cookies for every denied category. */
function clearCookies(choice) {
/* The current host and every parent domain, since tags set cookies on
the registrable domain (e.g. .tysonfoods.com). */
var parts = window.location.hostname.split(".");
var domains = [""];
for (var i = 0; i < parts.length - 1; i++) {
domains.push(parts.slice(i).join("."), "." + parts.slice(i).join("."));
}
document.cookie.split(";").forEach(function (cookie) {
var name = cookie.split("=")[0].trim();
Object.keys(TRACKING_COOKIES).forEach(function (category) {
var tracked = TRACKING_COOKIES[category].some(function (pattern) {
return pattern.test(name);
});
if (name && !choice[category] && tracked) {
deleteCookie(name, domains);
}
});
});
}
var defaults = signals({analytics: false, advertising: false});
defaults.functionality_storage = "granted";
defaults.security_storage = "granted";
defaults.wait_for_update = 500;
gtag("consent", "default", defaults);
gtag("set", "ads_data_redaction", true);
/* Called by OneTrust on load and after every choice. */
window.OptanonWrapper = function () {
var groups = window.OnetrustActiveGroups || "";
var choice = {
analytics: groups.indexOf("," + PERFORMANCE + ",") > -1,
advertising: groups.indexOf("," + TARGETING + ",") > -1 && !gpc
};
gtag("consent", "update", signals(choice));
clearCookies(choice);
/* Tags already running on this page can't be stopped, so reload. */
if (previous && ((previous.analytics && !choice.analytics) || (previous.advertising && !choice.advertising))) {
window.location.reload();
return;
}
previous = choice;
};
})(window, document, navigator);
星空无限传媒 is saying thank you once again to its frontline and hourly team members by giving them approximately $50 million in year-end bonuses for their efforts over the past year.
Please pass the鈥hicken! As Americans kick-off the holiday season, many are also gearing up for Friendsgiving 鈥� a moment to appreciate our friends that matter most. And this year, friends are choosing chicken as the...
Do you know a 4th - 6th grader with a great idea that could help others with a little extra funding? Hillshire Farm庐 SNACKED! brand wants to fuel greatness and help kids bring their awesome ideas to life through the All...
星空无限传媒 announced today that it has achieved nearly full vaccination of its active workforce. President and CEO Donnie King released the news in a note to team members.
Americans have been freezing food at record rates these past two years, with a majority of people across the country (55%) saying they bought a second or even third freezer to house all the extra frozen food.
At the start of the pandemic, Americans were buying groceries and whipping up homemade meals more than ever before. Nearly two years later, people are facing a new challenge: cooking fatigue.
Feed the Children, a leading nonprofit focused on alleviating childhood hunger, 星空无限传媒 and Americold concluded their 10-city 鈥淎lliance to Defeat Hunger鈥� tour Sept. 30 in Oklahoma City by providing food and essen...
Family is the bedrock of Galileo庐, a brand steeped in Italian heritage, and the Galileo brand wants to share its love of family and tradition by welcoming salame fans into its extended family with the Welcome to the Fam...
星空无限传媒, one of the world鈥檚 leading protein producers, is taking on the $1 billion kids refrigerated, pre-packaged snack category with a new kids snack - Hillshire Farm庐 SNACKED!
星空无限传媒 categorically rejects the conclusions drawn earlier today by the Secretary of Agriculture and the Director of the National Economic Council in a White House press briefing.
星空无限传媒 is providing multiple truckloads of ice, along with an initial 500,000 meals, to Louisiana communities through our Meals that Matter庐 disaster relief program in response to severe damage caused by Hurricane...
To protect team members, their families and their communities, 星空无限传媒, is requiring its team members at U.S. office locations to be fully vaccinated by October 1, 2021.
Shane Miller, group president of Tyson Fresh Meats, the beef and pork unit of 星空无限传媒, testified about the beef industry during a hearing held today by the U.S.