Recipes, How-Tos, Videos and More

[]
Allrecipes | Recipes, How-Tos, Videos and More slot.config.id), Date.now()); } else { Mntl.AdMetrics = { pushMetrics: () => {} }; } Mntl.GPT.init(options); }());window.addEventListener(‘readyForThirdPartyTracking’, () => { (function() { Mntl.utilities.loadExternalJS({ src: ‘https://cdn.p-n.io/pushly-sdk.min.js?domain_key=1s505zJTcPgEUiiSrtvjQaixszhrrYRtqwpR’, async: true }); window.PushlySDK = window.PushlySDK || []; // eslint-disable-next-line prefer-rest-params function pushly() { window.PushlySDK.push(arguments) } pushly(‘load’, { domainKey: ‘1s505zJTcPgEUiiSrtvjQaixszhrrYRtqwpR’, sw: ‘/pushly-sdk-worker.js’ }); })(); });// 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;f.parentNode.insertBefore(j,f);})(window,document,’script’,’dataLayer’,’GTM-P3X3VT7′); }); var dataLayer = dataLayer || []; dataLayer.push({ event: ‘ab-proctor’, ‘abTests-proctor’: { “99-0” : “useOxygen | useOxygen | use the Oxygenated ad unit format and slot names | 1” , “82” : “pushlyNotifications | active | Active: Pushly enabled | 1” , “99-2” : “useFloorSearch | active | search API flooring system | 1” , “99-3” : “vanillaJWPlayer | active | | 1” , “99-4” : “recipescDesktopAdRefresh | active | active, right rail ads timed refresh active | 1” , “99-5” : “useRTBforVideoAds | active | | 1” } }); dataLayer.push({ envData: { environment: { environment: “k8s-prod”, application: “allrecipes”, dataCenter: “us-east-1” }, server: { version: “1.82.0”, title: “allrecipes-launcher” }, client : { browserUA: navigator.userAgent, serverUA: “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0”, deviceType: “pc”, usStateCode: “” }, mantle: “3.14.143”, commerce: “” } }); (function(win, fnUtils, CMP) { var pageViewDataAsJSON = {“country”:”GB”,”description”:”Everyday recipes with ratings and reviews by home cooks like you. Find easy dinner ideas, healthy recipes, plus helpful cooking tips and techniques.”,”fullUrl”:”https://www.allrecipes.com/” + location.hash,”experienceType”:”single page”,”entryType”:”direct”,”excludeFromComscore”:false,”internalSessionId”:”n2ef595a23c8e4f76aa27dab5c29b0dfc15″,”internalRequestId”:”n2ef595a23c8e4f76aa27dab5c29b0dfc15″,”hid”:””,”experienceTypeName”:””,”recircDocIdsFooter”:””,”euTrafficFlag”:true,”isGoogleBot”:false,”mantleVersion”:”3.14.143″,”commerceVersion”:””,”primaryTaxonomyIds”:”6502448″,”primaryTaxonomyNames”:”Allrecipes”,”lastEditingAuthorId”:”1015024″,”lastEditingUserId”:”164512785787773″,”templateId”:”100″,”authorNames”:”Allrecipes Editorial Team”,”revenueGroup”:””,”templateName”:”TAXONOMY”,”muid”:”d8c46f93-1163-43ff-8756-8c271027958c”,”contentGroup”:”Other”,”documentId”:6502448,”viewType”:”HOME”,”title”:”Allrecipes | Recipes, How-Tos, Videos and More” || document.title || ”,”authorId”:”1015024″}; var deferLoadTime = 5000; var readyForThirdPartyTrackingEvent = new CustomEvent(‘readyForThirdPartyTracking’, { bubbles: true }); var readyForThirdPartyTracking = fnUtils.once(function() { dataLayer.push({event: ‘readyForThirdPartyTracking’}); window.dispatchEvent(readyForThirdPartyTrackingEvent); }); var readyForDeferredScriptsEvent = new CustomEvent(‘readyForDeferredScripts’, { bubbles: true }); var readyForDeferredScripts = fnUtils.once(function() { dataLayer.push({event: ‘readyForDeferredScripts’}); window.dispatchEvent(readyForDeferredScriptsEvent); }); var hasTargetingConsentHandler = function() { const hasConsent = CMP.hasTargetingConsent(); if (hasConsent) { readyForThirdPartyTracking(); } // if there is consent or the user has closed the banner(AlertBox) in EU then trigger readyForDeferredScripts if (hasConsent || CMP.isAlertBoxClosed()) { readyForDeferredScripts(); } return hasConsent; }; var onRequiredDomEvent = fnUtils.once(function() { if (!CMP) { readyForThirdPartyTracking(); readyForDeferredScripts(); return; } if (!CMP.isLoading()) { hasTargetingConsentHandler(); } CMP.onConsentChange(hasTargetingConsentHandler); }); [ [‘adRendered’, onRequiredDomEvent], [‘beforeunload’, onRequiredDomEvent], [‘load’, function() { setTimeout(onRequiredDomEvent, deferLoadTime); }] ].forEach(function(event) { win.addEventListener(event[0], event[1], { once: true }); }); pageViewDataAsJSON.breakpointName = Allrecipes.utilities.getW(); pageViewDataAsJSON.bounceExchangeId = ‘2548’; Mntl.utilities.onLoad(function() { Mntl.PageView.init(pageViewDataAsJSON); }); })(window || {}, Mntl.fnUtilities || {}, Mntl.CMP);]]> Skip to content

Source

You May Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *