Tutorial: Track Time Spent on a Slide or in a Multi-Slide Activity

Have you ever wanted to track how much time a learner spent on an individual slide? Or maybe you wanted to know how long it took them to complete an activity that spans multiple slides?

While some time-based data (such as session time) is be captured by your LMS, that doesn't help you do stuff like:

  • display additional information if a learner hasn't completed an activity after 2 minutes,
  • give the learner bonus points for completing a quiz in under 30 seconds, or
  • capture how long a learner took to complete key activities and record this in the LMS.

Wouldn't it be cool if you could get Storyline to do that? Well, now you can!

In this tutorial, we will write some JavaScript that you can use to track how long a learner takes to do something, whether that's complete the whole course or just a few slides.

Then we will look at a couple of different ways this code could be used.

Click here to see the tutorial, click here to see a demo and here to download the source file.

Let me know if you have any questions, comments or are stuck with implementing any of this. I'm happy to help where I can.

10 Replies
Richard Piper

I have a question for anybody; My question is I have some courses I have to add a timer too, this timer will count up instead of down. I need it to stop when the user logs out and then back up when the user logs back in.
I also need to add a 20 min time out so when the user sits idle in the course for more then 20 min the course times out.
I am new to storyline and am not sure how to set this up. I have looked at your samples and I am still not sure how to make this work.
Any help you can throw my way would be greatly appreciated..

Its too bad Storyline does not have anything like this built in to there software...

Maria Costa-Stienstra

Hi, everyone!

I have exciting news to share!
We just released another update for Storyline 360. In Update 58, we've included important fixes and new features.

One of the features we've included is:

Create timed interactions and conditional triggers using built-in variables that track the total time a learner spends on a slide, a scene, or an entire course.

To take advantage of this feature, launch the Articulate 360 desktop app on your computer and click the Update button next to Storyline 360. You'll find our step-by-step instructions here.

Please let us know if you have any questions by posting here or by reaching out to our Support Engineers directly.