Tracking a campaign when form data is appended to affiliate URL

Ben89

New member
Mar 30, 2007
670
4
0
Hi guys. I had a question about tracking an affiliate campaign when form data is being attached to the affiliate URL. So basically, the landing page contains a form with a few fields and the information in these fields are then attached to the affiliate URL. So with my limited PHP skills, I came up with this to grab the field data and attach it to the affiliate URL, which works fine, but my question is how do I then tie this in with prosper202 to track the campaign?

Code:
<?php
		$firstname = $_POST['fname'];
		$lastname  = $_POST['lname'];
		$state = $_POST['state'];
		
		$url = 'http://AFFILIATEURL.COM';
		$param1 = '&fname=' . $firstname;
		$url .= $param1;
		$param2 = '&lname=' . $lastname;
		$url .= $param2;
		$param3 = '&state=' . $state;
		$url .= $param3;
		?>
		
<meta http-equiv="refresh" content="0;URL='<?php echo $url>'">

Thanks a lot!
 


The thing is the data in the form fields is then used to conduct a search on the offer page. So I don't really care what's in those fields; I just need to pass the data on to the advertiser's page so it can be used to perform the search.

c1/c2/c3/c4 seem to be used for collecting data regarding demographics.
 
The thing is the data in the form fields is then used to conduct a search on the offer page. So I don't really care what's in those fields; I just need to pass the data on to the advertiser's page so it can be used to perform the search.

c1/c2/c3/c4 seem to be used for collecting data regarding demographics.

You can use them however you want. They don't have to be for collecting demographic data. All that matters is that you will be able to pass those tokens to the next page and use them to prepop a form's fields, trigger specific events, etc.