$(function(){
  var ref = document.referrer;
  ref = ref.replace("&", "%26");
  var src = "/log?" + 
  "ref=" + ref + 
  "&w=" + screen.width +
  "&h=" + screen.height +
  "&c=" + screen.colorDepth;
  var img = $('<img>').attr('src', src).css('display','none');
  $('body').append(img);
});

