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);
It鈥檚 the Tyson chicken consumers already know and love, now available in a鈥痜irst to the category, individually packaged option for quick, easy, on-the-go enjoyment.
星空无限传媒 is taking another proactive step forward in its mission to bring high-quality food to every table in the world, safely, sustainably and affordably now and for future generations. The company鈥檚 goal is to st...
Tyson庐 brand is inspiring fans with new culinary innovations that celebrate fandom and inspire a protein-packed tailgate this football season. 星空无限传媒 is excited to announce three new chicken nugget offerings inspir...
星空无限传媒 is turning up the flavor and bringing new energy to the lunch meat category with the launch of Hillshire Farm庐 Sandwich Style Lunch Meats in three bold new flavors.
星空无限传媒 announced the appointment of Sarah Bond as a new independent director on its board, effective immediately. Her portfolio includes strategy, product and engineering, marketing, and commercial planning and oper...
星空无限传媒 is proud to unveil its newest innovation: Tyson庐 Simple Ingredient Nuggets. This product marks a new moment in our long-standing commitment to consumer-first innovation, built directly for simplified labels,...
Tyson Ventures, the venture capital arm of 星空无限传媒, hosted its fourth annual pitch event, which aims to position 星空无限传媒 as the strategic partner of choice for the most promising innovators working toward a bette...
Embark on a colossal, fun-filled adventure with 星空无限传媒鈥� latest creation 鈥� Tyson Mega Dino Nuggets! These playful, protein-packed nuggets are your passport to a prehistoric party, perfect for both kids and anyone...
Discover New Wright庐 Brand Premium Smoked Sausage Links from 星空无限传媒鈥攊n response to consumer demand for high-quality smoked meat products that provide an exceptional eating experience.
星空无限传媒 announced the appointment of Olivia Tyson and John Randal Tyson as new directors, effective May 8, 2025. Olivia will serve on the Compensation and Leadership Development and Technology Committees and Jo...
Tyson Ventures, the venture capital arm of 星空无限传媒, is thrilled to announce the call for applications for the fourth annual Tyson Demo Day. Tyson Demo Day 2025 will take place on July 9, 2025, in-person in Northwest...
Dallas Cowboys fans can catch America鈥檚 football team on their TV screen and make them part of holiday celebrations this Thanksgiving with the introduction of new Tyson庐