Rather than paste the conversion tracking code for all my PPC affiliates on my download page, does anyone know where I can get an automatic script that will allow affiliates to send traffic to a specific link to get the tracking done automatically? thanks PS like the one swerd has (I presume is proprietary) (http://forums.digitalpoint.com/showthread.php?p=10896055)
Here's the basic idea. On your landing page: if ($_GET["g"]) set_cookie("mysite_google_tracking", $_GET["g"], time() + 3600*24*30, "/"); // 30 day cookie if ($_GET["g"] || $_GET["hop"]) { header("Location: http://www.mysite.com"); // remove ?hop=&g= exit; } Code (markup): On your thank you page: if (isset($_COOKIE["mysite_google_tracking"])) { echo " google tracking JavaScript code... var googleID_whatever = '".$_COOKIE["mysite_google_tracking"]."'; google tracking JavaScript code... "; } Code (markup): Obviously you'll need to replace in the JavaScript which Google provides. There's a part where your Google ID is included, and that's the bit you need to swap in with the ID from the affiliate. You can do the same with Yahoo! and MSN or any other networks.
Thanks for that, I now see how that works. Just simple php get function. How does Clickbank handle this with the download url specified? Do you have to set pass variables or something? I've never done that.
@rolf: not sure what you mean... the PHP set_cookie() function stores a cookie on the customer's computer, so when they land on your thank you page (after being redirected by Clickbank), the tracking ID is ready to be included. Does that make sense?