Prosper202 - Splitting Direct Link vs Landing Page?

barman

New member
Aug 14, 2006
6,506
156
0
Internets
Anyone got a method or script to split test a lander vs direct linking the offer in Prosper202?

I thought I setup something key, but the KW ain't tracking. FFFFFFUUUUUU

I am familiar with the "offer rotator" and the "landing page rotator" scripts, but drawing a blank on how to tie the two together.

Any help appreciated kthx bye
 


You said you already know about this but you could modify it to do what you want.

Prosper202 Self Hosted Apps

Instead of each offer you want to get your tracking links from prosper and put them in there. You are asking how the hell do I get the keyword to track then? Easy, whatever your landing page rotation script's address is just add a keyword argument to the end, like www.mysite.com/rotation.php?kw=keyword_here


Then you need something to grab that out of the URL when sent to the rotation page and append it to either your landing page URL or direct link URL. So something like this should work.

Put this at the top of your file

PHP:
$kw = $_GET['kw']; 

Then for the offers use: 

$landingpage[1] = 'landingpage1.php'.$kw;


Then finally at the bottom you want to use header("Location:".$link_here) to forward the user to your LP or Direct Link based upon which one was chosen instead of using include() like that script is doing.

Basically all you are doing is capturing the keyword with some PHP and then spitting the users out to either the direct link or the lp link that prosper has generated for you. I am sure there is a way to hack prosper202 to do this, but thinking about that just makes me sick to my stomach.
 
  • Like
Reactions: yao1994
+rep man but it came up with this error
PHP:
Parse error:  syntax error, unexpected T_EXIT in /home/user/public_html/rotator.php  on line 36

I'm code retarded so I'm not sure if this is right...

PHP:
<?

//Tracking202 Landing Page Rotation Script

//landing pages filenames, theses will be rotated between eachother
//theses landing pages must be in the same DIRECTORY as this file
//you can add as many landing pages here as you like
$landingpage[1] = 'http://abc1.com'.$kw;
$landingpage[2] = 'http://abc2.com'.$kw;

//this is the text file, which will be stored in the same directory as this file, 
//count.txt needs to be CHMOD to 777, full privlledges, to read and write to it.
$myFile = "count.txt";

//open the txt file
$fh = @fopen($myFile, 'r');
$lpNumber = @fread($fh, 5);
@fclose($fh);

//see which landing page is next in line to be shown.
if ($lpNumber >= count($landingpage)) {
    $lpNumber = 1;
} else {
    $lpNumber = $lpNumber + 1;
}

//write to the txt file.
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = $lpNumber . "\n";
fwrite($fh, $stringData);
fclose($fh);

header('Location:'.$link_here)

//terminate script
die();

?>
 
+rep man but it came up with this error
PHP:
Parse error:  syntax error, unexpected T_EXIT in /home/user/public_html/rotator.php  on line 36
I'm code retarded so I'm not sure if this is right...

PHP:
<?

//Tracking202 Landing Page Rotation Script

//landing pages filenames, theses will be rotated between eachother
//theses landing pages must be in the same DIRECTORY as this file
//you can add as many landing pages here as you like
$landingpage[1] = 'http://abc1.com'.$kw;
$landingpage[2] = 'http://abc2.com'.$kw;

//this is the text file, which will be stored in the same directory as this file, 
//count.txt needs to be CHMOD to 777, full privlledges, to read and write to it.
$myFile = "count.txt";

//open the txt file
$fh = @fopen($myFile, 'r');
$lpNumber = @fread($fh, 5);
@fclose($fh);

//see which landing page is next in line to be shown.
if ($lpNumber >= count($landingpage)) {
    $lpNumber = 1;
} else {
    $lpNumber = $lpNumber + 1;
}

//write to the txt file.
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = $lpNumber . "\n";
fwrite($fh, $stringData);
fclose($fh);

header('Location:'.$link_here)

