Skip to content

Google Analytics disable still tries to load analytics #496

Open
@githubcdr

Description

@githubcdr

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions