Prosper202 - Passing Additional Variables

certel

New member
Jan 24, 2007
48
4
0
Quick contribution to WF.

So, it took a little bit of time to mess around with Prosper to figure out that you can pass some additional variables through Prosper and to your Campaign tracking link. Unfortunately, no tracking is available and I'm assuming that &zip is allowed to by passed in your campaign tracking links for a zip code.

Setup a campaign the way that you normally would, assuming that you're cloaking. (This will not work if you do not setup the campaign for cloaking).

1: Edit /site/tracking202/redirect/off.php -- Add your variable at the top:

$zip = $_GET['zip'];

2: Find "$redirect_site_url = $url . $info_row['click_id'];" around line 280 and change to the following:

if (isset($zip)) {
$redirect_site_url = $url . $info_row['click_id']."&zip=".$zip;
} else {
$redirect_site_url = $url . $info_row['click_id'];
}

3: Edit your PHP file that Prosper generates for your outbound link and add the following at the top:
$zip = $_GET['zip'];

Change your link from:
$tracking202outbound = 'http://domain.com/tracking202/redirect/off.php?acip=123&pci='.$_COOKIE['tracking202pci'];

to:
$tracking202outbound = 'http://domain.com/tracking202/redirect/off.php?acip=123&zip='.$zip.'&pci='.$_COOKIE['tracking202pci'];

4: Instead of just calling domain.com/out.php from your links, call domain.com/out.php?zip=11011

Again... Note that this is edited for a campaign that is setup for cloaking.

Enjoy.
 


holy shit nice, i've been trying to figure out how to do this but i had no idea how to. thanks man +rep
 
Sorry for bump, but the code seems a bit different in the newer version of prosper. Did you do this in 1.32?