Skip to content

Instantly share code, notes, and snippets.

@msure
Created August 19, 2015 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msure/8742c2ec1ff1beea81e8 to your computer and use it in GitHub Desktop.
Save msure/8742c2ec1ff1beea81e8 to your computer and use it in GitHub Desktop.
Test to confirm Google Tag Manager no longer has access to JQuery
<script>
console.log("outside test function");
+function ($) {
console.log("inside test function");
if (typeof $ == 'undefined') {
console.log("no jquery!");
} else {
console.log("test function made it past check!");
}
}(window.jQuery);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment