How to set a cookie for visitors, who filled out lead (email) banner?
Please place a HTML element in 2nd step of lead (email) banner in Ad Editor, and use this code to set a cookie:
<script>
document.addEventListener("afterShow", function() {
maxtAd.setCookie('mt_subscribed', '1');
});
</script>
From this example:
mt_subscribed = cookie name, can change according to your needs
1 = cookie value
By using this code all visitors who will fill out the banner and get to 2nd step, will get a cookie.
Later you can use this cookie to target (or exclude) these visitors from other campaigns.