Tracking Time spent on an app

Would love to know if anyone has had any luck with a time-tracking feature either using tools native to Retool or using JS.

I would like to track the amount of time a user spends on an app and then have them respond to a "Are you still there" message and record the values.

Thanks in advance

1 Like

Hi @PAllred! Welcome to the community. :slightly_smiling_face:

If I'm understanding correctly, one really simple solution is to configure the modal that you want your users to see and interact with and then write a JS query using setTimeout that will make it visible after some set amount of time.

In the above example, users will only see the modal after 10s have passed. Note that you'll need the JS query to run on page load in order to get this to work!