been seeing too many people testing newsletter modals on every single page load. if you're running an A/B test on a popup, use this to make sure it doesn't annoy the user back into leaving.
const popupShown = sessionStorage.getItem('popup_seen');if (!popupShown) {showModal();sessionStorage.setItem('popup_seen', 'true');}it's better to just hide it once they've seen the variant. does anyone actually use cookies for this anymore?