[]
n), pageTargeting.w = Mntl.utilities.getW(); const initialSlots = []; initialSlots.push({ config: { id: ‘leaderboard-flex-1’, sizes: [[728, 90], [970,90], [970, 250]], type: ‘leaderboard’, rtb: true, timedRefresh: 0, waitForThirdParty: false }, targeting: Mntl.fnUtilities.deepExtend({}, { pos: ‘atf’, priority: 1 }) }); initialSlots.push({ config: { id: ‘square-flex-1’, sizes: [[300, 250],[300, 600],[300, 1050],[160, 600]], type: ‘square’, rtb: true, timedRefresh: 0, waitForThirdParty: false }, targeting: Mntl.fnUtilities.deepExtend({}, { pos: ‘atf’, priority: 2 }) }); const testIds = Mntl.GPT.getTestIds(); pageTargeting.ab = testIds; pageTargeting.bts = testIds; Mntl.utilities.onLoad(function() { Mntl.utilities.loadExternalJS({ src: ‘//securepubads.g.doubleclick.net/tag/js/gpt.js’, async: false }); }); const options = { domain: ‘www.parents.com’, templateName: ‘structuredcontent’, isMobile: false, isTablet: false, isDesktop: true, dfpId: ‘3865’, publisherProvidedId: ‘cd5fd875-8d80-4b33-b9f6-e016d286de94’, singleRequest: false, useLmdFormat: true, useOxygen: true, useInfiniteRightRail: true, loadAdsAboveViewport: false, waitForNextFramePaint: false, revenueGroupAllowList: ”, lmdSiteCode: ‘parents’, pageTargeting, baseSlotTargeting, adLazyOffset, geo: { isInEurope: true, isInUsa: false }, initialSlots, auctionFloors: {“other”:{“id”:”21d2218e81c64020b702892b9f80ef64″,”floor”:”5″},”broadmatch”:{“id”:”ab5bdbd87dd642e588437fab2763e735″,”floor”:”5″},”leaderboardac”:{“id”:”4e07de7f6fa14123875f319a5adeec4e”,”floor”:”5″},”leaderboard-fixed”:{“id”:”46098b7f85c04215a6397fd865a9f796″,”floor”:”5″},”mob-square-fixed”:{“id”:”8752d4ca5d6247eea6a632eb2ec27433″,”floor”:”5″},”leaderboard-flex-1″:{“id”:”7e2f616eed714fdfa8c78030926e97f7″,”floor”:”5″},”square-flex-2″:{“id”:”70c55611f8924118b5a8294937fefba7″,”floor”:”5″},”square-flex-1″:{“id”:”94364faf9eaf47cf93a8a6f400e2c710″,”floor”:”5″},”square-fixed-4″:{“id”:”d1fd5acdfcf044dc92dc355a9508c019″,”floor”:”5″},”leaderboard-fixed-3″:{“id”:”3fd50b34b92b4674b7c925673b4b7cd3″,”floor”:”5″},”square-fixed-3″:{“id”:”4174ed79fbcc44beb766157a532e6729″,”floor”:”5″},”leaderboard-fixed-4″:{“id”:”cdb4f787aac74522a520c4c07b0df5e2″,”floor”:”5″},”mob-square-fixed-5″:{“id”:”009634ce05694b998347baca6f34c982″,”floor”:”5″},”square-fixed-2″:{“id”:”0956b0b12dce4d6baee792cff1a0a504″,”floor”:”5″},”leaderboard-fixed-1″:{“id”:”4803efa3acbb4ea8b2624cd2ff7f30ed”,”floor”:”5″},”square-fixed-1″:{“id”:”caa3493ab9e84c4ea0b3ef907c352d5e”,”floor”:”5″},”leaderboard-fixed-2″:{“id”:”189d1e694899495b84cf11db1827aa4d”,”floor”:”5″},”square-fixed-8″:{“id”:”2cb4e8fef3d644ecb26499622937e653″,”floor”:”5″},”square-fixed-7″:{“id”:”92312b3a488847d1a54d5791d5b3d627″,”floor”:”5″},”mob-square-flex-1″:{“id”:”7f92a4ee57d74942a96e2f9568f39bdd”,”floor”:”5″},”square-fixed-6″:{“id”:”395d7b35105347eca9bfc1d377df22de”,”floor”:”5″},”leaderboardfooter-flex-2″:{“id”:”d0425a6fc80d4fa0b9e69f4ba3470547″,”floor”:”5″},”leaderboard-fixed-5″:{“id”:”eb2390db5f134ec8aac08c3e73257bf4″,”floor”:”5″},”square-fixed-5″:{“id”:”fe13e853604f402baed6541e32ebc8f3″,”floor”:”5″},”leaderboardfooter-flex-1″:{“id”:”0c59330a61b74a5f9d78aef66e1a3eea”,”floor”:”5″},”mob-square-fixed-1″:{“id”:”cef86c2c8ea54e20b77a79f94a56f637″,”floor”:”5″},”mob-square-fixed-2″:{“id”:”49b2ef3c75d649a18db18533ba47c02d”,”floor”:”5″},”mob-square-fixed-3″:{“id”:”575f6df604e04dfabd5b606a4c99b993″,”floor”:”5″},”inline”:{“id”:”31558c5a855644d1b4de6eb6908802ac”,”floor”:”5″},”square-fixed”:{“id”:”3bef459fc3ee437fb1ed37ca28c7da47″,”floor”:”5″},”mob-squarefooter-fixed-1″:{“id”:”63ef979ca77f4939ae8b1178b0a36ddb”,”floor”:”5″},”mob-squarefooter-fixed-2″:{“id”:”59e724e981504af1853da0dbac106c35″,”floor”:”5″},”square-fixed-9″:{“id”:”20294b1098f5429197525586e51c6ba1″,”floor”:”5″},”mob-adhesive-banner-fixed”:{“id”:”2e650e23e5154173b341f50f4f28bf70″,”floor”:”5″},”primary”:{“id”:”3afb597c5ae348f7bf08b0178389c6aa”,”floor”:”5″}}, utils: { generateSlotId: Parents.GPT.generateSlotId }, displayOnScroll: false, displayOnConsent: true, adsToCollapse: [‘leaderboard*’,’square*’], refreshConfig: { ‘defaultConfig’: { timedRefresh: 0, userClickRefreshSelector: “”, timeoutRefreshOnceOnly: false, fiftyPercentAdRefresh: true, sizeOverrides: null } } }; if (Mntl.AdMetrics) { Mntl.AdMetrics.init(“11692892”, “na786aeddbf7345fbbf7a02eb7d08683904″, initialSlots.map(slot => slot.config.id), Date.now()); } else { Mntl.AdMetrics = { pushMetrics: () => {} }; } Mntl.GPT.setMantleDependencies(mantleDependencies); Mntl.GPT.init(options); }());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” : “useCommerceAndShoppingAPSTag | active | active | 1” , “99-6” : “continuousScrollMobSquareFlexOffset | active | Adds offset to mob-square-fixed-1 ad on CS articles | 1” , “99-7” : “recipescDesktopAdRefresh | active | active, right rail ads timed refresh active | 1” , “99-8” : “gamVideoUsePlcmt | active | Pass plcmt | 1” , “99-9” : “liveIntentConnectedIdTest | control | LiveIntent ConnectedID is enabled | 0” , “99-10” : “prebidConfigApi | active | Ad Config API is enabled | 1” , “99-11” : “prebidTotalTimeoutBudget | default | default | 1” , “99-12” : “useDynamicVideoSizes | active | active | 1” , “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” : “increaseMobileScAdCap | active | active | 1” } }); window.dataLayer.push({ envData: { environment: { environment: “k8s-prod”, application: “parents”, dataCenter: “us-east-1” }, server: { version: “2.20.0”, title: “parents-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.67” } }); (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 = {“documentId”:11692892,”revenueGroup”:””,”templateId”:”110″,”muid”:”cd5fd875-8d80-4b33-b9f6-e016d286de94″,”lastEditingAuthorId”:”156569″,”lastEditingUserId”:”165477014139470″,”primaryTaxonomyIds”:”5270699|5282764|5282287″,”fullUrl”:”https://www.parents.com/baby-friendly-vacations-should-be-the-norm-11692892″ + location.hash,”experienceType”:”single page”,”entryType”:”direct”,”excludeFromComscore”:false,”internalSessionId”:”na786aeddbf7345fbbf7a02eb7d08683904″,”internalRequestId”:”na786aeddbf7345fbbf7a02eb7d08683904″,”hid”:””,”experienceTypeName”:””,”recircDocIdsFooter”:”S-5286946|S-5290351|S-7503377|S-11683622|S-8415089|S-8558020|S-7370074|S-8730879|S-5293824|S-7480914|S-8723545|S-6752630|S-8567820|S-5290903|S-5290320|S-7499647″,”euTrafficFlag”:true,”isGoogleBot”:false,”mantleVersion”:”4.1.67″,”primaryTaxonomyNames”:”Parents|Life With Kids|Family Travel”,”country”:”DE”,”description”:”From baby yoga to baby-friendly menus, one hotel is making it easier for parents to travel with young kids, and we’re here for it.”,”title”:”Baby-Friendly Hotels Should be the Norm, Not a Luxury” || document.title || ”,”authorId”:”156569″,”viewType”:””,”templateName”:”STRUCTUREDCONTENT”,”authorNames”:”Liz Regalia”,”contentGroup”:”Other”}; var scrolledPageData = {}; var scrolledDocOrdinal; var scrolledPage; pageViewDataAsJSON.breakpointName = Parents.utilities.getW(); pageViewDataAsJSON.bounceExchangeId = 2548; pageViewDataAsJSON.descriptiveTaxonomy = ‘31476,11030,12762,11322,15774,32339,16418,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