angulartics / angulartics-google-analytics

Google Analytics plugin for Angulartics
MIT License
133 stars 86 forks source link

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

Open jeremyml opened 3 years ago

jeremyml commented 3 years ago

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 commented 3 years ago

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.