","showSummary":null,"url":"/post-recession-consumers-find-ways-stretch-dollars","date":"2011-04-06T00: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":"Wholesalers & Distributors","url":"/wholesalers-distributors"},{"name":"Nonfoods","url":"/nonfoods"},{"name":"Research & Analysis","url":"/research-analysis"},{"name":"Market Trends","url":"/market-trends"}],"attachedFiles":[]},{"title":"Going Green with Bulk Buying","id":42415,"bundle":"article","summary":"Shoppers looking to environmental and economic benefits of bulk foods
","showSummary":null,"url":"/going-green-bulk-buying","date":"2011-04-04T00: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":"Wholesalers & Distributors","url":"/wholesalers-distributors"},{"name":"Research & Analysis","url":"/research-analysis"},{"name":"Nonfoods","url":"/nonfoods"}],"attachedFiles":[]},{"title":"AWG Brings Home the Bacon for MDA","id":42403,"bundle":"article","summary":"Associated Wholesale Grocers poised to break record for longest BLT","showSummary":null,"url":"/awg-brings-home-bacon-mda","date":"2011-04-01T00: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":"Wholesalers & Distributors","url":"/wholesalers-distributors"}],"attachedFiles":[]},{"title":"Seaboard Foods to Donate Portion of March Sales to Japan","id":42377,"bundle":"article","summary":"Donation will include up to $50,000 for disaster relief","showSummary":null,"url":"/seaboard-foods-donate-portion-march-sales-japan","date":"2011-03-30T00: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":"Wholesalers & Distributors","url":"/wholesalers-distributors"}],"attachedFiles":[]},{"title":"'New Paradigm' in Effect for Protein, Says Tyson COO","id":42381,"bundle":"article","summary":"Producer profitability and production now driven by grain costs and exports","showSummary":null,"url":"/new-paradigm-effect-protein-says-tyson-coo","date":"2011-03-30T00: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":"Wholesalers & Distributors","url":"/wholesalers-distributors"},{"name":"Trading Partners","url":"/trading-partners"}],"attachedFiles":[]},{"title":"AG New England Names VP Affiliated Biz Development","id":42364,"bundle":"article","summary":"Paul Greenan has risen through the ranks of the retailer-owned wholesaler.","showSummary":null,"url":"/ag-new-england-names-vp-affiliated-biz-development","date":"2011-03-28T00: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":"Wholesalers & Distributors","url":"/wholesalers-distributors"}],"attachedFiles":[]},{"title":"AG New England Appoints Retail Accounts Manager","id":42353,"bundle":"article","summary":"Ray Choate was previously the wholesaler’s bakery/deli specialist.","showSummary":null,"url":"/ag-new-england-appoints-retail-accounts-manager","date":"2011-03-25T00: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":"Wholesalers & Distributors","url":"/wholesalers-distributors"},{"name":"Trading Partners","url":"/trading-partners"},{"name":"Produce / Floral","url":"/produce-floral"}],"attachedFiles":[]},{"title":"ShopRite Store Features Premium Soup Line in Deli, Soup Aisles","id":42323,"bundle":"article","summary":"The Original SoupMan retail products enjoy an enhanced presence at the location.","showSummary":null,"url":"/shoprite-store-features-premium-soup-line-deli-soup-aisles","date":"2011-03-22T00: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":"Wholesalers & Distributors","url":"/wholesalers-distributors"},{"name":"Special Reports","url":"/special-reports"},{"name":"Equipment & Design","url":"/equipment-design"},{"name":"Nonfoods","url":"/nonfoods"},{"name":"New Products & Promotions","url":"/new-products-promotions"},{"name":"Frozen Foods","url":"/frozen-foods"}],"attachedFiles":[]},{"title":"AWG Reports Record Sales and Earnings","id":42319,"bundle":"article","summary":"Sales up 3% for Kansas City-based wholesale grocery company
","showSummary":null,"url":"/awg-reports-record-sales-and-earnings","date":"2011-03-21T00: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":"Wholesalers & Distributors","url":"/wholesalers-distributors"}],"attachedFiles":[]},{"title":"Producer Prices Highest Since 1974","id":42283,"bundle":"article","summary":"Food Institute report shows wholesale food prices surged in February","showSummary":null,"url":"/producer-prices-highest-1974","date":"2011-03-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":"Wholesalers & Distributors","url":"/wholesalers-distributors"}],"attachedFiles":[]}]},"title":"Wholesalers & Distributors","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 = "Wholesalers & Distributors | 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",
"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);
}
})();