w) { return d - w; } return 0; // not scrollable } var checkPoints = [10, 30, 50, 70, 90]; var reached = 0; var scrollableHeight = getScrollableHeight(); window.addEventListener('resize', function () { scrollableHeight = getScrollableHeight(); }); window.addEventListener('scroll', function () { var current; if (scrollableHeight == 0) { current = 100; } else { var current = getCurrentPosition() / scrollableHeight * 100; } if (current > reached) { reached = current; // checkpoint and send events while (checkPoints.length > 0) { var c = checkPoints[0]; if (c <= reached) { checkPoints.shift(); fbq('trackCustom', 'ViewContentCheckPoint', { depth: c, }); } else { break; } } } }, false); />
Спасибо за заявку! ♥
Наш администратор скоро перезвонит и запишет вас на процедуру Гидропилинг со скидкой