\r\n
\r\nClick Here to View the Full Guide","showSummary":null,"url":"/2014-mobile-product-solution-guide-focus-customer-0","date":"2014-10-17T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_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":"Wi-Fi","url":"/wi-fi"},{"name":"Allocation Planning","url":"/allocation-planning"},{"name":"Coupons","url":"/coupons"},{"name":"Customer Service","url":"/customer-service"},{"name":"Workforce Management","url":"/workforce-management"},{"name":"Fulfillment","url":"/fulfillment"},{"name":"Network Infrastructure","url":"/network-infrastructure"},{"name":"Inventory Management","url":"/inventory-management"},{"name":"Security","url":"/security"},{"name":"Loyalty Programs","url":"/loyalty-programs"},{"name":"Mobile Devices","url":"/mobile-devices"},{"name":"Point of Sale","url":"/point-sale"},{"name":"Personalization","url":"/personalization"},{"name":"Marketing","url":"/marketing"},{"name":"Store Systems","url":"/store-systems"},{"name":"Traffic Analysis","url":"/traffic-analysis"},{"name":"Mobile Apps","url":"/mobile-apps"},{"name":"Customer Experience","url":"/customer-experience"}],"attachedFiles":[]},{"title":"Customer Engagement Tech Trends Study: The Personalization Imperative","id":2487,"bundle":"whitepaper","url":"/customer-engagement-tech-trends-study-personalization-imperative","date":"2014-10-17T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":null,"lastName":null,"bio":null,"title":null,"picture":null,"phone":null,"contactForm":null},"summary":"Download this report to learn why strategies that begin and end with the customer are critical to success in retail today.","body":"The opportunity cost of not being omnichannel today is 10% in lost revenue, according to study findings. Download this report to learn why strategies that begin and end with the customer are critical to success.","alternateLabel":null,"teaserImage":{"id":23225,"url":"https://assets1.risnews.com/styles/secondary_articles_short/s3/CustEngagRIS1014.jpg?itok=HHSPPLue","width":190,"alt":null,"height":216},"sponsored":false,"businessTopic":[],"company":[],"contentType":[]},{"title":"In-Store Digital Overhaul","id":2493,"bundle":"article","summary":"As the line between digital and physical shopping fades, the digitally enhanced store era begins","showSummary":null,"url":"/store-digital-overhaul","date":"2014-10-17T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_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":"Wi-Fi","url":"/wi-fi"},{"name":"Point of Sale","url":"/point-sale"},{"name":"Interactive Digital Signage","url":"/interactive-digital-signage"},{"name":"E-Commerce","url":"/e-commerce"},{"name":"Fulfillment","url":"/fulfillment"},{"name":"Inventory Management","url":"/inventory-management"},{"name":"Interactive Digital Services","url":"/interactive-digital-services"},{"name":"Security","url":"/security"},{"name":"Merchandise Management","url":"/merchandise-management"},{"name":"Mobile Commerce","url":"/mobile-commerce"},{"name":"Personalization","url":"/personalization"},{"name":"Pricing Management","url":"/pricing-management"},{"name":"Store Operations","url":"/store-operations"},{"name":"Store Systems","url":"/store-systems"},{"name":"Mobile Devices","url":"/mobile-devices"},{"name":"Web Analytics","url":"/web-analytics"},{"name":"Customer Experience","url":"/customer-experience"}],"attachedFiles":[]},{"title":"Deliver the Ultimate Personalized Shopping Experience with Beacons and Wi-Fi","id":2500,"bundle":"whitepaper","url":"/deliver-ultimate-personalized-shopping-experience-beacons-and-wi-fi","date":"2014-10-15T00:00:00","author":{"email":"devteam@ashday.com","uname":"ash_root","firstName":null,"lastName":null,"bio":null,"title":null,"picture":null,"phone":null,"contactForm":null},"summary":"Beacons are revolutionizing the shopping experience; read this white paper to learn how indoor locationing can help you send personalized mobile messages that engage shoppers.","body":"Beacons are revolutionizing the shopping experience; read this informative white paper to learn about the basics of indoor locationing and how this new technology can help you send targeted mobile messages that engage shoppers, provide a new level of service and improve the customer experience.
","alternateLabel":null,"teaserImage":{"id":23210,"url":"https://assets1.risnews.com/styles/secondary_articles_short/s3/ris_Motorola_ewp_10-15-14_teaser.jpg?itok=BtLr9O5d","width":196,"alt":null,"height":216},"sponsored":false,"businessTopic":[],"company":[],"contentType":[]}]},"title":"Wi-Fi"};
const country = "HK";
const language = "en, *";
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);
}
})();