Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Saving Time Spent On Page To Web Server's Log File

DZone's Guide to

Saving Time Spent On Page To Web Server's Log File

·
Free Resource
// Saving time spent on page to web server's log file


(function(){
  var start = new Date;
  window.onunload = function(){
      var time = (new Date - start );
      var image = new Image;
      image.src = "/dummy?t=" + time + "&url=" + document.location;
  }
})();
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}