How do we calculate our time spent metric?
We use some features within the browser to track which tabs/windows are currently open, so that only one is updating the users time data at any given instance. We also only look at the tab the user is interacting with. The time data is sent in 30s intervals and if the tab or window is closed or changes, we save the most recent time data.