Implement error boundaries, a way to catch JavaScript errors in your React components, in your tracking tool.