angulartics-google-analytics icon indicating copy to clipboard operation
angulartics-google-analytics copied to clipboard

How to handle adblocking of angulartics-ga.min.js

Open jeremyml opened this issue 4 years ago • 1 comments

ublock origin blocks the loading of the file angulartics-ga.min.js, which causes the AngularJs 1.7 app to fail to load.

Is there a way to detect if the angulartics-ga.min.js file in fact loaded prior to angular.module('app',dependancyArray); ? I could remove angulartics.google.analytics from dependancyArray if angulartics-ga.min.js was blocked.

What is the best way to conditionally handle adblocking of angulartics-ga.min.js in AngularJs 1.7?

jeremyml avatar Sep 03 '20 22:09 jeremyml

I am disappointed at the lack of support on this issue. The adblocker breaks the entire application due to this issue. I think we will just need to remove google analytics.

jeremyml avatar Jan 27 '21 23:01 jeremyml