....yourpage.com?from=thisite">etc</a>
if($_POST[from]){
//log to DB or whatever//
}
or if you can not get alter the banner...
$url=@parse_url($HTTP_REFERER);
if($url[host])!="www.my_domain.com"){
some_logging_function($HTTP_REFERER);
}
note that you wont 'always' be able to get the $HTTP_REFERER