How to evaluate if view event can be sent

Our KPIs require that a view event is only send if the according content is inside the user's viewport.

Example cases

There are two cases when content is eligible to trigger such an event

50% of the content is visible in the viewport

event is triggered when 50% of the content is visible

The content is visible on 50% of the viewport

event is triggered when 50% of the viewport is filled with the content

Code Snippet

Last updated