Reference: https://docs.datadoghq.com/real_user_monitoring/browser/collecting_browser_errors/?tab=npm