I really wonder how useful the time-on-page metric is. Thanks to tabbed browsing, I might have your site open for 30 minutes, yet only look at it for 30 seconds.
Also, is it possible for javascript to check whether the site's tab and browser window is viewable and in the foreground?