If I use Sentry with my application it will report an error "Network request failed " if the call to google analytics fails (which of course it will sometimes).
This could be avoided by handling the error that occurs when fetch is called in the send method i.e add a catch to the fetch.
Line 138 in analytics.js could be updated like this:
If I use Sentry with my application it will report an error "Network request failed " if the call to google analytics fails (which of course it will sometimes).
This could be avoided by handling the error that occurs when fetch is called in the send method i.e add a catch to the fetch.
Line 138 in analytics.js could be updated like this: