Created
October 18, 2017 14:32
-
-
Save vhsu/75b4bc88f7978272270725d13321b755 to your computer and use it in GitHub Desktop.
Custom Variable Tagmanager - Log a custom message in a variable by class name
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
function() { | |
if(document.getElementsByClassName('alert')[0]) | |
{ | |
return document.getElementsByClassName('alert')[0].textContent; | |
} | |
else | |
{ | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment