GoForJacob
Junior Member
- Apr 2, 2013
- 182
- 180
If you're like me, you're always trying to figure out how to convert more of your traffic. After looking at a lot of the KISS websites and Neil Patel's personal site for consultation, I became obsessed with Bounce Exchange, only to be deterred by the $2,195/month price tag (cheapest plan).
Their software is ridiculously advanced, but I threw together a cheaper alternative that functions similarly. Enjoy.
First thing we want to do is declare the function, then set the cookie and check if it exists. Simple as 1-2-3.
You'll need jQuery.cookie.js, too. Also, I realize the code is ugly. I threw it together in about 30 minutes. I think I'm going to continue to refine this and make it more like Bounce Exchange
Their software is ridiculously advanced, but I threw together a cheaper alternative that functions similarly. Enjoy.
First thing we want to do is declare the function, then set the cookie and check if it exists. Simple as 1-2-3.
Code:
function AvoidBounce() {
jQuery("body").mouseleave(function() {
if ( jQuery('#avoid-bounce').data('shown') != true ) {
jQuery('#avoid-bounce').data('shown', true).show();
}
});
jQuery('#avoid-bounce .close-campaign').click(function() {
jQuery('#avoid-bounce').hide();
return false;
});
}
jQuery(document).ready(function(){
var visited = jQuery.cookie('visited');
if (visited == 'yes') {
return false;
} else {
AvoidBounce();
}
jQuery.cookie('visited', 'yes', { expires: 7 });
});
You'll need jQuery.cookie.js, too. Also, I realize the code is ugly. I threw it together in about 30 minutes. I think I'm going to continue to refine this and make it more like Bounce Exchange
Last edited: