Last active
December 30, 2018 07:39
-
-
Save PonomareVlad/1fe9597dc83ea1f3acc727fd2c791f0c to your computer and use it in GitHub Desktop.
SlideScroll + GTM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Запускаем плагин слайдов | |
window.slideScroll = new SlideScroll({ | |
lazyDisplayOffset: 3, // Количество отображаемых блоков относительно активного | |
debug: true // Режим отладки в консоли | |
}); | |
slideScroll.onActive(slideNode => dataLayer.push({'event': 'foto_' + slideNode.order})); // GTM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment