\r\n
\r\n","body":"In this exclusive Q&A, Tom Ray, director of business intelligence for Rainmaker shares with HT the challenges managers face and the advent of technological tools that can help operators extract and deliver valuable property management data in order to take appropriate actions. Sponsored","alternateLabel":null,"whitePaperDocument":"/secure-file/494","metatags":{"title":{"#tag":"meta","#attributes":{"name":"title","content":"Got Data? Here's How to Use It | Columns | Hospitality Magazine (HT)"}},"description":{"#tag":"meta","#attributes":{"name":"description","content":"Improve everything from ops to business performance by finding and utilizing biz insights. Sponsored."}},"abstract":{"#tag":"meta","#attributes":{"name":"abstract","content":"Improve everything from ops to business performance by finding and utilizing biz insights. Sponsored."}},"keywords":{"#tag":"meta","#attributes":{"name":"keywords","content":"Big Data, Business Analytics, Business Intelligence (BI), Data Security, Executive Insight, Foodservice, Lodging, November-December 2015, Rainmaker Group"}},"og_site_name":{"#tag":"meta","#attributes":{"property":"og:site_name","content":"Hospitality Technology"}},"og_type":{"#tag":"meta","#attributes":{"property":"og:type","content":"Whitepaper"}},"og_url":{"#tag":"meta","#attributes":{"property":"og:url","content":"https://hospitalitytech.com/got-data-heres-how-use-it"}},"og_title":{"#tag":"meta","#attributes":{"property":"og:title","content":"Got Data? Here's How to Use It"}},"og_image_0":{"#tag":"meta","#attributes":{"property":"og:image","content":"https://assets1.hospitalitytech.com/styles/primary_articles_short/s3/RainmakerQA1215.jpg?itok=dTVWEBrK"}},"og_image_url_0":{"#tag":"meta","#attributes":{"property":"og:image:url","content":"https://assets1.hospitalitytech.com/styles/primary_articles_short/s3/RainmakerQA1215.jpg?itok=dTVWEBrK"}},"og_image_type":{"#tag":"meta","#attributes":{"property":"og:image:type","content":"image/jpeg"}},"og_image_width":{"#tag":"meta","#attributes":{"property":"og:image:width","content":"655"}},"og_image_height":{"#tag":"meta","#attributes":{"property":"og:image:height","content":"368"}},"og_updated_time":{"#tag":"meta","#attributes":{"property":"og:updated_time","content":"2021-12-17T12:45:37-0600"}},"twitter_cards_type":{"#tag":"meta","#attributes":{"name":"twitter:card","content":"summary_large_image"}},"twitter_cards_title":{"#tag":"meta","#attributes":{"name":"twitter:title","content":"Got Data? Here's How to Use It"}},"twitter_cards_image":{"#tag":"meta","#attributes":{"name":"twitter:image","content":"https://assets1.hospitalitytech.com/styles/primary_articles_short/s3/RainmakerQA1215.jpg?itok=dTVWEBrK"}},"schema.org":{"schema_article_type":{"#tag":"meta","#attributes":{"name":"@type","content":"Article","group":"schema_article","schema_metatag":true}},"schema_article_name":{"#tag":"meta","#attributes":{"name":"name","content":"Got Data? Here's How to Use It","group":"schema_article","schema_metatag":true}},"schema_article_headline":{"#tag":"meta","#attributes":{"name":"headline","content":"Got Data? Here's How to Use It","group":"schema_article","schema_metatag":true}},"schema_article_article_body":{"#tag":"meta","#attributes":{"name":"articleBody","content":"In this exclusive Q&A, Tom Ray, director of business intelligence for Rainmaker shares with HT the challenges managers face and the advent of technological tools that can help operators extract and deliver valuable property management data in order to take appropriate actions. Sponsored","group":"schema_article","schema_metatag":true}},"schema_article_about_0":{"#tag":"meta","#attributes":{"name":"about","content":["Data & Analytics","Security -- Network","Restaurants","Lodging","Executive Insight","Hotels"],"group":"schema_article","schema_metatag":true}},"schema_article_date_published":{"#tag":"meta","#attributes":{"name":"datePublished","content":"Wed, 12/16/2015 - 18:00","group":"schema_article","schema_metatag":true}},"schema_article_date_modified":{"#tag":"meta","#attributes":{"name":"dateModified","content":"Wed, 12/16/2015 - 18:00","group":"schema_article","schema_metatag":true}}}},"teaserImage":{"id":2102,"url":"https://assets1.hospitalitytech.com/styles/secondary_articles_short/s3/RainmakerQA1215.jpg?itok=uDtVsa-d","width":196,"alt":null,"height":216},"heroImage":null,"heroImageSrcset":null,"sponsored":false,"sponsorship":{"overrideAds":null},"businessTopic":[],"contentType":[],"company":[],"marketSegment":[],"topics":[{"id":264,"name":"Data & Analytics","url":"/data-analytics"},{"id":31,"name":"Security -- Network","url":"/security-network"},{"id":9,"name":"Restaurants","url":"/restaurants"},{"id":7,"name":"Lodging","url":"/lodging"},{"id":262,"name":"Executive Insight","url":"/executive-insight"},{"id":442,"name":"Hotels","url":"/hotels"}],"contentParagraphs":null,"sections":null};
const country = "US";
const language = null;
const SITE_LANGUAGE = "en";
const siteName = "Hospitality Technology";
const userRoles = ["anonymous"];
const userUid = 0;
const indexName = "HT";
const title = "Got Data? Here's How to Use It | Columns | Hospitality Magazine (HT)";
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 = 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 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);
}
})();