Ok, you being the owner of a online game would want to know where your users are comming from, and there is an easy way to do that without adding ?red=http://www.somewhere.com to the address.
Nearly all browsers send the referal link to the server, and the server stores this in the PHP global variable $_SERVER['HTTP_REFERER']. And all you need to do is store that information in a file or database, and keep a tally of each referal.
Easy