If analytics.js is blocked by any extension, the whole javascript mechanism will not work. What we have to do is to load analytics.js not as a async module via requirejs, but synchronously via a normal script tag. In the code that uses its API, if the API is not there we will have to create a mock object and let it perform requests to google analytics into the void.
If analytics.js is blocked by any extension, the whole javascript mechanism will not work. What we have to do is to load analytics.js not as a async module via requirejs, but synchronously via a normal script tag. In the code that uses its API, if the API is not there we will have to create a mock object and let it perform requests to google analytics into the void.