I want to know how much time did a student spent on reading or viewing a topic.

Is it possible to know?

Please tell me

2 Answers 2


You can use the unload window event.

Will be need make a plugin that send userId, pageId and time information to a controller that store this on database and provide statistics about it.

<script type="text/javascript">

function send_data(){
                data:{data to send},
                //get your time in response here
//insert this data in your data base and notice your timestamp

 window.onload=function(){ send_data(); }
 window.onbeforeunload=function(){ send_data(); }


source 1, 2

edit: If the information is provided by a custom component (like online courses) with buttons like "Prev page" and "Next page" could be implemented a better method to provide this data.

Without loss information


Student on a particular topic? It's not obvious what kind of site you have, its features and extensions used.

However, Joomla core doesn't have any mechanism that can track the time users spend on each pages/articles.

Is it possible? Yes it can be if you develop it.
However have you done any search for extensions that might provide this? I don't believe they will exist, but you never know.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.