[]
9 Tips for How to Be Successful in Life { e.preventDefault(); Mntl.utilities.loadExternalJS( externalJS , () => { Mntl.CMP.onSdkLoaded(() => { OneTrust.ToggleInfoDisplay(); }) }); }, { once: true }); }); Mntl.CMP.init(true, ‘ccpa’, false, false, 3000); })(); (function(){ const pageTargeting = { customSeries: ” ,abtest: ‘lcid1’ ,tax0: ‘vmind’ ,custom: ” ,rid: ‘n1f3f980d1d8a4268b2f981196c07429d00’ ,sid: ‘n1f3f980d1d8a4268b2f981196c07429d00’ } ; const baseSlotTargeting = { entryType: ‘direct’ ,gtemplate: ‘list’ ,leaid: ‘17268’ ,revenueGroup: ” ,docId: ‘4165743’ ,viewtype: ” ,type: ‘list’ ,stax: ‘vmind_living-well,vmind_self-improvement’ ,ptax: ‘vmind_self-improvement’ ,vid: ‘0’ ,tax1: ‘vmind_living-well’ ,tax2: ‘vmind_self-improvement’ ,t: ‘115’ ,au: ‘17268’ ,tier: ‘L’ ,jny: ‘0’ ,leuid: ‘148130104558590’ ,sbj: ” ,id: ‘4165743’ ,aid: ” ,tax3: ” ,jnyroot: ” ,tax4: ” } ; pageTargeting.mtax = [‘32497′,’11058′,’11013’]; 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],[299, 251],[300, 600],[300, 1050],[160, 600]], type: ‘billboard’, 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.verywellmind.com’, templateName: ‘listsc’, isMobile: false, dfpId: ‘3865’, publisherProvidedId: ‘f4fb555e-6a8b-4d5c-aed6-6ba9ecf336f9’, singleRequest: false, useLmdFormat: true, useOxygen: true, useInfiniteRightRail: true, useAuctionFloorSearch: true, bundlePrebid: false, lmdSiteCode: ‘hlt’, pageTargeting, baseSlotTargeting, geo: { isInEurope: false, isInUsa: true }, initialSlots, auctionFloors: {“billboard2”:{“floor”:”70″,”id”:”9c07ebab378b4905b79ee6cfed062005″},”other”:{“floor”:”50″,”id”:”8c077556a0ab486c9eb68df08569bce8″},”billboard6″:{“floor”:”60″,”id”:”25642556cedd4d31b3516270a1640cee”},”billboard5″:{“floor”:”60″,”id”:”c39ffeebcee6496dae97b65cdf1f8dbc”},”billboard4″:{“floor”:”60″,”id”:”cd0046b2e25a4ff2b657e3a7302b1a05″},”billboard3″:{“floor”:”55″,”id”:”9efa0abd012f486b86d62fc1c3253064″},”billboard9″:{“floor”:”55″,”id”:”c75da4ca2e0c422792ad2ea1d2e3c971″},”billboard8″:{“floor”:”50″,”id”:”4b78de26518a4002aab2d38982cee0de”},”billboardfooter2″:{“floor”:”5″,”id”:”7f85fcb56c474d8bb9b25e37026e97b3″},”billboard7″:{“floor”:”55″,”id”:”5ffbfd62e3244902972e83dafc0aac32″},”leaderboardac”:{“floor”:”25″,”id”:”0a12f3277295425b8c833d0f8e27abae”},”leaderboard-fixed”:{“floor”:”40″,”id”:”dfc98b8449314c699b145d70691f55e1″},”billboardfooter”:{“floor”:”5″,”id”:”a869bb98817e49c794c2b3a679c9189e”},”leaderboardfooter2″:{“floor”:”5″,”id”:”25dfbf19c7994f1681a697d2bb666cab”},”leaderboard-flex-1″:{“floor”:”25″,”id”:”dc2c7c4461cd42f898a9d676b50cd86e”},”leaderboard-flex-2″:{“floor”:”15″,”id”:”290d077b38204f86915f9d10b2e10670″},”square-flex-2″:{“floor”:”55″,”id”:”f7da00ab0c854a9cb9e93b690cc590cc”},”square-flex-1″:{“floor”:”35″,”id”:”95150adf371d4d9e994b9c0c98364499″},”adhesive”:{“floor”:”5″,”id”:”a08e7517ade84a1e8d855bc1db1619bc”},”square-fixed-4″:{“floor”:”65″,”id”:”ffc9291f4c5c4af599c7b036e5667b1f”},”square-fixed-3″:{“floor”:”65″,”id”:”62e892af1e7a46a19b44827eb72f53e2″},”square-fixed-2″:{“floor”:”50″,”id”:”e26b32b45c5b4e6abc99896f17a04e89″},”leaderboard-fixed-1″:{“floor”:”35″,”id”:”d6c02a28033f47be96e48a538d53ead6″},”square-fixed-1″:{“floor”:”30″,”id”:”a7c3ea392b4f42e994b552c893ec0523″},”leaderboard-fixed-2″:{“floor”:”45″,”id”:”670ffd664412461ba131a9610d44ac34″},”square-fixed-8″:{“floor”:”80″,”id”:”f99873ef95434a29b180d81789970871″},”mob-square-fixed-8″:{“floor”:”40″,”id”:”a20f31357e304a879058be9a7b9f0042″},”square-fixed-7″:{“floor”:”70″,”id”:”66e458c0f3e64aba928c7553823e746f”},”mob-square-fixed-9″:{“floor”:”40″,”id”:”453c0047f5154d73bbf3cb13d3bb038c”},”square-fixed-6″:{“floor”:”60″,”id”:”a9e8384ace414cde869b9920be14b958″},”leaderboardfooter-flex-2″:{“floor”:”20″,”id”:”52b21c3f90dc4fb1a1a8471c90bb085f”},”leaderboard-fixed-5″:{“floor”:”5″,”id”:”e295c8c04cda4023a82903421d4acfe8″},”square-fixed-5″:{“floor”:”65″,”id”:”10a23afb84c74da8ab3a803b3fdf0c4e”},”leaderboardfooter-flex-1″:{“floor”:”15″,”id”:”636282d2570341d4a35bf072d5ebdd6c”},”leaderboard-fixed-6″:{“floor”:”95″,”id”:”a654cfea0bd24f10bfe898a833ecef9c”},”billboard”:{“floor”:”60″,”id”:”bbbfb10e7107415e92475f9bd4d64e01″},”leaderboard”:{“floor”:”5″,”id”:”82444db3db144fb8a2707c9b13363435″},”inline”:{“floor”:”5″,”id”:”f152f513a0e74f7aa9ee82d25a6cbad5″},”square-fixed”:{“floor”:”5″,”id”:”d3445ac26a7e47ffa908fd4b055729f4″},”leaderboardfooter”:{“floor”:”5″,”id”:”fd149ec3da054c50a8606350c1bbb9e4″},”dynamic-inline”:{“floor”:”5″,”id”:”84762caec44a45308a4afcc9e660598e”},”square-fixed-9″:{“floor”:”45″,”id”:”52effd72054b4f2c856bb79d2d11d849″},”billboard10″:{“floor”:”55″,”id”:”640e2da5649d4ba48c8cbb3554da4f31″},”mob-adhesive-banner-fixed”:{“floor”:”50″,”id”:”347406c5c98747ce9b7d810896210302″},”billboard11″:{“floor”:”50″,”id”:”e6260e7c6540455db4164484673a2405″}}, utils: { collapseAd: Wellness.GPT.collapseAd, buildGptUrl: Wellness.GPT.buildGptUrl }, displayOnScroll: false, displayOnConsent: true, adsToCollapse: [‘leaderboard*’,’square*’] }; if (Mntl.AdMetrics) { Mntl.AdMetrics.init(“4165743”, “n1f3f980d1d8a4268b2f981196c07429d00″, initialSlots.map(slot => slot.config.id), Date.now()); } else { Mntl.AdMetrics = { pushMetrics: () => {} }; } Mntl.GPT.init(options); }());// 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-5P3SZGS’); }); var dataLayer = dataLayer || []; dataLayer.push({ event: ‘ab-proctor’, ‘abTests-proctor’: { “99-0” : “useOxygen | useOxygen | use the Oxygenated ad unit format and slot names | 1” , “99-1” : “gifv | active | Active | 1” , “99-2” : “useFloorSearch | active | search API flooring system | 1” , “55” : “downpageAuthorBio | active | Author bio displayed | 1” , “99-4” : “recipescDesktopAdRefresh | active | active, right rail ads timed refresh active | 1” , “53” : “useInfiniteRightRail | active | useInfiniteRightRail active | 1” , “63” : “vanillaJSLazyAd | control | | 0” , “99-7” : “liveIntentConnectedIdTest | control | LiveIntent ConnectedID is enabled | 0” , “99-8” : “cssJsInjection | test_2 | Test Active 2 – is-window-loaded missing | 2” , “99-9” : “rtbTracking | newevents | | 2” , “99-10” : “orion | control | Control | 0” , “99-11” : “vanillaJWPlayer | active | | 1” , “99-12” : “scAdsScript | active | Sc-ads.js is loaded in mantle inside listScCommerceTemplates. Sc-ads.js stops loading through commerce | 1” } }); dataLayer.push({ envData: { environment: { environment: “k8s-prod”, application: “health-mind”, dataCenter: “us-west-1” }, server: { version: “5.55.0”, title: “health-mind-launcher” }, client : { browserUA: navigator.userAgent, serverUA: “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8”, deviceType: “pc”, usStateCode: “AZ” }, mantle: “3.14.302”, commerce: “” } }); (function(win, fnUtils, CMP) { 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 }); }); })(window || {}, Mntl.fnUtilities || {}, Mntl.CMP);window.dataLayer = window.dataLayer || []; (function() { var pageViewDataAsJSON = {“country”:”US”,”description”:”What is success? Success is often defined as being able to achieve self-defined goals. Learn about how to be successful in life while developing mental strength.”,”authorId”:”17268″,”title”:”9 Tips for How to Be Successful in Life” || document.title || ”,”viewType”:””,”muid”:”f4fb555e-6a8b-4d5c-aed6-6ba9ecf336f9″,”documentId”:4165743,”contentGroup”:”Other”,”templateName”:”LISTSC”,”revenueGroup”:””,”templateId”:”115″,”lastEditingAuthorId”:”17268″,”lastEditingUserId”:”148130104558590″,”fullUrl”:”https://www.verywellmind.com/how-to-be-successful-in-life-4165743″ + location.hash,”experienceType”:”single page”,”entryType”:”direct”,”excludeFromComscore”:false,”internalSessionId”:”n1f3f980d1d8a4268b2f981196c07429d00″,”internalRequestId”:”n1f3f980d1d8a4268b2f981196c07429d00″,”hid”:””,”experienceTypeName”:””,”recircDocIdsFooter”:”S-4125125|S-2795438|S-4580606|S-7509628|S-2795388|S-2795378|S-2795025|S-4115389|S-2795387|S-7496882|S-4177125|S-7570136|S-2795425|S-2795389|S-4796351|S-6561079″,”euTrafficFlag”:false,”isGoogleBot”:false,”mantleVersion”:”3.14.302″,”commerceVersion”:””,”primaryTaxonomyIds”:”4156452|7510832|4157212″,”primaryTaxonomyNames”:”Verywell Mind|Living Well|Self-Improvement”}; var scrolledPageData = {}; var scrolledDocOrdinal; var scrolledPage; pageViewDataAsJSON.breakpointName = Wellness.utilities.getW(); pageViewDataAsJSON.bounceExchangeId = ”; pageViewDataAsJSON.ptax = ‘vmind_self-improvement’; pageViewDataAsJSON.descriptiveTaxonomy = ‘32497,11058,11013’; if ( 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() { Mntl.PageView.init(pageViewDataAsJSON); }); })();]]>
Source