Refactor "trackError"
Refactor "trackError"