","alternateLabel":null,"teaserImage":{"id":2152,"url":"https://assets1.consumergoods.com/styles/secondary_articles_short/s3/filez1foen?itok=yldWbP2_","width":196,"alt":null,"height":216},"sponsored":false,"businessTopic":[],"company":[],"contentType":[]},{"title":"Total Wearable Solutions Deliver Gains in Warehouse Worker Productivity","id":8464,"bundle":"article","summary":"Hands-free solutions boost user mobility and productivity.","showSummary":null,"url":"/total-wearable-solutions-deliver-gains-warehouse-worker-productivity","date":"2016-07-01T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Supply Chain Management","url":"/supply-chain-management"},{"name":"Warehouse Management","url":"/warehouse-management"},{"name":"Sales & Marketing","url":"/sales-and-marketing"}],"attachedFiles":[]},{"title":"E2open Acquires POS Analytics Company Orchestro","id":8468,"bundle":"article","summary":"The E2open supply chain operating network adds retail point of sale analytics company to recently acquired demand sensing company Terra Technology.
","showSummary":null,"url":"/e2open-acquires-pos-analytics-company-orchestro","date":"2016-06-30T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Data & Analytics","url":"/data-analytics"},{"name":"Downstream Data","url":"/downstream-data"},{"name":"Supply Chain Management","url":"/supply-chain-management"}],"attachedFiles":[]},{"title":"IDC Provides Framework for Integrated Supply Chain Execution Strategy ","id":8473,"bundle":"article","summary":"IDC Manufacturing Insights' new maturity model guides organizations in their journey to achieve leading class supply chain execution.","showSummary":null,"url":"/idc-provides-framework-integrated-supply-chain-execution-strategy","date":"2016-06-29T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Supply Chain Management","url":"/supply-chain-management"}],"attachedFiles":[]},{"title":"Whole Foods Market Partners with Analytics Provider on New Tech","id":8474,"bundle":"article","summary":"Whole Foods Market and Nielsen to create a defined natural and organic product hierarchy for supplier partners","showSummary":null,"url":"/whole-foods-market-partners-analytics-provider-new-tech","date":"2016-06-29T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":{"id":13784,"url":"https://assets1.consumergoods.com/styles/secondary_articles_short/s3/365_Silver_Lake_store_exterior_high_res.jpg?itok=z9VK4Y61","width":190,"height":216,"alt":""},"topics":[{"name":"Business Intelligence (BI)","url":"/business-intelligence-bi"},{"name":"Data & Analytics","url":"/data-analytics"},{"name":"Downstream Data","url":"/downstream-data"},{"name":"Product Information Management","url":"/product-information-management"},{"name":"Product Lifecycle Management (PLM)","url":"/product-lifecycle-management-plm"},{"name":"Sales and Operations Planning (S&OP)","url":"/sales-and-operations-planning-sop"},{"name":"Supply Chain Management","url":"/supply-chain-management"},{"name":"Manufacturing","url":"/manufacturing"},{"name":"Sales & Marketing","url":"/sales-and-marketing"}],"attachedFiles":[]},{"title":"The Fights Against Replica Cheeses","id":8476,"bundle":"article","summary":"The Italian Consortium partners with NetNames to stop trademark infringements of Parmigiano Reggiano cheese.","showSummary":null,"url":"/fights-against-replica-cheeses","date":"2016-06-27T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Supply Chain Management","url":"/supply-chain-management"},{"name":"Manufacturing","url":"/manufacturing"}],"attachedFiles":[]},{"title":"Hostess Acquires Superior Cake Products","id":8495,"bundle":"article","summary":"Category growth and rising consumer demand for fresh baked goods drives a first-time acquisition for Hostess.","showSummary":null,"url":"/hostess-acquires-superior-cake-products","date":"2016-06-14T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":{"id":13779,"url":"https://assets1.consumergoods.com/styles/secondary_articles_short/s3/fileCCrVQH?itok=FUuLGkmY","width":190,"height":216,"alt":null},"topics":[{"name":"Supply Chain Management","url":"/supply-chain-management"},{"name":"Sales & Marketing","url":"/sales-and-marketing"},{"name":"CGT Archives","url":"/CGT-Sections"}],"attachedFiles":[]},{"title":"The Hershey Company Names Michele Buck COO","id":8503,"bundle":"article","summary":"Buck brings more than 25 years of consumer packaged goods experience to this new executive role.","showSummary":null,"url":"/hershey-company-names-michele-buck-coo","date":"2016-06-10T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Product Innovation","url":"/product-innovation-0"},{"name":"Supply Chain Management","url":"/supply-chain-management"},{"name":"Sales & Marketing","url":"/sales-and-marketing"},{"name":"IT Integration","url":"/it-integration"}],"attachedFiles":[]},{"title":"General Mills Partners with Organic Valley to Help Dairy Farms ","id":8508,"bundle":"article","summary":"General Mills has announced a strategic sourcing partnership with the largest organic cooperative in the U.S. that will help about 20 dairy farms add around 3,000 acres to organic dairy production over the next three years.","showSummary":null,"url":"/general-mills-partners-organic-valley-help-dairy-farms","date":"2016-06-09T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":"Root","lastName":"Man","bio":null,"title":null,"picture":null,"phone":null,"contactForm":true},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Supply Chain Management","url":"/supply-chain-management"},{"name":"Manufacturing","url":"/manufacturing"}],"attachedFiles":[]}]},"title":"Supply Chain Management","contentParagraphs":null,"sections":null};
const country = "US";
const language = null;
const SITE_LANGUAGE = "en";
const siteName = "Consumer Goods Technology";
const userRoles = ["anonymous"];
const userUid = 0;
const indexName = "CG";
const title = "Supply Chain Management | Consumer Goods Technology";
window.dataLayer = window.dataLayer || [];
const data = {};
data.entityTaxonomy = {};
const contentTypes = [
"article",
"blog",
"bulletin",
"embed_page",
"landing_page",
"event",
"image",
"page",
"product",
"whitepaper",
"video",
"tags",
"author_profile",
"buyers_guide_listing"
];
if (
routeInfo &&
"bundle" in routeInfo &&
contentTypes.includes(routeInfo["bundle"])
) {
data.entityBundle = routeInfo.bundle;
data.entityTitle = title || `${routeInfo.title} | ${siteName}`;
data.entityId = routeInfo.id;
data.entityName = routeInfo.author?.uname;
data.entityCreated = routeInfo.created;
data.sponsored = routeInfo.sponsored;
data.sponsor = routeInfo.sponsoringCompany;
data.entityType = "node";
data.entityLangcode = SITE_LANGUAGE;
data.siteName = siteName;
data.drupalLanguage = language;
data.drupalCountry = country;
data.userRoles = userRoles;
data.userUid = userUid;
data.entityTaxonomyKeys = {};
data.entityTaxonomyHierarchies = {};
data.parentNaicsCode = {};
data.isPro = false;
data.algoliaIndexName = indexName;
// Add taxonomy data
const taxonomies = {
businessTopic: "business_topic",
contentType: "content_type",
company: "company",
marketSegment: "market_segment",
};
const getHierarchy = (term, terms = []) => {
terms.push({ id: term.id, name: term.name });
if (term.parentTerm != null) {
getHierarchy(term.parentTerm, terms);
}
return terms;
};
const getTerms = (term, useApiId = false) => {
return { id: useApiId ? term.apiId : term.id, name: term.name };
};
const getKeys = (term) => {
return { id: term.id, name: term.apiId };
};
Object.entries(taxonomies).forEach(([key, item]) => {
terms = routeInfo[key];
if (terms && terms.length > 0) {
data["entityTaxonomy"][item] = terms.map((term) =>
getTerms(term, key === "company")
);
if (key !== "company") {
data["entityTaxonomyKeys"][item] = terms.map(getKeys);
termGroups = [];
terms.forEach((term, termInd) => {
termGroups[termInd] = getHierarchy(term);
});
data["entityTaxonomyHierarchies"][item] = termGroups;
}
}
});
data["entityTaxonomy"]["tags"] = routeInfo["topics"] || [];
// Primary Topic is either the business topic or the top tag.
if (routeInfo["businessTopic"]?.length > 0) {
data["entityPrimaryTopic"] = routeInfo["businessTopic"][0]["name"];
} else {
if (routeInfo["topics"]?.length > 0) {
data["entityPrimaryTopic"] = routeInfo["topics"][0]["name"];
}
}
// Primary and secondary entityNaicsCodes come from the MarketSegment
if (routeInfo.marketSegment?.length > 0) {
data.entityNaicsCode = {};
data["entityNaicsCode"]["id"] = routeInfo["marketSegment"][0]["id"];
data["entityNaicsCode"]["name"] =
routeInfo["marketSegment"][0]["naicsCode"];
if (routeInfo["marketSegment"][0]["parentTerm"] != null) {
data["parentNaicsCode"]["id"] =
routeInfo["marketSegment"][0]["parentTerm"]["id"];
data["parentNaicsCode"]["name"] =
routeInfo["marketSegment"][0]["parentTerm"]["naicsCode"];
}
} else {
data.entityNaicsCode = [];
}
if (routeInfo.taggedPro) {
data.isPro = routeInfo.taggedPro;
}
window.dataLayer.push(data);
} else if (routeInfo && "vid" in routeInfo) {
data.entityBundle = "tags";
data.entityTitle = routeInfo.name;
data.entityId = routeInfo.id;
data.entityName = routeInfo.author?.uname;
data.entityCreated = routeInfo.created;
data.entityType = "taxonomy_term";
data.entityLangcode = SITE_LANGUAGE;
data.siteName = siteName;
data.sponsored = routeInfo.sponsored;
data.sponsor = routeInfo.sponsoringCompany;
data.drupalLanguage = language;
data.drupalCountry = country;
data.userRoles = userRoles;
data.userUid = userUid;
data.algoliaIndexName = indexName;
data["entityTaxonomy"]["tags"] = {
id: routeInfo["id"],
name: routeInfo["name"],
};
window.dataLayer.push(data);
}
})();