Skip to content

Instantly share code, notes, and snippets.

@vhsu
Created August 23, 2022 12:36
Show Gist options
  • Save vhsu/fcae508d4a49c0b2c3f242c2b4db84a5 to your computer and use it in GitHub Desktop.
Save vhsu/fcae508d4a49c0b2c3f242c2b4db84a5 to your computer and use it in GitHub Desktop.
Listen to dataLayer push calls
//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