Added overridable handler 'shouldTrackEvent', to filter out events which should not be tracked