mycontroller-v1-legacy icon indicating copy to clipboard operation
mycontroller-v1-legacy copied to clipboard

Google Analytics disable still tries to load analytics

Open githubcdr opened this issue 5 years ago • 2 comments

Hi,

I noticed that I receive timeouts when reloading a page at random, after inspecting this issue I found that this code is still present and active even when disabling Google Analytics in the properties file;

 <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
    </script>

Since I block Google analytics in DNS this seems to cause a long page load (5+ seconds), please note that I'm not 100% sure but previous versions did not have this issue.

githubcdr avatar Mar 11 '19 17:03 githubcdr

@githubcdr can you clear cache on your browser and try again?

jkandasa avatar Mar 15 '19 03:03 jkandasa

Hi, I tried but this does not seem to resolv the issue, it might be related to the load on my docker host, I'll have to investigate.

githubcdr avatar Mar 24 '19 00:03 githubcdr