","showSummary":null,"url":"/depinto-morris-share-their-vision-c-stores-future","date":"2011-02-17T00: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":"BP Fund to Settle Thousands of Gulf Damage Claims","id":17909,"bundle":"article","summary":"Payments range from $10,000 to $30 million. ","showSummary":null,"url":"/bp-fund-settle-thousands-gulf-damage-claims","date":"2011-02-14T00: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":"Insight, NACS Announce Judges for 2011 International Convenience Retailer of the Year Award","id":17829,"bundle":"article","summary":"
Judges include Applegreen’s Joe Barrett, CBX President Joe Bona and CSNews Editor Don Longo.
","showSummary":null,"url":"/insight-nacs-announce-judges-2011-international-convenience-retailer-year-award","date":"2011-02-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":"NACS Annual Fuels Report Online","id":17830,"bundle":"article","summary":"Addresses common questions about the United States Petroleum market.
","showSummary":null,"url":"/nacs-annual-fuels-report-online","date":"2011-02-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":"Atlas Oil Adds to Sales Team Roster","id":17822,"bundle":"article","summary":"Five new representatives will focus on business development and emerging markets.","showSummary":null,"url":"/atlas-oil-adds-sales-team-roster","date":"2011-02-01T00: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":"Chevron Commits $1M to Grameen America","id":17573,"bundle":"article","summary":"Funds will fill microloans for aspiring business owners in San Francisco's Bay Area.","showSummary":null,"url":"/chevron-commits-1m-grameen-america","date":"2011-01-24T00: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":"President Obama Signs Food Safety Bill","id":17447,"bundle":"article","summary":"Law gives the FDA power to order the recall of unsafe foods.","showSummary":null,"url":"/president-obama-signs-food-safety-bill","date":"2011-01-05T00: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":"Investor Lawsuit Aimed at BP Over Gulf Oil Spill","id":17431,"bundle":"article","summary":"Class action comprises seven cases, possibly thousands of investors.","showSummary":null,"url":"/investor-lawsuit-aimed-bp-over-gulf-oil-spill","date":"2011-01-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":"Legislative, Regulatory & Legal","url":"/legislative-regulatory-legal"}],"attachedFiles":[]},{"title":"TravelCenters of America To Roll Out DEF Dispensers","id":17419,"bundle":"article","summary":"The national chain expects to install the dispensers at about 50 locations in 2011.","showSummary":null,"url":"/travelcenters-america-roll-out-def-dispensers","date":"2011-01-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":"In Memoriam: Remembering Those We Lost in 2010","id":17423,"bundle":"article","summary":"2010 Year in Review: They may be gone, but they are not forgotten.","showSummary":null,"url":"/memoriam-remembering-those-we-lost-2010","date":"2011-01-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":"Legislative, Regulatory & Legal","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 = "Legislative, Regulatory & Legal | 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);
}
})();Legislative, Regulatory & Legal | Convenience Store News
X
This ad will auto-close in 10 seconds