Brian Price

Brian Price

Aug
18
Comprehensive Guide To Digital Marketing Strategies

Comprehensive Guide To Digital Marketing Strategies

Are you struggling to stand out in the digital world? Digital marketing is now a must for businesses. This guide
14 min read
// This is where you'd typically insert the GoHighLevel-specific JavaScript } // Check if user has seen popup recently let lastPopup = sessionStorage.getItem('POPUP_OPENED'); let timeDelta = lastPopup ? (new Date() - new Date(lastPopup)) / 1000 : Infinity; // Show popup once a day if the user is not a member if (!checkMember() && timeDelta > 86400) { // Record the current time sessionStorage.setItem('POPUP_OPENED', new Date().toISOString()); // Show popup when user scrolls 25% of the page window.addEventListener("scroll", () => { let scrollPercentage = (window.scrollY / (document.documentElement.scrollHeight - window.innerHeight)) * 100; if (scrollPercentage > 25) { showPopup(); } }); }