Since this post has actually made it up on tracking202.com as an example, plenty of people I’m sure have questions. If you need help throw me a message on AIM @ YRM (yes 3 chars)
Figures the first campaign I try to setup has prepop data I can’t pass to my offer anymore and strangely (then again everything seems strange when it comes to marketing) without doing the prepop data my campaign bombs. After being frustrated for a little bit it came to me, it’s pretty easy to build a pre-pop workaround in PHP. Here’s how I did it, it’s a little ugly so bare with me. In my example I needed to prepop a zipcode. I would try to write steps out for non-php coders to set this up but frankly I don’t even know where to begin.
I have 2 files that look like so in the same directory as my landing page:
File: begin.php
1 2 3 4 5 6 7 8 9 10 11 12 13 | <?php setcookie("zipcode", $_GET['zip']); if (isset($_COOKIE['tracking202outbound'])) { $tracking202outbound = $_COOKIE['tracking202outbound']; } else { $tracking202outbound = 'http://yoururl.com/tracking202/redirect/lp.php?lpip=123'; } header('location: '.$tracking202outbound); ?> |
File: finish.php
1 2 3 4 5 6 7 8 9 10 | <?php if(isset($_COOKIE['zipcode'])){ $zip = $_COOKIE['zipcode']; } $subid = $_GET['subid']; header("Location: http://myaffilliatelink/click/?s=1&c=1&subid=$subid&zip=$zip"); ?> |
Now 4 steps…
1) within prosper202, if you go to your campaign link, make the campaign link: “http://www.yoururl.com/finish.php?subid=”.
2) generate the landing page code like you normally would and take the landing page link code and use that to replace “http://yoururl.com/tracking202/redirect/lp.php?lpip=123″ in begin.php.
3) on your landing page, make the submission go to “http://www.yoururl.com/begin.php”.
4) replace “http://myaffilliatelink/click/?s=1&c=1&subid=$subid&zip=$zip” with your affiliate network link url and replace the appropriate variables accordingly so it works for you.
You’re done!
