gpt4 book ai didi

javascript - TYPO3 中 Google Analytics 缺少 HTTP 响应

转载 作者:行者123 更新时间:2023-11-28 05:39:35 25 4
gpt4 key购买 nike

我对 Google Analytics 有一些疑问。 Ot 说缺少 http 响应。我正在使用 TYPO3 模板中的代码,它适用于整个网站,但不适用于我现在正在处理的页面。那么你有什么想法,为什么我会这样?

以下是该页面的链接: http://www.operation-karriere.de/index.php?id=241

这是我页面上的代码。

<script  type="text/javascript">
var gaProperty = 'UA-11409155-21';
var disableStr = 'ga-disable-' + gaProperty;
if (document.cookie.indexOf(disableStr + '=true') > -1) {
window[disableStr] = true;
}
function gaOptout() {
document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/';
window[disableStr] = true;
}
</script>
<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-11409155-21', 'auto');
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');
</script>

亲切的问候,

安德烈

最佳答案

谷歌分析quotes

Missing HTTP Response denotes that, while the Google Analytics code was detected in the page source, the script itself did not execute. Each time the Google Analytics script executes, we expect an HTTP Response carrying the tracking request to Google’s servers. This means that the Google Analytics code is not implemented properly on the page and no data will be collected. Recommended Action: Reinstall the Google Analytics snippet by removing the current iteration, copy a new version from the Analytics interface, and insert that version into the site.

检查您的浏览器中是否列出了任何 JS 错误,并尝试 Google 提出的解决方案。

关于javascript - TYPO3 中 Google Analytics 缺少 HTTP 响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39040587/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com