// Using jQuery Event API v1.3 $('#button-track').on('click', function() { ga('send', 'event', 'button', 'click', 'nav-buttons'); });