alright guys...i wrote up a quick script for this in case anyone wanted to use it:
put this code at the top of your landing page. you will also have to set another cookie (shown below) called "clicked" when they click your outbound link to the offer page:
when a new user visits, it will set the "landed" cookie. if they leave after that nothing else happens. if they click the outbound link to the offer page, a cookie called "clicked" will be set.
when a repeat visitor comes it will check to see if they went to the offer page first, if they did you can redirect them to another similar offer instead. if the repeat visitor landed but did not click through (left your site), you can redirect them to another landing page for the same offer, which may convert better. it gives a user 5 minutes after leaving your site before the redirect will occur.
let me know if this helps anyone!
Code:
<?php
if ( isset($_COOKIE['clicked'])) {
header("Location: http://www.anothersimilaroffer.com");
exit;
}
if ( isset($_COOKIE['landed']) && ($_COOKIE['landed'] <= time()-60*5) ) {
header("Location: http://www.adifferentlandingpage.com/");
exit;
}
$month = time()+60*60*24*30;
$value = time();
setcookie("landed",$value, $month);
?>
Code:
<?php
$month = time()+60*60*24*30;
$value = time();
setcookie("clicked",$value, $month);
?>
when a repeat visitor comes it will check to see if they went to the offer page first, if they did you can redirect them to another similar offer instead. if the repeat visitor landed but did not click through (left your site), you can redirect them to another landing page for the same offer, which may convert better. it gives a user 5 minutes after leaving your site before the redirect will occur.
let me know if this helps anyone!