• Resolved rhartland

    (@rhartland)


    Hi, could you please let me know if you can create a cookie to stop a popup appearing, if a visitor has visited a certain page?

    Thank in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • Maria T

    (@mariatogonon)

    Hello @rhartland – yes, you can.

    Simply?set a cookie event of?On Popup Close?and set the cookie time to 1 month.?Basically, when the user closes the browser and visits your website again then the popup will be displayed again. For more information, you can check it out here: ‘Cookies’ option settings

    ?Please be advised:?another important setting?is that you will need to set the?cookie name?to the?Trigger?settings to be able to make it work. See this screenshot from my test site:?https://share.getcloudapp.com/o0uQNWrv
    ?
    ?Could you please try that and let us know if that helps you with your query??

    If that helps, then we would very much appreciate it if you could quickly?rate the plugin, just to help us spread the word.

    Otherwise, for us to assist you further with your issue, you will need to escalate it directly to our HelpScout support desk. Check out this link:?https://wppopupmaker.com/support/?Thank you.

    Thread Starter rhartland

    (@rhartland)

    Thanks Maria,

    I have done that and it works if they close the popup, but what I was actually asking about was setting a cookie if someone visits a particular page, so that anyone who has visited that page doesn’t get the popup until the cookie expires.

    We have created a page for our COVID-19 policy, so if someone visits that page directly from a social post or something similar, then we don’t want the popup appearing if they then go to other pages on the site. If they first come to the site via another page and haven’t previously closed the popup, then it should appear.

    Hope that makes sense.

    Thank you.

    Thread Starter rhartland

    (@rhartland)

    The other way might be to set a cookie if they click the link in the popup that takes them to the covid-19 page. Is this possible?

    Plugin Author Daniel Iser

    (@danieliser)

    @rhartland – So we are working on a shortcode you can put into a page that sets a popup cookie. You could do it now with a little JavaScript if your comfortable

                    jQuery.pm_cookie(
                        'pum-123', // The cookie name that is checked prior to auto opening.
                        true, // Setting a cookie value of true.
                        '10 years', // Plain english time frame.
                        '/' // Cookie path of '/' means site wide.
                    );

    Hope that helps. If your issue is resolved please take a moment to rate and review the plugin or support.

    If you still need help please message us directly at https://wppopupmaker.com/support/.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Create cookie on page visit’ is closed to new replies.