","showSummary":null,"url":"/hess-sends-second-letter-shareholders-asking-support","date":"2013-04-04T00:00:00","author":{"email":"devteam@ashday.com","uname":"eiq_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":"Corporate & Store Operations","url":"/corporate-store-operations"}],"attachedFiles":[]},{"title":"BP Driver Rewards Makes Its Debut","id":29658,"bundle":"article","summary":"The program allows customers to earn 5 cents off per gallon for every 20 gallons purchased.","showSummary":null,"url":"/bp-driver-rewards-makes-its-debut","date":"2013-04-04T00:00:00","author":{"email":"devteam@ashday.com","uname":"eiq_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":"Marketing","url":"/marketing"}],"attachedFiles":[]},{"title":"Inside Walgreens' First D.C. Flagship Store","id":29649,"bundle":"article","summary":"The drugstore chain continues to roll out its "Well Experience" format.","showSummary":null,"url":"/inside-walgreens-first-dc-flagship-store","date":"2013-04-03T00:00:00","author":{"email":"devteam@ashday.com","uname":"eiq_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":"Competitive Watch","url":"/competitive-watch"}],"attachedFiles":[]},{"title":"ampm Offering Exclusive StarCraft Collectible Cups","id":29651,"bundle":"article","summary":"Four different designs depict the hit video game. ","showSummary":null,"url":"/ampm-offering-exclusive-starcraft-collectible-cups","date":"2013-04-03T00:00:00","author":{"email":"devteam@ashday.com","uname":"eiq_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":"Marketing","url":"/marketing"}],"attachedFiles":[]},{"title":"AAA Fuel Gauge Report: April Begins With Declining Gas Prices","id":29645,"bundle":"article","summary":"Forty-two states are paying less than one week ago as national average falls for 12 days straight.","showSummary":null,"url":"/aaa-fuel-gauge-report-april-begins-declining-gas-prices","date":"2013-04-02T00:00:00","author":{"email":"devteam@ashday.com","uname":"eiq_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":"Corporate & Store Operations","url":"/corporate-store-operations"}],"attachedFiles":[]},{"title":"Dunkin' Donuts and Baskin-Robbins Collaborate on Iced Coffee Flavors","id":29640,"bundle":"article","summary":"Mint Chocolate Chip and Old Fashioned Butter Pecan are available through summer.","showSummary":null,"url":"/dunkin-donuts-and-baskin-robbins-collaborate-iced-coffee-flavors","date":"2013-04-02T00:00:00","author":{"email":"devteam@ashday.com","uname":"eiq_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":"Marketing","url":"/marketing"}],"attachedFiles":[]},{"title":"Attorneys Move to Block Merchant Websites Against Swipe-Fee Deal","id":29646,"bundle":"article","summary":"Hearing to grant finalization of the settlement is scheduled for Sept. 12.","showSummary":null,"url":"/attorneys-move-block-merchant-websites-against-swipe-fee-deal","date":"2013-04-02T00:00:00","author":{"email":"devteam@ashday.com","uname":"eiq_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":"Legislative, Regulatory & Legal","url":"/legislative-regulatory-legal"}],"attachedFiles":[]},{"title":"Casual Dining Experimenting With Fast-Casual Spinoffs","id":29641,"bundle":"article","summary":"Different style can gain new traffic and customers while reducing development and labor costs.","showSummary":null,"url":"/casual-dining-experimenting-fast-casual-spinoffs","date":"2013-04-02T00:00:00","author":{"email":"devteam@ashday.com","uname":"eiq_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":"Competitive Watch","url":"/competitive-watch"}],"attachedFiles":[]}]},"title":"Industry News & Trends","contentParagraphs":null,"sections":null}; const country = "US"; const language = null; const SITE_LANGUAGE = "en"; const siteName = "Convenience Store News"; const userRoles = ["anonymous"]; const userUid = 0; const indexName = "csnews"; const title = "Industry News & Trends | Convenience Store News"; 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); } })();