external".replace(/<[^>]*>?/g, ''); if(segmentation === "external"){ deletePrefcookie('preferences_personalisation', "/", window.location.hostname); htmlTag.classList.add('su-persona--none'); } else { let renew = false; if ( segmentation == 'student' ) { htmlTag.classList.add('su-persona--student'); renew = true; } else if ( segmentation == 'faculty' ) { htmlTag.classList.add('su-persona--faculty'); renew = true; } else { htmlTag.classList.add('su-persona--none'); } if(renew){ setPrefCookie('preferences_personalisation', segmentation); } } })();