In this tutorial, we will be using PHP, MYSQL and AJAX to calculate time spent by a user or user's visit duration on a web page without using Google Analytics or any other external libraries.
Overview:
We will use javascript's onbeforeunload event to make an ajax call which will store time spent by a user on page in mysql database.
Link to original post: https://sujeetpal.in/blog/track-time-...
On this page of the site you can watch the video online Track Time Spent By User on Webpage Using JavaScript without Google Analytics with a duration of hours minute second in good quality, which was uploaded by the user Code Helper 08 October 2020, share the link with friends and acquaintances, this video has already been watched 4,543 times on youtube and it was liked by 40 viewers. Enjoy your viewing!