Squeeze Page / Pop Under Help

by DIABL0
6 replies
So I have a squeeze page that has hidden content on it and after the user submits, they go to a new page and then the hidden content on original page loads creating a pop under. This seems to work with all browsers.

I want to add an exit redirect so if the user attempts to exit, then they are automatically redirected. The problem is that then the exit redirect will also exist on the pop under page as well (I don't want it to exist on pop under page), since the squeeze and pop under page are really the same page, it just loads the hidden content to create the pop under.

I don't think it should matter, but the squeeze page also has a skip button, so if they don't want to optin they can skip.

Any suggestions?
#page #pop #squeeze
  • Profile picture of the author emptee
    Hi DIABL0,

    I'm not 100% sure I follow what your set up is - by pop under, do you mean you've got a hidden div that is displayed when the user submits the form?

    If that's the case - what I would suggest, is to add the following code to your onsubmit function:

    window.onunload = function(){}

    Which will prevent the exit redirect from happening, as long as they have submitted the form.

    I hope that helps - if I've got the wrong idea, feel free to PM me with the URL of your squeeze page and I'll take a look

    Michae

    Originally Posted by DIABL0 View Post

    So I have a squeeze page that has hidden content on it and after the user submits, they go to a new page and then the hidden content on original page loads creating a pop under. This seems to work with all browsers.

    I want to add an exit redirect so if the user attempts to exit, then they are automatically redirected. The problem is that then the exit redirect will also exist on the pop under page as well (I don't want it to exist on pop under page), since the squeeze and pop under page are really the same page, it just loads the hidden content to create the pop under.

    I don't think it should matter, but the squeeze page also has a skip button, so if they don't want to optin they can skip.

    Any suggestions?
    {{ DiscussionBoard.errors[9925659].message }}
  • Profile picture of the author DIABL0
    Yes, it's a hidden div.

    The problem is that everything is one page.

    So the page initially loads and it looks like a squeeze page and I need the exit redirect to work. BUT...after they submit, then the hidden div loads(which I'm calling pop under) and since it's the same page the script still exists, but I don't want it to exist on the pop under.

    Follow?
    Signature
    How to Build LARGE EMAIL LISTS on a Budget and MONETIZE Like a PRO
    20+ Years Exp . . . . . . . . . . . . Email - CPA - PPL
    {{ DiscussionBoard.errors[9925856].message }}
  • Profile picture of the author emptee
    Yup - the solution I gave you will do the trick

    Add window.onunload = function(){} to whatever function is handling your form submit - that will remove the exit redirect

    Cheers,
    Michael
    {{ DiscussionBoard.errors[9925858].message }}
  • Profile picture of the author DIABL0
    This exit is triggered by mouseover on the top of browser...moving mouse towards exit button.
    Signature
    How to Build LARGE EMAIL LISTS on a Budget and MONETIZE Like a PRO
    20+ Years Exp . . . . . . . . . . . . Email - CPA - PPL
    {{ DiscussionBoard.errors[9925898].message }}
  • Profile picture of the author emptee
    Ahh - gotcha, I thought you were referring to a different type...

    try:

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <script>

    var user_submitted = false;

    $(document).mousemove(function(e){
    if(e.clientY <= 5 && !user_submitted){
    window.location = "URL"
    }
    });
    </script>

    Then add user_submitted = true; to your form submit handler.

    Cheers,
    Michael
    {{ DiscussionBoard.errors[9925902].message }}
  • Profile picture of the author DIABL0
    That worked. The exit redirect doesn't work after hidden div is loaded.

    Could you explain why it works?

    Thanks!!!
    Signature
    How to Build LARGE EMAIL LISTS on a Budget and MONETIZE Like a PRO
    20+ Years Exp . . . . . . . . . . . . Email - CPA - PPL
    {{ DiscussionBoard.errors[9925965].message }}

Trending Topics