","showSummary":null,"url":"/lasalle-acquires-nycc-park-central-hotel-will-invest-35m-upgrades","date":"2012-01-04T00: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":"Lodging","url":"/lodging"},{"name":"Hotel Brand - Luxury/Resort","url":"/hotel-brand-luxuryresort"},{"name":"Hotels","url":"/hotels"},{"name":"Mergers/Acquisitions","url":"/mergersacquisitions"}],"attachedFiles":[]},{"title":"Captain D's Acquires 65-Unit Grandy's","id":4298,"bundle":"article","summary":"Captain D's ends 2011 strong with the acquistion of Grandy's, a comfort food and homestyle restaurant chain. Grandy's will be operated as a separate subsidy.
","showSummary":null,"url":"/captain-ds-acquires-65-unit-grandys","date":"2011-12-23T00: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":"Restaurants","url":"/restaurants"},{"name":"Family Casual Dining","url":"/family-casual-dining"},{"name":"Mergers/Acquisitions","url":"/mergersacquisitions"}],"attachedFiles":[]},{"title":"Accor Acquires Mirvac for 149 Million, Adds 48 Hotels","id":4299,"bundle":"article","summary":"Accor has inked a deal to buy Australian hotel management company Mirvac, which is expected to be finalized in 2012. The deal will bring Accor to a total portfolio of 241 properties.
","showSummary":null,"url":"/accor-acquires-mirvac-149-million-adds-48-hotels","date":"2011-12-22T00: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":"Lodging","url":"/lodging"},{"name":"Hotel Brand - Luxury/Resort","url":"/hotel-brand-luxuryresort"},{"name":"Hotel Brand -- Boutique/Lifestyle","url":"/hotel-brand-boutiquelifestyle"},{"name":"Hotels","url":"/hotels"},{"name":"Mergers/Acquisitions","url":"/mergersacquisitions"},{"name":"Mergers/Acquisitions","url":"/mergersacquisitions"}],"attachedFiles":[]},{"title":"Fertitta Acquires Mortons for 6.90 Per Share","id":4300,"bundle":"article","summary":"Mortons Restaurants, a recognized brand, has acquired Morthon's Restaurant group.","showSummary":null,"url":"/fertitta-acquires-mortons-690-share","date":"2011-12-20T00: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":"Restaurants","url":"/restaurants"},{"name":"Fine Dining","url":"/fine-dining"},{"name":"Mergers/Acquisitions","url":"/mergersacquisitions"}],"attachedFiles":[]},{"title":"Tasti D-Lite Acquires Planet Smoothie","id":4348,"bundle":"article","summary":"In a strategic acquisition, which closed November 30, Tasti D-Lite will now own Planet Smoothie. The move is said to boost retail sales and broaden product offerings.","showSummary":null,"url":"/tasti-d-lite-acquires-planet-smoothie","date":"2011-12-02T00: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":"Mergers/Acquisitions","url":"/mergersacquisitions"},{"name":"Restaurants","url":"/restaurants"}],"attachedFiles":[]}]},"title":"Mergers/Acquisitions","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 = "Mergers/Acquisitions | 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);
}
})();