","alternateLabel":null,"teaserImage":{"id":2113,"url":"https://assets1.hospitalitytech.com/styles/secondary_articles_short/s3/ht_Rockbot_ewp_0116_teaser.jpg?itok=mxEelyXT","width":196,"alt":null,"height":216},"sponsored":false,"businessTopic":[],"company":[],"contentType":[]},{"title":"MomentFeed Announces Google My Business API Integration ","id":1219,"bundle":"article","summary":"New API simplifies management of location data for improved local search and Google AdWords campaigns.","showSummary":null,"url":"/momentfeed-announces-google-my-business-api-integration","date":"2015-12-21T00:00:00","author":{"email":"devteam@ashday.com","uname":"ht_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":"Customer Experience/Service","url":"/customer-experience-service"},{"name":"Location Based Services","url":"/location-based-services"},{"name":"Restaurants","url":"/restaurants"}],"attachedFiles":[]},{"title":"How Hotels Are Using Beacons and Augmented Reality","id":1244,"bundle":"article","summary":"Augmented reality and beacons are two ways hotels can show tech-hungry Millennials they are ahead of the curve.","showSummary":null,"url":"/how-hotels-are-using-beacons-and-augmented-reality","date":"2015-12-14T00:00:00","author":{"email":"devteam@ashday.com","uname":"ht_root","firstName":null,"lastName":null,"bio":null,"title":null,"picture":null,"phone":null,"contactForm":null},"digitalEdition":null,"sponsored":false,"taggedPro":null,"teaserImage":{"id":22876,"url":"https://assets1.hospitalitytech.com/styles/secondary_articles_short/s3/BEACONSAR1215.jpg?itok=kq0g4lam","width":190,"height":210,"alt":null},"topics":[{"name":"Customer Experience/Service","url":"/customer-experience-service"},{"name":"Location Based Services","url":"/location-based-services"},{"name":"Lodging","url":"/lodging"},{"name":"Hotels","url":"/hotels"}],"attachedFiles":[]},{"title":"Mobile Engagement Platform Adds Loyalty and Proximity Targeting","id":1268,"bundle":"article","summary":"Fishbowl acquires retail marketing automation firm CLYP Technologies.","showSummary":null,"url":"/mobile-engagement-platform-adds-loyalty-and-proximity-targeting","date":"2015-12-01T00:00:00","author":{"email":"devteam@ashday.com","uname":"ht_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":"Sales & Marketing","url":"/sales-marketing"},{"name":"Location Based Services","url":"/location-based-services"},{"name":"Mobile Devices & Apps","url":"/mobile-devices-apps"},{"name":"Restaurants","url":"/restaurants"}],"attachedFiles":[]},{"title":"Gravy Teams with ROIchecker to Predict Foot Traffic for Store-Profit Optimization","id":1272,"bundle":"article","summary":"Solution helps restaurants manage operational costs via predicting staffing and F&B needs for individual stores based on local event and activity attendance. ","showSummary":null,"url":"/gravy-teams-roichecker-predict-foot-traffic-store-profit-optimization","date":"2015-11-27T00:00:00","author":{"email":"devteam@ashday.com","uname":"ht_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":"Data & Analytics","url":"/data-analytics"},{"name":"Inventory Control/Management","url":"/inventory-controlmanagement"},{"name":"Location Based Services","url":"/location-based-services"},{"name":"Restaurants","url":"/restaurants"}],"attachedFiles":[]}]},"title":"Location Based Services","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 = "Location Based Services | Hospitality Technology";
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);
}
})();
Location Based Services | Hospitality Technology
X
This ad will auto-close in 10 seconds