[]
slot.config.id), Date.now(), “0.1”); } else { Mntl.AdMetrics = { pushMetrics: () => {} }; } Mntl.GPT.setMantleDependencies(mantleDependencies); Mntl.GPT.init(options); }());window.addEventListener(‘readyForThirdPartyTracking’, () => { // Set a delay for loading the script // Specify the delay duration in pushly.xml const delay = ‘8’; window.setTimeout(() => { Mntl.utilities.loadExternalJS({ src: ‘https://cdn.p-n.io/pushly-sdk.min.js?domain_key=g8mDWq7d84LyHyUP9AsdmULDWaIx87ljeWjF’, async: true }); window.PushlySDK = window.PushlySDK || []; // eslint-disable-next-line prefer-rest-params function pushly() { window.PushlySDK.push(arguments); } pushly(‘load’, { domainKey: ‘g8mDWq7d84LyHyUP9AsdmULDWaIx87ljeWjF’, sw: ‘/pushly-sdk-worker.js’ }); }, parseFloat(delay) * 1000); }); window.dataLayer = window.dataLayer || []; // moved from gtm.ftl so we can initialize GTM only onLoad. From https://support.google.com/tagmanager/answer/6103696?hl=en Mntl.utilities.onLoad(function() { (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;defer=true;j.src=’//www.googletagmanager.com/gtm.js?id=’+i+dl;j.type=”text/javascript”;f.parentNode.insertBefore(j,f)})(window,document,’script’,’dataLayer’,’GTM-P3X3VT7′); }); window.dataLayer.push({ event: ‘ab-proctor’, ‘abTests-proctor’: { “99-0” : “useOxygen | useOxygen | use the Oxygenated ad unit format and slot names | 1” , “99-1” : “vanillaJSLazyAdRecipeSC | active | vanillaLazyAd.js enabled | 1” , “99-2” : “useFloorSearch | active | Use Floor Search | 1” , “99-3” : “enablePublisherAudiences | active | active | 1” , “99-4” : “useConsentManagement | noEnforcement | use Consent Management Module with no enforcement | 1” , “99-5” : “continuousScrollMobSquareFlexOffset | active | Adds offset to mob-square-fixed-1 ad on CS articles | 1” , “99-6” : “recipescDesktopAdRefresh | active | active, right rail ads timed refresh active | 1” , “99-7” : “gamVideoUsePlcmt | active | Pass plcmt | 1” , “99-8” : “liveIntentConnectedIdTest | control | LiveIntent ConnectedID is enabled | 0” , “99-9” : “prebidConfigApi | active | Ad Config API is enabled | 1” , “99-10” : “prebidTotalTimeoutBudget | default | default | 1” , “99-11” : “useDynamicVideoSizes | active | active | 1” , “99-12” : “rtbTracking | newevents | | 2” , “99-13” : “orion | active | Active | 1” , “99-14” : “rtbLibraryLoadTimeout | default | default | 1” , “99-15” : “prebidVideoUsePlcmt | active | Pass plcmt | 1” , “99-16” : “useLiveIntentSignedInUser | active | active | 1” , “55” : “relatedArticlesAlgorithm | useRecommendationService | Enables usage of proximity API | 1” , “99-18” : “removeAdTiers | active | active | 1” , “99-19” : “useLiveRamp | active | active | 1” , “99-20” : “amazonTamBidResponseTimeout | default | default | 1” , “99-21” : “prebidMetricTracker | active | Active | 1” , “65” : “trxMidFunnel | control | Test is inactive – TRX mid funnel component does not show | 0” } }); window.dataLayer.push({ envData: { environment: { environment: “k8s-prod”, application: “travelandleisure”, dataCenter: “us-east-1” }, server: { version: “3.9.0”, title: “travelandleisure-launcher” }, client : { browserUA: navigator.userAgent, serverUA: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063”, deviceType: “pc”, usStateCode: “” }, mantle: “4.1.94” } }); (function(fnUtils, CMP) { const deferLoadTime = 5000; const readyForThirdPartyTrackingEvent = new CustomEvent(‘readyForThirdPartyTracking’, { bubbles: true }); const readyForThirdPartyTracking = fnUtils.once(function() { window.dataLayer.push({event: ‘readyForThirdPartyTracking’}); window.dispatchEvent(readyForThirdPartyTrackingEvent); }); const readyForDeferredScriptsEvent = new CustomEvent(‘readyForDeferredScripts’, { bubbles: true }); const readyForDeferredScripts = fnUtils.once(function() { window.dataLayer.push({event: ‘readyForDeferredScripts’}); window.dispatchEvent(readyForDeferredScriptsEvent); }); const hasTargetingConsentHandler = function() { const hasConsent = CMP.hasTargetingConsent(); if (hasConsent) { readyForThirdPartyTracking(); } // Trigger the readyForDeferredScripts if consent is given // or if the user has closed the banner(AlertBox) which exists for EU // or if the user optin consent is not required, which applies for non gdpr locations if (hasConsent || CMP.isAlertBoxClosed() || !CMP.isOptInConsent()) { readyForDeferredScripts(); } return hasConsent; }; const purposeOneConsentHandler = async function() { const hasPurposeOneConsent = await CMP.hasPurposeOneConsent(); if (hasPurposeOneConsent) { readyForThirdPartyTracking(); } if (hasPurposeOneConsent || CMP.isAlertBoxClosed()) { readyForDeferredScripts(); } return hasPurposeOneConsent; }; const onRequiredDomEvent = fnUtils.once(function() { if (!CMP) { readyForThirdPartyTracking(); readyForDeferredScripts(); return; } const handler = CMP.supportsTCData() ? purposeOneConsentHandler : hasTargetingConsentHandler; if (!CMP.isLoading()) { handler(); } CMP.onConsentChange(handler); }); [ [‘adRendered’, onRequiredDomEvent], [‘beforeunload’, onRequiredDomEvent], [‘load’, function() { setTimeout(onRequiredDomEvent, deferLoadTime); }] ].forEach(function(event) { window.addEventListener(event[0], event[1], { once: true }); }); })(Mntl.fnUtilities || {}, Mntl.CMP);window.dataLayer = window.dataLayer || []; (function() { var isContinuousScroll = document.querySelector(‘.mntl-continuous-scroll’); var pageViewDataAsJSON = {“country”:”DE”,”description”:”Here’s what you should know about the resort fee you might see on your hotel bill.”,”title”:”What Are Resort Fees? And How to Avoid Them” || document.title || ”,”revenueGroup”:””,”contentGroup”:”Other”,”authorId”:”1002775″,”viewType”:””,”documentId”:11684683,”authorNames”:”Stacey Leasca”,”templateName”:”STRUCTUREDCONTENT”,”templateId”:”110″,”muid”:”06598162-d826-46b5-b263-782d5c920acb”,”lastEditingAuthorId”:”1002775″,”lastEditingUserId”:”164513054670873″,”primaryTaxonomyIds”:”5324443|5425739″,”fullUrl”:”https://www.travelandleisure.com/what-are-resort-fees-11684683″ + location.hash,”experienceType”:”single page”,”entryType”:”direct”,”excludeFromComscore”:false,”internalSessionId”:”n17289cb154c7431a8aef6377a8a957c413″,”internalRequestId”:”n17289cb154c7431a8aef6377a8a957c413″,”hid”:””,”experienceTypeName”:””,”recircDocIdsFooter”:”S-5437519|S-7551398|S-5439281|S-5441185|S-5431202|S-5434050|S-5426172|S-5439982|S-5426092|S-5434468|S-5440167|S-8717615|S-5438703|S-8609518|S-7152718|S-5439641″,”euTrafficFlag”:true,”isGoogleBot”:false,”mantleVersion”:”4.1.94″,”primaryTaxonomyNames”:”Travel + Leisure|Hotels + Resorts”}; var scrolledPageData = {}; var scrolledDocOrdinal; var scrolledPage; pageViewDataAsJSON.breakpointName = Travelandleisure.utilities.getW(); pageViewDataAsJSON.bounceExchangeId = 2548; pageViewDataAsJSON.descriptiveTaxonomy = ‘16741,11030,16744,11322,16724’; if (isContinuousScroll) { pageViewDataAsJSON.experienceTypeName = ‘continuous’; if (window.dataLayer && window.dataLayer.length) { //loop through events and collect previous scrolledDocOrdinal and scrolledPage values scrolledPageData = window.dataLayer.reduce( (acc, curr) => { if (curr.event == ‘unifiedPageview’) { acc.scrolledDocOrdinal = acc.scrolledDocOrdinal ? acc.scrolledDocOrdinal + 1 : 1; acc.scrolledPage = acc.scrolledPage ? acc.scrolledPage + ” | ” + (curr.documentId).toString() : (curr.documentId).toString(); } return acc; }, {}); } scrolledPage = scrolledPageData.scrolledPage ? scrolledPageData.scrolledPage + ‘ | ‘ + (pageViewDataAsJSON.documentId).toString() : (pageViewDataAsJSON.documentId).toString(); scrolledDocOrdinal = scrolledPageData.scrolledDocOrdinal ? scrolledPageData.scrolledDocOrdinal + 1 : 1; pageViewDataAsJSON.scrolledPage = scrolledPage; pageViewDataAsJSON.scrolledDocOrdinal = scrolledDocOrdinal; } Mntl.utilities.onLoad(function() { var isRecirc = false && document.querySelector(‘.mntl-recirc-section, .related-article-list, .masonry-list-section’); if (false && !isRecirc) { pageViewDataAsJSON.recircDocIdsFooter = “”; } Mntl.PageView.init(pageViewDataAsJSON); }); })();]]>

Related Posts