-
Price Chopper Enables Kids to ‘Build-a-Bouquet’ for Mom
Stores also offer decadent sweet treats for the occasion -
Winn-Dixie Offering Discounted Tetanus Shots
Special offer for storm-affected Alabama residents, emergency workers
","showSummary":null,"url":"/10-food-trade-shows-under-one-roof","date":"2011-03-10T00:00:00","author":{"email":"info@progressivegrocer.com","uname":"pg_root","firstName":null,"lastName":null,"bio":null,"title":null,"picture":null,"phone":null,"contactForm":null},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Research & Analysis","url":"/research-analysis"},{"name":"Market Trends","url":"/market-trends"},{"name":"Dairy / Refrigerated","url":"/dairy-refrigerated"},{"name":"Frozen Foods","url":"/frozen-foods"},{"name":"Deli / Prepared Foods","url":"/deli-prepared-foods"},{"name":"Meat / Seafood","url":"/meat-seafood"},{"name":"Bakery","url":"/bakery"}],"attachedFiles":[]},{"title":"United Supermarkets Backs Big Brothers Big Sisters","id":42079,"bundle":"article","summary":"Pepsi, Frito-Lay are partners in the effort.","showSummary":null,"url":"/united-supermarkets-backs-big-brothers-big-sisters","date":"2011-02-18T00:00:00","author":{"email":"info@progressivegrocer.com","uname":"pg_root","firstName":null,"lastName":null,"bio":null,"title":null,"picture":null,"phone":null,"contactForm":null},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Food Retailers","url":"/food-retailers"},{"name":"Special Reports","url":"/special-reports"},{"name":"Trading Partners","url":"/trading-partners"},{"name":"Nonfoods","url":"/nonfoods"},{"name":"Bakery","url":"/bakery"}],"attachedFiles":[]},{"title":"Safeway Launches ‘SimpleNutrition’","id":42063,"bundle":"article","summary":"The in-store shelf tag system aims to help shoppers make nutritious choices.","showSummary":null,"url":"/safeway-launches-simplenutrition","date":"2011-02-16T00:00:00","author":{"email":"info@progressivegrocer.com","uname":"pg_root","firstName":null,"lastName":null,"bio":null,"title":null,"picture":null,"phone":null,"contactForm":null},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Food Retailers","url":"/food-retailers"},{"name":"Nonfoods","url":"/nonfoods"},{"name":"Special Reports","url":"/special-reports"},{"name":"Research & Analysis","url":"/research-analysis"},{"name":"Bakery","url":"/bakery"}],"attachedFiles":[]},{"title":"Oldways’ New Tools Make the Most of Dietary Guidelines","id":42037,"bundle":"article","summary":"Touting the Med Diet, whole grains and enjoyment of food will help spur consumer compliance.","showSummary":null,"url":"/oldways-new-tools-make-most-dietary-guidelines","date":"2011-02-15T00:00:00","author":{"email":"info@progressivegrocer.com","uname":"pg_root","firstName":null,"lastName":null,"bio":null,"title":null,"picture":null,"phone":null,"contactForm":null},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Equipment & Design","url":"/equipment-design"},{"name":"Research & Analysis","url":"/research-analysis"},{"name":"Bakery","url":"/bakery"}],"attachedFiles":[]},{"title":"Editor’s Note","id":41946,"bundle":"article","summary":"Nutritionally Rich Opportunities Abound
","showSummary":null,"url":"/editors-note-12","date":"2011-02-02T00:00:00","author":{"email":"info@progressivegrocer.com","uname":"pg_root","firstName":null,"lastName":null,"bio":null,"title":null,"picture":null,"phone":null,"contactForm":null},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Produce / Floral","url":"/produce-floral"},{"name":"Meat / Seafood","url":"/meat-seafood"},{"name":"Bakery","url":"/bakery"}],"attachedFiles":[]},{"title":"Rudi’s Hopes to ‘Spread the Bread’ for Celiac Awareness","id":41802,"bundle":"article","summary":"A national coupon program supports educating doctors about the condition.","showSummary":null,"url":"/rudis-hopes-spread-bread-celiac-awareness","date":"2011-01-14T00:00:00","author":{"email":"info@progressivegrocer.com","uname":"pg_root","firstName":null,"lastName":null,"bio":null,"title":null,"picture":null,"phone":null,"contactForm":null},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Nonfoods","url":"/nonfoods"},{"name":"Supermarket & Grocery Industry News","url":"/supermarket-grocery-industry-news"},{"name":"Research & Analysis","url":"/research-analysis"},{"name":"Market Trends","url":"/market-trends"},{"name":"Bakery","url":"/bakery"}],"attachedFiles":[]},{"title":"Egging On Family Baking","id":41541,"bundle":"article","summary":"American Egg Board hosts holiday recipe exchange
","showSummary":null,"url":"/egging-family-baking","date":"2010-12-09T00:00:00","author":{"email":"info@progressivegrocer.com","uname":"pg_root","firstName":null,"lastName":null,"bio":null,"title":null,"picture":null,"phone":null,"contactForm":null},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":null,"topics":[{"name":"Research & Analysis","url":"/research-analysis"},{"name":"Dairy / Refrigerated","url":"/dairy-refrigerated"},{"name":"Nonfoods","url":"/nonfoods"},{"name":"Bakery","url":"/bakery"}],"attachedFiles":[]}]},"title":"Bakery","contentParagraphs":null,"sections":null};
const country = "US";
const language = null;
const SITE_LANGUAGE = "en";
const siteName = "Progressive Grocer";
const userRoles = ["anonymous"];
const userUid = 0;
const indexName = "pg";
const title = "Bakery | Progressive Grocer";
window.dataLayer = window.dataLayer || [];
const data = {};
data.entityTaxonomy = {};
const contentTypes = [
"article",
"blog",
"bulletin",
"embed_page",
"landing_page",
"event",
"image",
"page",
"product",
"whitepaper",
"video",
"tags",
];
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 toxonomy 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);
}
})();