// 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 Danny Portal

This author has not yet filled in any details.
So far Danny Portal has created 119 blog entries.

2022 Best of Home Care Awards Webinar

Dec 17, 2021|Grow Your Agency, Webinars & Events|

We made it to 2022 – let’s celebrate! Agencies across the country haven’t just continued to endure some of the hardest years to date—they’ve also managed to earn the industry’s most prestigious awards for best-in class care. Join us as we celebrate the home care providers that qualified for Best of Home Care Awards in 2022 and discuss what agencies can learn from our winners to qualify for an award next year.

7 Things Your Home Care Agency Shouldn’t Do in 2022

Nov 23, 2021|Grow Your Agency, Webinars & Events|

Over the last 24 months, the pandemic has impacted nearly every aspect of our lives, including your everyday operations as a business owner. It hasn’t been uncommon to hear, ‘try this’, ‘add that’, ‘start doing this’, or ‘buy more of that’. As we move into the new year, we want to help you eliminate some things that may not be driving your home care business forward.