Is it possible to track when people leave your site. If someone hit the x on the top right hand corner i would like to record it to a database before the page actually closes. Is this possible? if so how? also is it possible to log if they leave the site by typing in the address bar or what not?