we just realized that our implementation of Piwik on some of clients is a huge risk, since if our server where we have Piwik installed is not available for some time, then their websites will take very long time to respond since its waiting for loading piwik.js.
We use async tracking, but is there any way around this? Would it be possible to on the client side set a timeout so if the client doesnt get a response within 2 sec the page would just quit waiting for the piwik.js to load?
Just log the requests to a logfile and import the piwik logs later on separately. The log server can be a really lightweight and dumb webserver without much logic.