{"status":200,"features":{"tsh-001":{"defaultValue":-1,"rules":[{"condition":{"pageConditionsMet":{"$elemMatch":{"$eq":"tsh-001"}},"path":{"$nin":["/it/unisciti-alla-membership/iscriviti/","/join-membership/sign-up/"]},"url":{"$ne":"https://www.thesocialhub.co/membership/"}},"coverage":1,"hashAttribute":"id","bucketVersion":1,"seed":"6ecc5c1d-2b30-400b-8a05-78620f06dad1","hashVersion":2,"variations":[0,1],"weights":[0,1],"key":"tsh-001","meta":[{"key":"0","name":"Control"},{"key":"1","name":"Variation 1"}],"phase":"16","name":"TSH-001 Newsletter Modal"}]},"tsh-002":{"defaultValue":-1,"rules":[{"condition":{"pageConditionsMet":{"$elemMatch":{"$eq":"tsh-002"}}},"coverage":1,"hashAttribute":"id","seed":"7de6a592-7089-47c0-b117-7add56b6562f","hashVersion":2,"variations":[0,1],"weights":[0,1],"key":"tsh-002","meta":[{"key":"0","name":"Control"},{"key":"1","name":"Variation 1"}],"phase":"4","name":"TSH-002 Co-working Newsletter Modal"}]},"tsh-003":{"defaultValue":-1},"tsh-004":{"defaultValue":-1},"tsh-006":{"defaultValue":-1}},"experiments":[{"key":"membership-skip-account-creating","changeId":"3730035d5cdc898e6a6fc5aadd6125a0d0f6b9a8e16fc0c7cf5c36b00258cb78","status":"draft","variations":[{"urlRedirect":""},{"urlRedirect":"https://preprod.thesocialhub.co/join-membership/start"}],"hashVersion":2,"hashAttribute":"id","fallbackAttribute":"","disableStickyBucketing":false,"urlPatterns":[{"include":true,"pattern":"https://preprod.thesocialhub.co/join-membership/sign-up","type":"simple"}],"weights":[0.5,0.5],"meta":[{"key":"0","name":"Control"},{"key":"1","name":"Variation 1"}],"seed":"7b830029-84a1-484f-9f83-e4a12d953cc1","name":"Membership - Skip account creating","phase":"0","coverage":1,"persistQueryString":true},{"key":"tsh-005","changeId":"c50812b8b225ca10b3b9c15c582d6cbc9b486c6bdd359f1f66968482d911a944","status":"draft","variations":[{"css":"","js":"","domMutations":[]},{"css":"","js":"let hotelData = {};\n\nfetchHotelData(false);\nfunction fetchHotelData(openLink) {\n\tlet hotelData = {};\n\tfetch(\"https://www.thesocialhub.co/api/site\", {}).then(response => {\n\t\treturn response.json();\n\t}).then(siteSettings => {\n\t\tsiteSettings.products.forEach(function (country) {\n\t\t\tcountry.hotels.forEach(function (hotel) {\n\t\t\t\thotelData[hotel.hotelCode] = hotel;\n\t\t\t});\n\t\t});\n\t\tif (openLink) {\n\t\t\tconst currentHotelCode = getCurrentHotelCode();\n\t\t\tif (currentHotelCode && hotelData[currentHotelCode]) {\n\t\t\t\tconst bookingWidgetHref = `${hotelData[currentHotelCode].hotelUrl.url}?HOTEL=${currentHotelCode}`;\n\t\t\t\twindow.open(bookingWidgetHref, \"_blank\");\n\t\t\t}\n\t\t}\n\t}).catch(function (error) {\n\t\tconsole.error(\"There was a problem with the fetch operation:\", error);\n\t});\n}\n\nfunction getCurrentHotelCode() {\n\tfor (let i = dataLayer.length - 1; i >= 0; i--) {\n\t\tif (dataLayer[i].event && dataLayer[i].event.includes(\"tsh.\")) {\n\t\t\treturn dataLayer[i].property_id ? encodeURIComponent(dataLayer[i].property_id) : null;\n\t\t}\n\t}\n}\n\nfunction openBookingEngineTab() {\n\tconst currentHotelCode = getCurrentHotelCode();\n\tif (currentHotelCode && hotelData[currentHotelCode]) {\n\t\tconst bookingWidgetHref = `${hotelData[currentHotelCode].hotelUrl.url}?HOTEL=${currentHotelCode}`;\n\t\twindow.open(bookingWidgetHref, \"_blank\");\n\t} else {\n\t\tfetchHotelData(true);\n\t}\n}\n\nopenBookingEngineTab();\n","domMutations":[]}],"hashVersion":2,"hashAttribute":"id","fallbackAttribute":"","disableStickyBucketing":false,"urlPatterns":[{"include":true,"type":"regex","pattern":"^https:\\/\\/www\\.thesocialhub\\.co\\/[a-z-]+\\/stay\\/hotel-stay\\/$"}],"weights":[0.5,0.5],"meta":[{"key":"0","name":"Control"},{"key":"1","name":"Variation 1"}],"seed":"b70a335e-0318-40b7-8be2-e20d6e325fe4","name":"TSH-005 - Link to modal or deeplink","phase":"0","coverage":1},{"key":"tsh-001-visual","changeId":"e8ae8f27c305e12d14db2645229c68337f194b972001daa904fdfbefbcc2e995","status":"running","variations":[{"css":"","js":"","domMutations":[]},{"css":"","js":"(function() {\n\t// Check if listener already attached (prevents duplicates on SPA navigation)\n\tif (document.body?.hasAttribute('data-tsh001-listener')) {\n\t\treturn;\n\t}\n\n\t// Wait for body to exist\n\tif (!document.body) {\n\t\t// Use MutationObserver to wait for body (safer than setTimeout loop)\n\t\tconst observer = new MutationObserver(() => {\n\t\t\tif (document.body) {\n\t\t\t\tobserver.disconnect();\n\t\t\t\tattachListener();\n\t\t\t}\n\t\t});\n\t\tobserver.observe(document.documentElement, { childList: true, subtree: true });\n\t\treturn;\n\t}\n\n\t// Body exists, attach listener immediately\n\tattachListener();\n\n\tfunction attachListener() {\n\t\t// Double-check attribute (in case of race condition)\n\t\tif (document.body.hasAttribute('data-tsh001-listener')) {\n\t\t\treturn;\n\t\t}\n\t\tdocument.body.setAttribute('data-tsh001-listener', 'true');\n\n\t\t// Use event delegation from body (remains valid even if target elements change)\n\t\tdocument.body.addEventListener(\"click\", ({ target }) => {\n\t\t\tif (target.matches(\"div#tsh001Subscribe > a\") && typeof mm_sendDimension === \"function\") {\n\t\t\t\tmm_sendDimension(\"Submit Click\", \"tsh-001\", 1);\n\t\t\t}\n\t\t});\n\t}\n})();","domMutations":[{"selector":".WidgetComponentContent .tsh-001-content-title","action":"set","attribute":"html","value":"Get 15% off your next hotel stay"},{"selector":".WidgetComponentContent .tsh-001-content-paragraph","action":"set","attribute":"html","value":"Join The Social Hub’s newsletter for exclusive offers, expert travel insights, and be the first to know about new openings and can’t-miss experiences."}]}],"hashVersion":2,"hashAttribute":"id","fallbackAttribute":"","disableStickyBucketing":false,"bucketVersion":1,"minBucketVersion":0,"urlPatterns":[{"include":true,"type":"simple","pattern":"*"}],"weights":[0,1],"meta":[{"key":"0","name":"Control"},{"key":"1","name":"Variation 1"}],"seed":"e8253cc3-2c7d-4d0b-88f8-511bb698210b","name":"TSH-001-Visual","phase":"6","condition":{"pageConditionsMet":{"$elemMatch":{"$eq":"tsh-001"}},"path":{"$ne":"/join-membership/sign-up/"}},"coverage":1},{"key":"tsh-cs-ga4default","changeId":"63dde75ac6acb8c5400d42b612f4d8db5f9d93d8b04e34356c16b711cd4ed395","status":"running","variations":[{"css":"","js":"console.log(`AA_DF_Con`);","domMutations":[]},{"css":"","js":"console.log(`AA_DF_Var`);","domMutations":[]}],"hashVersion":2,"hashAttribute":"id","fallbackAttribute":"","disableStickyBucketing":false,"urlPatterns":[{"include":true,"type":"simple","pattern":"*"}],"weights":[0.5,0.5],"meta":[{"key":"0","name":"Control"},{"key":"1","name":"Variation 1"}],"seed":"96473ca9-8134-403c-855c-0ee47f620d05","name":"TSH-CS-GA4default","phase":"1","condition":{"pathname":"/"},"coverage":1},{"key":"tsh-cs-superform","changeId":"2d909835da7face07ec0c95a3100d4392850a1b1b5d129f0eea7dee1eb305db5","status":"running","variations":[{"css":"","js":"console.log(`AA_SF_Con`);","domMutations":[]},{"css":"","js":"console.log(`AA_SF_Var`);","domMutations":[]}],"hashVersion":2,"hashAttribute":"id","fallbackAttribute":"","disableStickyBucketing":false,"urlPatterns":[{"include":true,"type":"simple","pattern":"*"}],"weights":[0.5,0.5],"meta":[{"key":"0","name":"Control"},{"key":"1","name":"Variation 1"}],"seed":"2f35d894-077f-4f81-9fea-975b26dc9809","name":"TSH-CS-Superform","phase":"1","condition":{"pathname":"/"},"coverage":1}],"dateUpdated":"2026-06-04T10:56:43.360Z"}