簡體   English   中英

在TYPO3中缺少Google Analytics的HTTP響應

[英]Missing HTTP Response for Google Analytics in TYPO3

我在谷歌分析方面遇到了一些問題。 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>

親切的問候,

安德烈

Google Analytics 報價

缺少HTTP響應表示,雖然在頁面源中檢測到Google Analytics代碼,但腳本本身並未執行。 每次Google Analytics腳本執行時,我們都會希望向Google服務器發送跟蹤請求的HTTP響應。 這意味着Google Analytics代碼未在頁面上正確實施,也不會收集任何數據。 推薦的操作:通過刪除當前版本重新安裝Google Analytics代碼段,從Google Analytics界面復制新版本,然后將該版本插入網站。

檢查瀏覽器中是否列出了任何JS錯誤,並嘗試google提出的解決方案。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM