• Resolved boo6ie

    (@boo6ie)


    Hello,

    I want to redirect the visitor to my site, if he has already visited a particular page and accept cookies.

    For example, if the visitor has visited the /A/ page, has accepted cookies from your plugin, and reloads his page, or returns to it later, then we redirect him to the website home.

    Can you help me ?

    Thanks

    • This topic was modified 1 year, 4 months ago by boo6ie.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @boo6ie,

    Sure, you could do something like this with JavaScript.

    You can find the code snippet here (GitHub), and please also find my example page here, which has the above snippet applied.

    The snippet checks if the user is on the /a/ page. If so, it then checks if the page_visited and cmplz_marketing cookies are set. If both are true, the user is redirected. If not, the page_visited cookie is set. If the user isn’t on the /a/ page, the script does nothing.

    Kind regards, Jarno

    Thread Starter boo6ie

    (@boo6ie)

    Thank you for your support jarnovos ??
    Have a good day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect the visitor, if he has already visited a particular page and accept coo’ is closed to new replies.