I've always been curious -- how do analytics determine page viewing time? http makes one request when I open the page (and additional requests for images, &c), but there is no http request sent when I type another URL, or close the tab. Even making another http request for a different page on the site doesn't necessarily I've left that page; maybe I've just opened it in another tab. So how do these analytics calculate page viewing time?