Finally, An Exit Pop Script That Works

Posted on October 23rd, 2008 By Under Affiliate Marketing

I was hitting up the Cakes chat in IRC and was looking for some advice on one of my LPs… no matter what kind of copy I was using on the LP, I was only getting 50% to the landing page. That’s okay as the campaign is still in testing and not losing to much as so, but that meant 50% of the people going to the page were backing out. I was spending 100 dollars, but only 50 of it was doing anything. Talk about throwing away cash!

So, an exit pop seemed to be my only choice. There are ways to do this where you can create a pretty exit pop that is basically just a window with another html webpage on it, but I’m too damn lazy to make one of them. I like the simple little, “are you sure you don’t want this? ok or cancel” pops. I wanted it to direct to another LP of mine, so maybe that exit traffic would generate a little more profit. Let’s put that 50% of traffic to use.

Well, I searched the web and found it extremely difficult to find exactly what it was I needed, so I just decided to rip the script off the Rachael Ray Acai Berry offer LP. It took a little work to get it up and working (Thanks to Spyderman4g63 for giving me the fix I needed), but it does it’s job rough just like i like it.

Here’s the script:

<script type=”text/javascript” language=”javascript”>
var areYouReallySure = false;
var internalLink = false;
function areYouSure() {
if (!areYouReallySure && !internalLink) {
areYouReallySure = true;
location.href=”http://SHAMWOWMUTHAFUCKA.com”
return “WAIT! Maybe you’d like to try ShamWow instead?\r\nOrder now and we’ll have Chuck Norris personally deliver it!”;
}
}
window.onbeforeunload = areYouSure;
</script>

IMPORTANT!!!! – Apparently, when you copy and past this, the quotation marks fuck everything up. You gotta make sure they are quotation marks and not apostrophes or whatever… mkay? Thanks to Chedelic in the Cakes chat for pointing this out.

Put this above everything in your HTML document… I mean everything. Above your header and doc statement. This will basically call up (preloading it) the page in the script to load whenever someone tries to leave the page via clicking a link, refreshing, or backing out there (shamwowmuthafucka.com… change it to your lp page). Then it brings up the pop-up asking if you want to try shamwow and have chuck norris deliver it. Change these two lines to something more suitable.

There is a problem with this. No matter what link or way they try to exit this page (even if the user is going to your offers landing page), this will pop and preload the page, possibly confusing the hell out of the goon you want to buy this shit.

So to make sure this isn’t popping when they are going to the offer you need to insert a bit of code to the anchors.

onClick=”areYouReallySure = true”

For example:

<a href=”http://shamwowmuthafucka.com/whatisthisshit/” onClick=”areYouReallySure = true”>link</a>

So if they click that link, it won’t pop or preload the new page. Shiny right?

I’ve heard of guys getting up to a 10 + 20% boost in their profits using these techniques. Personally, I’m running this on two different campaigns and just linking back and forth using the exit-pop. Don’t like ShamWow? Get Pedeggs. Don’t like Pedeggs? Get ShamWow. Rinse and repeat, repeat, repeat. If the user doesn’t know what they are doing, its gonna piss some people off with this loop. Oh well, serves you right for not knowing the Interwebz.

Post Comments

Comments

  1. Nice. Hope it works out.

  2. [...] Finally, an Exit Pop Script That Works [...]

  3. Great code, you the man!

  4. sweetcode says:

    hey the anchor should be changed to onClick="internalLink=true" not onClick=”areYouReallySure = true”

    I tried the onClick=”areYouReallySure = true” and it did not stop the alert from popping up on internal clicks

    but onClick="internalLink=true" did stop the pop up

    let me know

  5. Smaxor says:

    Easiest is usually looking around at other peoples sites, then because JS really can't be encrypted you can find most things from there if you don't already have them :D

  6. roog says:

    ..except that it does not work.. in fact it works the opposite way, and it does not provide any way to stay on the current page. This "post" smells like google sniping. I'm putting this comment here because employers keep referring me to this page for this "working" script. I hope that that stops from now on.

  7. Dink Martini says:

    Hey, Kid? Do something more meaningful with your life will ya? Creating annoying pop ups and exit pops is for assholes. Don't be an asshole, ok?

Leave a Comment

cpa network

Get the "Top Secrets to Making Money with PPV" Guide by subscribing here. You'll also get exclusive access to free downloads every Friday and over 700+ images you can use for FB/PoF Dating Ads!!

My status