I can find the start time of the user when visit the page but not getting the end time.
I tried below jquery event to get the time when user leaves the page but it is not working for me. Could you help me to get the end time of the visitor?
$(document).ready(function() {
$(window).unload(function() {
alert("you are leaving from page");
});
});
</script>
$(window).bind('beforeunload', function(){
return 'Are you sure you want to leave?';
});