15 Strategies to Maximize the Peak Selling Season
Click here to view the full supplement
\r\n ","showSummary":null,"url":"/15-strategies-maximize-peak-selling-season","date":"2014-07-18T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":null,"lastName":null,"bio":null,"title":null,"picture":null,"phone":null,"contactForm":null},"byline":"RIS News","hideByline":null,"digitalEdition":null,"sponsored":false,"sponsorship":{"overrideAds":null},"taggedPro":null,"relatedArticles":[],"teaserImage":null,"heroImageSrcset":null,"hideHero":null,"heroImage":null,"heroCaption":null,"attachedFiles":[],"businessTopic":[],"contentType":[],"company":[],"marketSegment":[],"topics":[{"id":44,"name":"Allocation Planning","url":"/allocation-planning"},{"id":95,"name":"Enterprise Resource Management","url":"/enterprise-resource-management"},{"id":45,"name":"Assortment Planning","url":"/assortment-planning"},{"id":43,"name":"Business Intelligence (BI)","url":"/business-intelligence"},{"id":7,"name":"Omnichannel","url":"/omnichannel"},{"id":15,"name":"Customer Relationship Management (CRM)","url":"/customer-relationship-management-crm"},{"id":5,"name":"Customer Service","url":"/customer-service"},{"id":143,"name":"Warehouse Management","url":"/warehouse-management"},{"id":22,"name":"E-Commerce","url":"/e-commerce"},{"id":50,"name":"Fulfillment","url":"/fulfillment"},{"id":87,"name":"Network Infrastructure","url":"/network-infrastructure"},{"id":60,"name":"Digital Transformation","url":"/digital-transformation"},{"id":454,"name":"Mobile Devices","url":"/mobile-devices"},{"id":62,"name":"Workforce Management","url":"/workforce-management"},{"id":13,"name":"Point of Sale","url":"/point-sale"},{"id":65,"name":"Loyalty Programs","url":"/loyalty-programs"},{"id":155,"name":"Pricing Management","url":"/pricing-management"},{"id":40,"name":"Merchandise Management","url":"/merchandise-management"},{"id":31,"name":"Mobile Commerce","url":"/mobile-commerce"},{"id":12,"name":"Marketing","url":"/marketing"},{"id":195,"name":"Mobile Apps","url":"/mobile-apps"},{"id":79,"name":"Order Management","url":"/order-management"},{"id":160,"name":"Replenishment","url":"/replenishment"},{"id":138,"name":"Returns Management","url":"/returns-management"},{"id":33,"name":"Store Systems","url":"/store-systems"},{"id":48,"name":"Supply Chain Management","url":"/supply-chain-management"},{"id":131,"name":"Web Analytics","url":"/web-analytics"},{"id":203,"name":"E-Commerce Platform","url":"/e-commerce-platform"},{"id":89,"name":"Unified Commerce: RIS Deep Dive","url":"/ris-deep-dive-unified-commerce"},{"id":51,"name":"Big Data","url":"/big-data"},{"id":27,"name":"Mobile Strategy","url":"/mobile-strategy"},{"id":9,"name":"Customer Experience","url":"/customer-experience"}],"contentParagraphs":{"isGated":false,"gateType":null,"gateText":null,"paragraphs":[{"id":1842,"bundle":"basic","text":"Peak selling season preparation never ends. As soon as one season wraps, planning for the next one begins. With that in mind RIS News has compiled 15 tips to help retailers navigate the year-round frenzy.
\r\n
\r\nClick here to view the full supplement"}]}};
const country = "US";
const language = "en-US,en;q=0.5";
const SITE_LANGUAGE = "en";
const siteName = "RIS News";
const userRoles = ["anonymous"];
const userUid = 0;
const indexName = "risnews";
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 = `${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);
}
})();