[英]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.