How to monitor scrolling for sub elements on a page

SessionCam will automatically monitor any scrolling events against the <body> HTML element on your page.

If you have other elements that have scrolling in them (such as <div>'s) then you need to add the class sessioncammonitorscroll to them for SessionCam to monitor the scrolling.

For example:

  1. On a responsive site you may display a static header to the visitor, have scrolling disabled on the body element, but still allow for scrolling on the main content area of the site. In this instance you would add the class sessioncammonitorscroll to the main content area of your site.
  2. On a retail site you may have multiple options to filter products by. These filters may be in a <div> element that is only 100px tall and any overflow is scrollable. In this instance you would add the class sessioncammonitorscroll to the <div> that is scrollable.
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.