However, that event only fires if every single pixel of the page is covered or otherwise invisible.
So the use case where the tab is not entirely hidden is a lot more difficult. In the end it's likely going to be a timeout: if the user hasn't interacted for X time the monetization stream is stopped.