document.addEventListener('DOMContentLoaded', () => { /** init gtm after 3500 seconds - this could be adjusted */ setTimeout(initGTM, 3500); }); document.addEventListener('scroll', initGTMOnEvent); document.addEventListener('mousemove', initGTMOnEvent); document.addEventListener('touchstart', initGTMOnEvent); function initGTMOnEvent(event) { initGTM(); event.currentTarget.removeEventListener(event.type, initGTMOnEvent); // remove the event listener that got triggered } function initGTM() { if (window.gtmDidInit) { return false; } window.gtmDidInit = true; // flag to ensure script does not get added to DOM more than once. const script = document.createElement('script'); script.type = 'text/javascript'; script.async = true; // ensure PageViews is always tracked (on script load) script.onload = () => { dataLayer.push({ event: 'gtm.js', 'gtm.start': new Date().getTime(), 'gtm.uniqueEventId': 0 }); }; script.src = 'https://www.googletagmanager.com/gtm.js?id=GTM-W3L96RR'; document.head.appendChild(script);
Cookie Consent

By clicking “Accept”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.

Cookie preferences

Articles

Articles to help you master the art of decision-making.

Topics

recent articles

connect with us

A box featuring Your Decision Journal—a notion template.

Say Goodbye to Your Bad Decisions

The #1 Guided Decision Journal Notion Template

Your decisions define your life. So we created a 9-step decision journal to help you make the right choices from the start. It is the best way to say goodbye to bad decisions!
Make Better Decisions Now→Find out more
©
All rights reserved.