Using Waypoints to track user engagement and ad views. The Waypoint component uses the current layout pane as scroll context. Furthemore, it is used in combination with p:ajax.

Note: The offset "bottom-in-view" is an alias name for the offset function from the first example with infinite scrolling. ${showcase:getFileContent('/sections/waypoint/example-scrollAnalytics.xhtml')} ${showcase:getFileContent('/org/primefaces/extensions/showcase/controller/waypoint/ScrollAnalyticsController.java')}