Turkish government have blocked some IPs including Google Analytics. This caused all the web sites using alanytics to slow down and even not to load. How can we prevent this problem? How can we skip loading of ga.js if not available?
Turkish government have blocked some IPs including Google Analytics. This caused all the web
Share
Google offers an asynchronous snippet for their tracking code:
Note that you need to use a different tracking syntax to use it, check the migration guide on the link for details. It also require a browser with support for the HTML5 attribute ‘async’, so it may not fully solve your problem.
Another solution is proposed in ‘Better Google Analytics JavaScript that doesn’t block page downloading‘