为什么谷歌分析 JavaScript 文件无法加载?

2 https google-analytics drupal-7

我的网站上有 Google Analytics (admin/config/system/googleanalytics) 模块。当我访问我的网站时,我在控制台中收到一条错误消息:

Failed to load resource: net::ERR_NAME_NOT_RESOLVED https://www.google-analytics.com/analytics.js 
Run Code Online (Sandbox Code Playgroud)

即使当我进入我的 Google Analytics 帐户时,他们也会给我输入以下代码:

<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','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-myid-4', 'auto');
  ga('send', 'pageview');

</script>
Run Code Online (Sandbox Code Playgroud)

如果我尝试访问该网址,它会显示“此网页不可用”。

小智 5

原来我已经在我的主机文件中阻止了它。