如何修改Mailchimp Subscriber Pop-up(嵌入)cookie

时间:2017-04-12 08:53:40

标签: javascript cookies

默认的到期时间是1年。我想要1周。

嵌入代码就是这个。

http://s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js

如何做到这一点

    if(document.cookie.indexOf("MCEvilPopupClosed") > 0 ){

    //check if (Cookie was created more than 7 days){delete cookie} 

    }

0 个答案:

没有答案