• Resolved Rene

    (@renehamburger)


    Hi there,

    Thanks for your plugin!

    I’ve been debugging your code today as I realised that my box with a pageTime trigger has not been showing up reliably. The reason for this is that the time is stopped on blur – which not only happens when the user leaves the browser tab, but also when he interacts with a iframe like an embedded video – but not always started when the user returns viewing the page. Listening to the focus event is not sufficient to determine that the user is interacting with the page again.

    If the user is using a mouse, he may merely be hovering back over the page and scrolling it. So listening to a scroll (or mouseover) event in addition to the focus would be a good idea.

Viewing 1 replies (of 1 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hey @renehamburger,

    Nicely found! We’ll be addressing this in the next plugin update, most likely by relying on the Page Visibility API instead as I now think that watching a video on the actual page should also count as time spent on the page.

    Thank you for the heads up!

Viewing 1 replies (of 1 total)
  • The topic ‘Logic to determine page time does not work reliably’ is closed to new replies.