if (getUrlParameter("utm_source") != "RSS_EMAIL_CAMPAIGN" && $.cookie("RSS_EMAIL_CAMPAIGN_has_submitted_email") != "true") { // code to show popup modal }