I think the best approach here would be to use the ignoreErrors option https://docs.sentry.io/platforms/javascript/configuration/filtering/
ignoreErrors
Sentry.init({ ignoreErrors: [ "Can't find variable: gmo" ], });