Created
November 27, 2015 16:22
-
-
Save thyngster/da9fda1c10d984a81e9d to your computer and use it in GitHub Desktop.
dataLayer Object Observer
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
// Simple dataLayer object observer for Chrome +36 | |
// David Vallejo (@thyng) | |
// 2014 | |
Object.observe(dataLayer,function(e){for(i=0;i<e.length;i++)"add"==e[i].type&&console.table([e[i].object[e[i].object.length-1]])}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment