How Do I Redirect Visitors to Another Page Once They Leave My Website? Any Software or Tips?

by affbiz
9 replies
Could someone refer me to software or any way to redirect
my visitors to a squeeze page or new webpage when they close
my webpage?

I see alot of these where once you leave their main webpage another
page pops up that may say something like "Download This Free
Report Before You Leave".

Any tips on how to do this?

Russell
#leave #page #redirect #software #tips #visitors #website
  • Profile picture of the author tjaysen70
    Yeah how technical are you? You can search it on google, ad pop up or javascript redirect etc. Or if you have wordpress then you can find a plugin that will do this, will cost some cash though, but very easy to do.
    Signature

    Tired of the grind? Wait. PM me to see a better way.

    {{ DiscussionBoard.errors[8569945].message }}
  • Profile picture of the author pdxkurt
    Basically what is happening is there is an invisible image at the top and bottom of your page, when the mouse hovers over that image (e.g. as it goes to the address bar or back button) a javascript onhover command is kicked off which then displays a hidden div with the advertisement, or produces a new window. There are lots of scripts online that do this, better to find a free one then trying to code it yourself.
    {{ DiscussionBoard.errors[8569953].message }}
    • Profile picture of the author adamj2
      To provide an exit pop for people trying to leave my squeeze pages I use Dave Guindon's Exit Splash (a Clickbank product).

      I have also recently installed a Wordpress plugin called Super Popup Pro which lets you pop up a new page over the top of your blog when someone goes to leave. There is also the option to splash up a squeeze page over the content of your blog as soon as the visitor arrives on your site with that plugin.
      {{ DiscussionBoard.errors[8569982].message }}
  • Profile picture of the author Jesus Perez
    If you're using WordPress, you can use a plugin like this to do it.

    That plugin can also work on plain HTML pages.
    Signature

    {{ DiscussionBoard.errors[8569989].message }}
  • Profile picture of the author Delta90
    If you can access and edit the source code of your site I'd do something like this:
    Code:
    <script>
    	var onUnloadClick = 0;
    
    	function redirectTimer(){
    	       setInterval(function(){window.location = "NEW-URL-GOES-HERE"},10);
    	       onUnloadClick = 1;
    	}
    
    	window.onbeforeunload = onbeforeunload_Handler;
    	
    	function onbeforeunload_Handler(){
    		if(onUnloadClick == 0){
    			redirectTimer();
    			return "YOUR-MESSAGE-GOES-HERE";
    		}
    	}
      	
    </script>
    That's javascript and you put it between your <head></head> tags. The only thing you need to do is put the url to redirect to where it says NEW-URL-GOES-HERE (remember to not remove the " as that'll break the script). And put your message where it says YOUR-MESSAGE-GOES-HERE, same thing there do not remove the ".

    This is just something I wrote together quickly I can't guarantee it'll work on all browsers etc. Works for me in Chrome.
    {{ DiscussionBoard.errors[8570656].message }}
    • Profile picture of the author extremelyhappy
      Originally Posted by Delta90 View Post

      If you can access and edit the source code of your site I'd do something like this:
      Code:
      <script>
      	var onUnloadClick = 0;
      
      	function redirectTimer(){
      	       setInterval(function(){window.location = "NEW-URL-GOES-HERE"},10);
      	       onUnloadClick = 1;
      	}
      
      	window.onbeforeunload = onbeforeunload_Handler;
      	
      	function onbeforeunload_Handler(){
      		if(onUnloadClick == 0){
      			redirectTimer();
      			return "YOUR-MESSAGE-GOES-HERE";
      		}
      	}
        	
      </script>
      That's javascript and you put it between your <head></head> tags. The only thing you need to do is put the url to redirect to where it says NEW-URL-GOES-HERE (remember to not remove the " as that'll break the script). And put your message where it says YOUR-MESSAGE-GOES-HERE, same thing there do not remove the ".

      This is just something I wrote together quickly I can't guarantee it'll work on all browsers etc. Works for me in Chrome.
      Hey Buddy,

      I tried your codes and it works a marvel. However, everytime I click the order button on my page the PopUp opens up even when I am not planning to leave the site. How do I change this from happening?
      Signature

      Ambar Hamid

      Profit Your Business With LinkedIN Today. Anyone Can Do It. I've Made It All So Easy! :) http://goo.gl/vnCTTZ

      {{ DiscussionBoard.errors[8625673].message }}
      • Profile picture of the author Delta90
        Originally Posted by extremelyhappy View Post

        Hey Buddy,

        I tried your codes and it works a marvel. However, everytime I click the order button on my page the PopUp opens up even when I am not planning to leave the site. How do I change this from happening?
        Hi,

        What you could do is adding an onclick event to your order button to prevent the popup from showing. Something like this should work.

        Code:
        <!DOCTYPE html>
        <html>
          <head>
          	<script>
            	var onUnloadClick = 0;
            	
        	function noReDirr(){
        		onUnloadClick = 1;
        	}
        		
            	function redirectTimer(){
            	       setInterval(function(){window.location = "NEW-URL-GOES-HERE"},10);
            	       onUnloadClick = 1;
            	}
            
            	window.onbeforeunload = onbeforeunload_Handler;
            	
            	function onbeforeunload_Handler(){
            		if(onUnloadClick == 0){
            			redirectTimer();
            			return "YOUR-MESSAGE-GOES-HERE";
            		}
            	}	
        	</script>
          </head>
          <body>
          		<a href="LINK-URL" onclick="noReDirr()">YOUR ORDER BUTTON</a>
          </body>
        </html>
        So basically what you need is the function:
        Code:
        function noReDirr(){
                onUnloadClick = 1;
        }
        And then add onclick="noReDirr()" to your order button.
        {{ DiscussionBoard.errors[8638402].message }}
  • Profile picture of the author Dain
    Grab Optimizepress. It's useful on soooo many levels.

    It has an exit pop. All you do is put in the url of the website you want to go to, click a button and it's done.
    {{ DiscussionBoard.errors[8638410].message }}
  • Profile picture of the author goodsoloads
    Hi, is there any WP free popup plugin that works like this one Wordpress Exit Popup Plugin: Unstoppable WordPress Exit Popup Plugin Share please
    Signature

    This is AWESOME! eCover design just got affordable & fast. No need to hire designers! Check it out Click here

    {{ DiscussionBoard.errors[9556598].message }}

Trending Topics