carlsednaoui / ouibounce

Increase your landing page conversion rates.
MIT License
2.31k stars 375 forks source link

cookieExpire is not working #133

Open Bdur604 opened 7 years ago

Bdur604 commented 7 years ago

Can any body help how to set cookie Expire. It is not working for me. Popup is triggering every time i refresh page.

var _ouibounce = ouibounce(document.getElementById('ouibounce-modal'), { aggressive: true, timer: 0, cookieExpire: 10, callback: function() { console.log('ouibounce fired!'); } }); _ouibounce.disable({ cookieExpire: 50, sitewide: true });

Is there is something wrong in my code ??

CraigWallsauce commented 7 years ago

simple answer: aggressive: false;

nodesocket commented 7 years ago

Don't use aggressive. According to the doc, this does not use cookie state at all.

lauterry commented 6 years ago

Hello

Please close this issue if resolved