Last active
March 9, 2016 03:56
-
-
Save davidjb/588da06e31c70518aafe to your computer and use it in GitHub Desktop.
This file contains 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
$(document).ready(function() { | |
$(".globalheader a").click(function() { | |
if($(this).attr('href').toLowerCase() != "javascript:;" && $(this).attr('href') != "#") { | |
ga('send', 'event', { | |
eventCategory: 'Global Header', | |
eventAction: 'open', | |
eventLabel: $(this).attr('href'), | |
transport: 'beacon' | |
}); | |
} | |
}); | |
// Other types go here | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment