Measures real time students activity: Timestat Block

--- Advertisement ---

Connected 2023
Connected Conference OpenLMS

TimeStat block is a plugin maintained by Łukasz Sanokowski, which can measure the real time activity of students and the time is increased only when Moodle tab is active in student’s browser window.
Measured activity time is incremented only when Moodle tab in web browser is active (it is done via Javascript). It also allows to check time spent in each module separately.

Timestat Block
Timestat Block

To install the TimeStat block to your Moodle site, you need to change the core Moodle code which is not recommended.

    • Download and extract the TimStat block in the your_moodle_site/blocks and visit the notifications page as an administrator and finish the installation process.
    • Open the file your_moodle_site/lib/outputrenderers.php in a text editor and Add following line of code at end of function standard_end_of_body_html()

so it should look like:
public function standard_end_of_body_html() {
global $CFG;

return $output;

  • Also make sure that you have JavaScript in your browser as it will works only on the JavaScript enabled browsers.
  • Add the block to any course using “Add a block” with the Editing Mode On.

To download the latest version of the TimeStat Block please check out the link:

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Dive Deeper On

The Latest

The eLearn Podcast

Connected Conference OpenLMS

--- Advertisement ---

Post Pages - Sidebar 4 - CourseMerchant

--- Advertisement ---

Post Pages - Sidebar 7 - Titus Learning

--- Advertisement ---

Post Pages - Sidebar 5 - Edwiser (RemUI)

Subscribe to our newsletter

Education technology has the power to change lives. 

To get the latest news, information and resources about online learning from around the world by clicking on the button below.