//terminate script
die();

?>

Oh yeah, in PHP every line has to end with a ";" where a function is not continued on the next line.

You have:

PHP:
header('Location:'.$link_here)

It should be:

PHP:
header('Location:'.$link_here);

But I haven't had a chance to test this, hopefully I will get some time later today but that should fix it man.
 
replace

Code:
[COLOR=#000000][COLOR=#0000bb]header[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'Location:'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]$link_here[/COLOR][COLOR=#007700])[/COLOR][/COLOR]
with

Code:
[COLOR=#000000][COLOR=#0000bb]header[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'Location:'[/COLOR][COLOR=#007700].$landingpage[$lpNumber][/COLOR][COLOR=#007700])[/COLOR][/COLOR]
 
  • Like
Reactions: yao1994
replace

Code:
[COLOR=#000000][COLOR=#0000bb]header[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'Location:'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]$link_here[/COLOR][COLOR=#007700])[/COLOR][/COLOR]
with

Code:
[COLOR=#000000][COLOR=#0000bb]header[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'Location:'[/COLOR][COLOR=#007700].$landingpage[$lpNumber][/COLOR][COLOR=#007700])[/COLOR][/COLOR]

:bowdown::bowdown::bowdown: +rep
 
replace

Code:
[COLOR=#000000][COLOR=#0000bb]header[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'Location:'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]$link_here[/COLOR][COLOR=#007700])[/COLOR][/COLOR]
with

Code:
[COLOR=#000000][COLOR=#0000bb]header[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'Location:'[/COLOR][COLOR=#007700].$landingpage[$lpNumber][/COLOR][COLOR=#007700])[/COLOR][/COLOR]


Nice, not sure why I added the $link_here instead of the proper variable.
 
BTW I stayed up late to make the complete script for you lazy bastards who want to split test pages with the c1 c2 c3 c4 and t202kw tracking variables included

Code:
<?

$c1 = $_GET['c1']; 
$c2 = $_GET['c2']; 
$c3 = $_GET['c3']; 
$c4 = $_GET['c4']; 
$t202kw = $_GET['t202kw']; 

//Tracking202 Landing Page Rotation Script

//landing pages filenames, theses will be rotated between eachother
//theses landing pages must be in the same DIRECTORY as this file
//you can add as many landing pages here as you like
$landingpage[1] =  'http://tracker.com/tracking202/redirect/dl.php?t202id=1c1='.$c1.'&c2='.$c2.'&c3='.$c3.'&c4='.$c4.'&t202kw='.$t202kw;
$landingpage[2] =  'http://tracker.com/tracking202/redirect/dl.php?t202id=2c1='.$c1.'&c2='.$c2.'&c3='.$c3.'&c4='.$c4.'&t202kw='.$t202kw;
$landingpage[3] =  'http://tracker.com/tracking202/redirect/dl.php?t202id=3c1='.$c1.'&c2='.$c2.'&c3='.$c3.'&c4='.$c4.'&t202kw='.$t202kw;

//this is the text file, which will be stored in the same directory as  this file, 
//count.txt needs to be CHMOD to 777, full privlledges, to read and  write to it.
$myFile = "count.txt";

//open the txt file
$fh = @fopen($myFile, 'r');
$lpNumber = @fread($fh, 5);
@fclose($fh);

//see which landing page is next in line to be shown.
if ($lpNumber >= count($landingpage)) {
    $lpNumber = 1;
} else {
    $lpNumber = $lpNumber + 1;
}

//write to the txt file.
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = $lpNumber . "\n";
fwrite($fh, $stringData);
fclose($fh);

header('Location:'.$landingpage[$lpNumber]);

//terminate script
die();

?>
we can now finally track properly with prosper...
 
very helpful all - thanks. I've had the same issues and have hacked (via very kludgy setups) this for some time. Makes sense to just use the modified LP rotator script.

appreciated!