How to add track code for form sumbit event

I want to add track code for form button.

`onClick="ga('send', 'event', { eventCategory: 'signup', eventAction: 'submit', eventLabel: 'vip', eventValue: 10});"`

Do i need add the code to custome code or any other place?