Hi there! Want to share my receipt for the case, when we need to show popup only after some period of time we've shown it. In my example I show the popup after page refresh again only if 1 hour passed. You need to create theme/partials/Popupconvertor/default.htm where you copy the code from plugin's components dir default.htm. Then add this snippet:
var date = new Date();
date.setHours(date.getHours() - 1);
var dateStr = date.getTime();
if(localStorage.getItem('pop_date_shown') < dateStr) {
var dateNew = new Date();
var dateNewStr = dateNew.getTime();
localStorage.setItem('pop_date_shown', dateNewStr);
// the code showing popup
By the way, added review of your plugin to my OctoberCMS blog: https://octoberduck.com/ru/article/popup-converting-leads
Last updated