plausible
plausible copied to clipboard
How to capture fetch errors?
I'm getting a lot of TypeError: Failed to fetch in Sentry from failing Plausible fetch requests:
I tried wrapping the useTrackEvent composable into a try/catch like so:
But the events still get logged and spam Sentry.
Not sure why exactly the requests to the Plausible API fail, but is there a way to properly catch/handle/ignore them?
Might be an upstream issue in plausible-tracker?