Here is a basic solution:
You need two include files. The first is referenced from all landing pages:
The second on the checkout page:Code:<?php $source = $_GET['source']; if ($source != null) { $expiry = 60 * 60 * 24 * 30 + time(); // 30 days time setcookie('source', $source, $expiry, "/"); } ?>
Have fun :-)Code:<?php if(isset($_COOKIE['source'])) $source = $_COOKIE['source']; if ($source == 'webgains') echo "do the webgains thing"; else if ($source == 'tradedoubler') echo "do the tradedoubler thing"; ?>
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks