-
Level Best
Seattle’s Best Coffee has bowed a radically simplified packaged coffee line designed to change the category’s conventions. -
Beer Sales Backed at Wegmans
PA Supreme Court upholds grocer’s liquor licenses
","showSummary":null,"url":"/greener-better","date":"2010-11-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":"Trading Partners","url":"/trading-partners"},{"name":"Market Trends","url":"/market-trends"},{"name":"Research & Analysis","url":"/research-analysis"},{"name":"Nonfoods","url":"/nonfoods"},{"name":"Beverages","url":"/beverages"}],"attachedFiles":[]},{"title":"FMI Issues Sustainability Guide","id":41288,"bundle":"article","summary":"Next month’s Sustainability Summit will offer a workshop on using the info.","showSummary":null,"url":"/fmi-issues-sustainability-guide","date":"2010-11-08T00: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":"Trading Partners","url":"/trading-partners"},{"name":"Equipment & Design","url":"/equipment-design"},{"name":"Market Trends","url":"/market-trends"},{"name":"Frozen Foods","url":"/frozen-foods"},{"name":"Nonfoods","url":"/nonfoods"},{"name":"Deli / Prepared Foods","url":"/deli-prepared-foods"},{"name":"Beverages","url":"/beverages"}],"attachedFiles":[]},{"title":"Retailers, CPG Manufacturers to Tackle Green Issues","id":41183,"bundle":"article","summary":"FMI, GMA join forces at first-ever joint sustainability summit
","showSummary":null,"url":"/retailers-cpg-manufacturers-tackle-green-issues","date":"2010-10-24T00: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":"Trading Partners","url":"/trading-partners"},{"name":"Equipment & Design","url":"/equipment-design"},{"name":"Nonfoods","url":"/nonfoods"},{"name":"Market Trends","url":"/market-trends"},{"name":"Beverages","url":"/beverages"}],"attachedFiles":[]},{"title":"Drink to Your Health","id":52324,"bundle":"product","url":"/drink-your-health","summary":"Farmland Dairies has extended its Special Request Skim Plus line of fortified milk products with Skim Plus Fiber and Skim Plus Omega-3 with CoQ10.","sponsored":false,"teaserImage":{"url":"https://assets1.progressivegrocer.com/files/styles/primary_articles_short/s3/909_0.jpg?itok=ClmMRSDj","height":2249,"width":1070,"alt":null}},{"title":"Pennsylvania Liquor Control Board Expands Wine Kiosk Rollout","id":41145,"bundle":"article","summary":"A new kiosk opened October 16 at The Fresh Grocer in Drexel Hill.","showSummary":null,"url":"/pennsylvania-liquor-control-board-expands-wine-kiosk-rollout","date":"2010-10-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":"Market Trends","url":"/market-trends"},{"name":"Nonfoods","url":"/nonfoods"},{"name":"Beverages","url":"/beverages"}],"attachedFiles":[]},{"title":"Pure Pomegranate","id":52212,"bundle":"product","url":"/pure-pomegranate","summary":"Bolthouse Farms 100% Pomegranate Juice employs a proprietary juice blend and bottling process for the freshest taste possible.","sponsored":false,"teaserImage":{"url":"https://assets1.progressivegrocer.com/files/styles/primary_articles_short/s3/840_0.jpg?itok=iWLoVy2U","height":763,"width":328,"alt":null}},{"title":"Farmstand Fresh","id":52785,"bundle":"product","url":"/farmstand-fresh","summary":"The introduction of Tropicana Trop50 Farmstand Apple means that apple fans can now enjoy their favorite flavor in juice form with half the sugar and calories, and no artificial sweeteners.","sponsored":false,"teaserImage":{"url":"https://assets1.progressivegrocer.com/files/styles/primary_articles_short/s3/831_0.jpg?itok=CbCdbrd6","height":500,"width":202,"alt":null}}]},"title":"Beverages","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 = "Beverages | 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);
}
})();