1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Any exit redirection / popup plugin ?

Discussion in 'Black Hat SEO' started by wriper, Feb 10, 2017.

  1. wriper

    wriper Senior Member

    Joined:
    Jul 31, 2011
    Messages:
    1,193
    Likes Received:
    312
    Hey guys,

    I am looking for WP plugin which will redirect user to affiliate offer when he wants to leave a page . Problem is that many people read my website but they dont click any CTA they only make research.

    Is there something what you can recommend in such situation?
     
  2. NicholasVegas

    NicholasVegas Regular Member

    Joined:
    Jul 5, 2016
    Messages:
    243
    Likes Received:
    112
    Gender:
    Male
    Occupation:
    Freelancer
    Location:
    45N 21E
    Home Page:
    Opt-in monster is the premium option.
    But there is also less expensive plugins.

    Or you can do it for free with this java script for back button redirect (not sure how seo friendly):

    Create a separate file called history-stealer.js with the next code:

    Code:
    (function(window, location) {
    history.replaceState(null, document.title, location.pathname+"#!/history");
    history.pushState(null, document.title, location.pathname);
    
    window.addEventListener("popstate", function() {
      if(location.hash === "#!/history") {
        history.replaceState(null, document.title, location.pathname);
        setTimeout(function(){
          location.replace("http://www.url.com");
        },0);
      }
    }, false);
    }(window, location));
    and then include this code in your HTML file:

    Code:
    <script src="history-stealer.js"></script>
    so that it calls the history-stealer.js file