// Function to get URL parameter function getUrlParameter(name) { name = name.replace(/[\[\]]/g, '\\$&'); const url = window.location.href; const regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'); const results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, ' ')); } // Function to close the pop-up function closePopup() { document.getElementById('popup').style.display = 'none'; document.getElementById('overlay').style.display = 'none'; } // Function to display the pop-up function displayPopup(message) { const overlayElement = document.createElement('div'); overlayElement.id = 'overlay'; overlayElement.style.display = 'block'; overlayElement.style.position = 'fixed'; overlayElement.style.top = '0'; overlayElement.style.left = '0'; overlayElement.style.width = '100%'; overlayElement.style.height = '100%'; overlayElement.style.backgroundColor = 'rgba(0, 0, 0, 0.5)'; overlayElement.style.zIndex = '999'; const popupElement = document.createElement('div'); popupElement.id = 'popup'; popupElement.style.display = 'block'; popupElement.style.position = 'fixed'; popupElement.style.top = '50%'; popupElement.style.left = '50%'; popupElement.style.transform = 'translate(-50%, -50%)'; popupElement.style.padding = '20px'; popupElement.style.backgroundColor = '#fff'; popupElement.style.boxShadow = '0 0 10px rgba(0, 0, 0, 0.5)'; popupElement.style.zIndex = '1000'; popupElement.style.borderRadius = '15px'; popupElement.style.width = '90%'; // Default width for mobile // Set max-width for larger screens popupElement.style.maxWidth = '500px'; const messageParagraph = document.createElement('p'); messageParagraph.innerHTML = message; const closeButton = document.createElement('button'); closeButton.textContent = 'Close'; closeButton.style.marginTop = '10px'; closeButton.onclick = closePopup; popupElement.appendChild(messageParagraph); popupElement.appendChild(closeButton); document.body.appendChild(overlayElement); document.body.appendChild(popupElement); } document.addEventListener('DOMContentLoaded', function () { console.log("Script Loaded"); const referrer = document.referrer; const referrerParam = getUrlParameter('referrer'); console.log("Referrer:", referrer); console.log("Referrer Param:", referrerParam); const referrerPatterns = [ /homecarepulse\.com/, /pinnacleqi\.com/, /retainyouremployees\.com/ ]; const isReferrerMatch = referrerPatterns.some(pattern => { const match = pattern.test(referrer) || (referrerParam && pattern.test(referrerParam)); console.log("Checking pattern:", pattern, "against referrer:", referrer, "or referrerParam:", referrerParam, "-> Match:", match); return match; }); console.log("Is Referrer Match:", isReferrerMatch); if (isReferrerMatch) { console.log("Displaying Pop-up"); const message = ` Welcome to Activated Insights.
Home Care Pulse, Pinnacle Quality Insight, and Pre-Intent are now united under one brand and one name.

Discover how Activated Insights will continue to help you make the most of every care experience, across the entire continuum of care.

Current users: Log in with your existing username and password at activatedinsights.com. `; displayPopup(message); } });

Login   |   877.307.8573   |   Contact Us

Login   |   877.307.8573   |   Contact Us

About Marissa Snook

Marissa Snook, President/CEO, has been working in public relations and marketing for over twenty years with a focus on in-home care marketing since 2005. She is the president and CEO at corecubed and the administrator of corecubed’s award winning MOST home care marketing program. To learn more about corecubed's services, call 800-370-6580, email info@corecubed.com, or visit us at www.corecubed.com.