Best way to track custom events?

You may use trackEvent with any number of custom variables.