prosper202 - testing direct link vs. multiple landers at the same time

mpbiz

New member
Apr 29, 2010
2,824
57
0
Right now I have 2 landing pages in rotation, and decided to throw in a direct link to the offer to recoup some costs while testing and also see if the DL converts better.

What I did was I added the direct link like this:

$landingpage[1] = 'lander1.php?' . $query;

$landingpage[2] = 'lander2.php?' . $query;

$landingpage[3] = 'directlink.php?' . $query;

I created a 3rd landing page called direct link in the 202 setup process and on the directlink.php page, it's basically an html file renamed to a php, so it has all the code of a basic html page.

Everything seems to be tracking fine, but I couldn't use a php redirect. Something kept going wrong with having 2 "headers" in the code, so I had to use a meta html redirect.

Is this the most efficient way to do this or is there an easier way?

I don't want to be slowing down my redirects on my VPS if there's a more efficient way.
 


I don't really understand what did you do but all I do is generate links for lander or direct link campaign and then use them in this:

PHP:
<?php

$t202kw = $_GET['kw'];

$randn = rand(1,3);

if ($randn == "1") {

header( 'Location: http://www.lander.com/?t202id=549376&t202kw='."$t202kw" ) ;
}

if ($randn == "2") {

header( 'Location: http://www.lander2.com/?t202id=54422&t202kw='."$t202kw" ) ;
}

if ($randn == "3") {

header( 'Location: http://prosperdomain.com/dl.php/?t202id=334422&t202kw='."$t202kw" ) ;
}



?>

Name this file rotator.php and use this in for your ads www.yourdomain.com/rotator.php?kw={keyword}
 
@Jose, maybe my setups different since I'm on social right now..

But my specific lander codes for the rotator script don't contain any of this /?t202id=54422&t202kw=, notice how in my example it's as simple as lander1.php and lander2.php

I use the generate links step to get my links for my specific text ads/placements/social targeting etc., but my landers just have the LP code and that's it.

I'm going on 3 hours sleep right now so maybe I'm missing something but it seems like we have completely different setups.
 
I created a 3rd landing page called direct link in the 202 setup process and on the directlink.php page, it's basically an html file renamed to a php, so it has all the code of a basic html page.

Everything seems to be tracking fine, but I couldn't use a php redirect. Something kept going wrong with having 2 "headers" in the code, so I had to use a meta html redirect.

Did you make sure to put all the PHP code on the renamed html page before the </head> tag?

If that isn't it post the PHP error you get. Also you are retarded if you have errors displaying on a production server.
 
  • Like
Reactions: mpbiz
Your original problem with 301 redirecting will have probably been something to do with the headers already being sent. The most common cause of this is a line break before the opening <?php or after the last ?> check for this. Sometimes just copying and pasting the original text into a new file can solve it too. Just make sure the very first char is a <?php and the very last is ?>

Just by having a bit of whitespace in the script sends the headers and you can't then 301 redirect.

Sending the traffic by meta-refresh will still work fine but wont be as fast. You can do this by something along the lines of:
<?php
$landingpage[1] = 'lander1.php?' . $query;
$landingpage[2] = 'lander2.php?' . $query;
$landingpage[3] = 'directlink.php?' . $query;

$searchlink = $landingpage[array_rand($landingpage)];
echo "<meta http-equiv=\"refresh\" content=\"0;url=".$searchlink."\">";
?>
 
  • Like
Reactions: mpbiz
Is this the most efficient way to do this or is there an easier way?

Switch to CPV Lab. :thumbsup:

h071p.png
 
Did you make sure to put all the PHP code on the renamed html page before the </head> tag?

Your original problem with 301 redirecting will have probably been something to do with the headers already being sent. The most common cause of this is a line break before the opening <?php or after the last ?> check for this. Sometimes just copying and pasting the original text into a new file can solve it too. Just make sure the very first char is a <?php and the very last is ?>

Just by having a bit of whitespace in the script sends the headers and you can't then 301 redirect.

I'm pretty sure you guys are right. I either screwed up the code or put it in the wrong area.

The campaign that I needed this for is paused atm, but I'm turning it back on tomorrow night so we'll see if that was really the problem.

Thanks for the help and I'll be sure to post an update tomorrow night.
 
Ok so here's my code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php header( 'Location: http://affiliateCPAnetw0rk.com/?a=297&c=22&s1=09' ) ; ?>
<title>Sup Bro's</title>
<link href="/css-bastards/bastard9.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#bzddd9">
<script language="JavaScript" type="text/javascript"> cbr202=Math.random()*10000000000000000;document.write('<scr'+'ipt language="JavaScript" src="http://202BadgerTrackerDomain.info/tracking202/static/landing.php?lpip=999&202cb='+cbr202+'" type="text/javascript"></scr' + 'ipt>'); </script>
</body>
</html>

As you can see it has the 202 javascript so I can see the Direct Link conversions as a "Landing Page" named blah blah DL in 202, but obviously it just instantly redirects via <?php header( 'Location: http://affiliateCPAnetw0rk.com/?a=297&c=22&s1=09' ) ; ?>

Here's the error I keep getting:

"Warning: Cannot modify header information - headers already sent by (output started at /home/tracker/public_html/202BadgerTrackerDomain.info/directlink.php:3) in /home/tracker/public_html/202BadgerTrackerDomain.info/directlink.php on line 3
 
PS. The reason I want to set it up this way is I can easily go to the Analyze tab, sort by Landing Pages, and then just see Landing Page A's conversions vs. Direct Link's Conversions
 
It will never work the way you have the code above

to fix it

B4

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

add

<?php
header( 'Location: http://affiliateCPAnetw0rk.com/?a=297&c=22&s1=09' ) ;
exit();
?>

Thanks man.

This fixed the redirect problem, but it still doesn't show up when I go to analyze > landing pages.

All of the clicks show up for the actual LP, but no clicks register for the direct link "landing page".

If anyone knows how to do this, or maybe my way is wrong, I'd appreciate an alternative solution.