Say you’re using two or more ad networks or link exchange sites to promote your apps. How do you track referrals? Assuming you’re already tracking your web stats, it’s easy.
Create a PHP file and name it track.php
Paste the following code into the PHP file and save it. Upload it to your server.
<?
echo ‘<fb:redirect url=”http://apps.facebook.com/yourappname” />’;
?>
Note: if you’re using IFrames, use header(”location:URL”).
Now say you’re using an ad network like Appsaholic and a link exchange app like Grow Together. Your ad links would look like this:
http://apps.facebook.com/yourappname/track.php?ref=appsaholic for Appsaholic
http://apps.facebook.com/yourappname/track.php?ref=growtogether for Grow Together
Both links will redirect to your app’s main page, but now you can keep track of your referring sites and the number of times they referred you.

19 October, 2007 at 8:47 am
Pretty cool, have spotted it already though