function experienceClosed(reason){ if (reason != 'willNotShow' && window.location.href.includes("https://www.compasswater.com/preferences") || reason != 'willNotShow' && window.location.href.includes("https://www.compasswater.com/exercise-your-rights")) { if (document.referrer) { window.location.assign(document.referrer); } else { window.location.assign('https://www.compasswater.com/'); } } } ketch('on', 'hideExperience', experienceClosed);