Answer the question
In order to leave comments, you need to log in
How to set the “Scrolled to the bottom of the page” goal in Yandex.Metrica?
What event should be tracked to inform Ya.M about the achievement of this goal?
Answer the question
In order to leave comments, you need to log in
Try to use the jquery scroll event, upon reaching the footer, you can execute the js function from the Yandex.Metrics API
As an example, this code can serve:
$(window).scroll(function () {
if ($(window).scrollTop() + $(window).height() > $('.footer').offset().top) {
yaCounterXXXXXX.reachGoal('TARGET_NAME');
}
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question