Created
July 4, 2022 08:30
-
-
Save anova/879a7154c77e7f16f67ba5f78f904f54 to your computer and use it in GitHub Desktop.
A scroll trigger for Google Tag Manager
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
function documentScrolled() { | |
console.log('document is scrolled'); | |
document.removeEventListener('scroll', documentScrolled); | |
} | |
document.addEventListener('scroll', documentScrolled); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment