If your Matomo server is unreachable it may be that your website cannot load!
You can defer loading the Matomo tracking. For ways to do that, check that blog post: https://matomo.org/blog/2017/04/different-ways-embedding-piwik-tracking-code-faster-website-performance/