/* Custom JS - write your own functions for picochic */ jQuery( document ).ready(function() { jQuery("a[href*='kkwitter/files']").on('click', function(e) { //console.log('file: '+jQuery(this).attr('href')); ga('send', { hitType: 'event', eventCategory: 'File Links', eventAction: 'click', eventLabel: jQuery(this).attr('href') }); }); });