I couldn't find the thread that I cam to earlier. So I figured I would just ask for help. I am looking for software or a technique to use to track my affiliate link. (number of people clicking it)
As well, anybody know a decent way to cloak affiliate links?
The views expressed on this page by users and staff are their own, not those of NamePros.
<?php
/* mylinks.php */
$ids = array (
1=> "your first affiliate link here",
2=> "another affiliate link ...",
3=> "a third affiliate link");
$i = $_GET['id'];
header('Location:$ids[$i]');
?>
On your page:
HTML:
<a href="mylinks.php?id=1" rel="nofollow">Buy it now!</a>
That's a little oversimplified - you should do some error checking and data sanitization and might want to log stats into a file or database (though you'll have them in your logs anyway), but that's the general idea ...