简体   繁体   English

无法加载资源:https://www.google-analytics.com/ga.js中的net :: ERR_CONNECTION_RESET

[英]Failed to load resource: net::ERR_CONNECTION_RESET in https://www.google-analytics.com/ga.js

This happens to be a new error to me where when i debugged my Code, It shows this kind of error in google-analytics 这对我来说是个新错误,当我调试代码时,它在google-analytics中显示了这种错误

Failed to load resource: net::ERR_CONNECTION_RESET https://www.google-analytics.com/ga.js

Then after i refresh the browser it now shows 然后在刷新浏览器后,它现在显示

GET https://www.google-analytics.com/ga.js net::ERR_TIMED_OUT

that could be the source why the page loads so slow 这可能是页面加载如此缓慢的原因

Also when accessing this https://www.google-analytics.com/ga.js i cant even see the javascript but when i tried accessing it in Firefox, it works and show the javascript file of google analytics 另外,当访问此https://www.google-analytics.com/ga.js我什至看不到javascript,但是当我尝试在Firefox中访问它时,它可以工作并显示google analytics的javascript文件

Tried in IE 11 and Firefox 28.0 and its working,also done Deleting Cache and finding Adblock extension in Google chrome that doesnt exist. 在IE 11和Firefox 28.0中进行了尝试及其工作,还完成了删除缓存并在Google chrome中找到不存在的Adblock扩展。 Still didnt work out well 仍然没有做好

Can someone help me with this , and how to solve this issue 有人可以帮我这个问题,以及如何解决这个问题

BTW: This is the Code which produces the error: 顺便说一句:这是产生错误的代码:

var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview']];
    (function (d, t) {
        var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
        g.src = '@@|//www.google-analytics.com/ga.js';
        s.parentNode.insertBefore(g, s)
    } (document, 'script'));

That doesn't look like the standard tracking code for classic Google Analtyics. 看起来不像经典Google Analtyics的标准跟踪代码。 Have you tried getting the standard code from your Admin section? 您是否尝试过从“管理”部分获取标准代码?

Admin -> property -> tracking info -> Tracking code

Or you can get the code from Tracking Basics 或者您可以从跟踪基础获取代码

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXX-X']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 GET https://www.google-analytics.com/ga.js net :: ERR_TIMED_OUT - GET https://www.google-analytics.com/ga.js net::ERR_TIMED_OUT JavaScript获取请求错误:无法加载资源:net :: ERR_CONNECTION_RESET - JavaScript get request error: Failed to load resource: net::ERR_CONNECTION_RESET 得到 <URL> 网:: ERR_CONNECTION_RESET - GET <URL> net::ERR_CONNECTION_RESET 错误101(net :: ERR_CONNECTION_RESET):连接已重置 - Error 101 (net::ERR_CONNECTION_RESET): The connection was reset ASP.NET 4.6-ERR_CONNECTION_RESET - Asp.net 4.6 - ERR_CONNECTION_RESET 无法加载资源:net :: ERR_CONNECTION_REST - Failed to load resource: net:: ERR_CONNECTION_REST C#中的Google AnalyticsAPI - 请求执行失败:https://www.google.com/analytics/feeds/accounts/default - Google Analytics API in C# -Execution of request failed: https://www.google.com/analytics/feeds/accounts/default 对 ASP.NET MVC 控制器的 Ajax POST 调用给出 net::ERR_CONNECTION_RESET - Ajax POST call to ASP.NET MVC controller giving net::ERR_CONNECTION_RESET IIS Localhost Asp Net MVC应用程序抛出Erro 101(net :: ERR_CONNECTION_RESET) - IIS Localhost Asp Net MVC application trows Erro 101 (net::ERR_CONNECTION_RESET) 尝试访问ASP.NET Web App项目上的localhost时出现ERR_CONNECTION_RESET - ERR_CONNECTION_RESET when trying to access localhost on ASP.NET Web App project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM