Any exit redirection / popup plugin ?

wriper

Supreme Member
Joined
Jul 31, 2011
Messages
1,206
Reaction score
320
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?
 
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
 
Back
Top