Code to Help Redirect Return Visitors

Status
Not open for further replies.

mberman84

New member
Jan 17, 2007
706
14
0
Los Angeles
alright guys...i wrote up a quick script for this in case anyone wanted to use it:

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);
?>
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:

Code:
<?php 
$month = time()+60*60*24*30;
$value = time();
setcookie("clicked",$value, $month);
?>
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!
 


btw...testing two things right now:

1. sending repeat people who clicked to the offer page already to another similar offer.
2. sending repeat people who landed on my page but didnt click through, will get sent directly to the offer page.
 
This is the kind of stuff that is really helpful.. Dickrolls are not really helpful..
 
finally got some data to make a decision on this...

this script actually worked pretty well. the amount of return visits was much smaller than i had originally thought (2-4% of total clicks in a day). redirecting people who already went to the offer page to another offer when they return resulted in increased conversions (from repeat visitors). without the script, 99% of return visitors wouldn't convert. now that i was redirecting them, i was converting them at about 15% (this will be different based on your offer/niche)

the point of this all is that return visitors can waste your money, so you gotta figure out what the best way to handle them is. for me, it was to send them to a similar offer in the same niche.
 
Status
Not open for further replies.