Report question

Question: How can I detect if the user is currently active on the page?