Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.addEventListener ?
- window.addEventListener('scroll', testScroll, false) :
- window.attachEvent('onScroll', testScroll);
- var scrollCount = 0;
- function testScroll() {
- ++scrollCount;
- if (scrollCount == 2) {
- dataLayer.push({ 'event': 'aceptacookies'});
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement