Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
$('a[href$=".pdf"]').click(function(){
ga('send', {
hitType: 'event',
eventCategory: 'Download',
eventAction: 'PDF',
eventLabel: this.href
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment