Created
August 23, 2022 12:36
-
-
Save vhsu/fcae508d4a49c0b2c3f242c2b4db84a5 to your computer and use it in GitHub Desktop.
Listen to dataLayer push calls
This file contains hidden or 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
//Listen to datalaLayer.push calls (does not actually execute the push) | |
dataLayer.push = function(obj){ console.log('Something was pushed in the dataLayer');console.log(obj);} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment