diff --git a/src/index.tsx b/src/index.tsx index 6a591fa9a7..70bc8d4df0 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -34,6 +34,13 @@ if (typeof GOOGLE_ANALYTICS_ID === 'string') { ReactGA.initialize('test', { testMode: true, debug: true }) } +window.addEventListener('error', error => { + ReactGA.exception({ + description: `${error.message} @ ${error.filename}:${error.lineno}:${error.colno}`, + fatal: true + }) +}) + function Updaters() { return ( <>