Prosper Javascript Redirect Help *Noob Mistake*

Constantin

New member
Sep 5, 2010
88
1
0
Okay so using a Prosper202 setup on a simple LP I'm doing POF->LP->Offer and I'm using the GWO and the Plenty Of Fish conversion pixel.

So someone clicks through on my lp and goes to my redirect.php and it will take them to a blank redirect.php that goes nowhere. Here is my redirect.php using the code that Prosper202 gave me.

<html>
<head><title>Redirecting You Now...</title></head>
<body>
<!-- PLACE OTHER LANDING PAGE CLICK THROUGH CONVERSION TRACKING PIXELS HERE -->
<POF PIXEL>
<GWO TRACKING CODE>

<!-- NOW THE TRACKING202 REDIRECTS OUT -->
<script type="text/javascript">
if (readCookie('tracking202outbound') != '') {
window.location=readCookie('tracking202outbound');
} else {
window.location='http://mydomain.com/tracking202/redirect/lp.php?lpip=499';
}

function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca;
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
</script>
</body>
</html>

I'm sure I'm just making some simple mistake, but I can't figure this out. for the time being I just made a simple redirect without the cookie stuff using window.location but then I lost my subid conversion data from my network!!

Boobs for for help!
JlIt0.jpg

angie-varona-48.jpg

9_36.jpg

JBGmvtq4fkwgc.jpg

10002.gif

Mz4Ny.jpg

1297620160669.jpg
 


ok for anyone that also had this problem (there were a few on the prosper202 forum) the solution is:

var c = ca; should be var c = ca;