As I said, I use Google Web History. Every link I click is logged to Google. They can figure out how much time I spent on each page from that.
Then it can track only links you click on Google websites. So you clicking on your friend's profile in Facebook will not get logged in here. Unless it is browser extension it can not track * every * link.