Here's a little php file I made for tracking your site's conversions. Especially for those who are trying to fund their website through affiliate marketing.
The trick is to create a "go" page instead of linking directly to the affiliate sites. This way you can use your own stats program, Google Analytics or whatever, to easily track your affiliate links' performance.
Create a file called "go.php". Place it in your website's root.
Here is the entire content you'll need in the file:
<html>
<head>
<title>Redirecting…</title>
</head>
<body bgcolor="#FFFFFF">
<?
$siteurl=$_GET['site'];
?>
<script language=javascript>
setTimeout("location.href='<?=$siteurl?>'", [1000]);
</script>
<!— Add your google analytics or other stats code here–>
</body>
</html>
Now, in your website, instead of linking to an affiliate program directly, link to the go page.
For instance, if your own website is called example.com and your affiliate landing page is http://www.affiliatewhatever.com/myid
Your link should look like this:
http://example.com/go.php?site=http://www.affiliatewhatever.com/myid
Just add your stats code to where it says on the code, and you should be able to follow your affiliate links' performance very effectively and make adjustments to increase the performance.








