$w.onReady(function () {
let scrollThreshold = 50; // number of pixels scrolled to trigger the event
let scrollCount = 0;
$w(window).scroll(function() {
scrollCount = $w(window).scrollTop();
if (scrollCount >= scrollThreshold) {
console.log("Visitor has scrolled down the page");
}
});
});