I was informed that they cannot visit my Angular website as I rely on Google Analytics. Their policy is to block trackers and ads.
Since my site is completely created in Angular, and one of the dependencies is actually Google Analytics, I was wondering if I could somehow implement a reserve for visitors who have this type of Adblocker enabled.
Also, is it possible to somehow disable dependency injection when the user blocks it. angulartics core of the problem are angulartics dependencies
My app.js applications look like this:
angular.module('mywebsite', [ 'angulartics', 'angulartics.google.analytics', ] )
and my index.html
<script src="/bower_components/angulartics/dist/angulartics.min.js"></script> <script src="/bower_components/angulartics-google-analytics/dist/angulartics-google-analytics.min.js"></script>
Can I rewrite such that if these scripts are blocked, they are deleted as a dependency?
source share