2016-08-19 51 views
1

我在谷歌分析中遇到了一些問題。 Ot說有一個缺少的http響應。 我使用TYPO3模板中的代碼,它可以在整個站點上運行,但是不能在我現在正在使用的頁面上運行。所以你有什麼想法,爲什麼我可能會這樣?TYPO3中谷歌分析缺少HTTP響應

這裏是鏈接到頁面: 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> 

親切的問候,

安德烈

回答

0

谷歌Analytics(分析)quotes

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

檢查瀏覽器中是否存在任何JS錯誤並嘗試使用由Google提出的解決方案。

+0

但似乎沒有任何js錯誤 –

+0

這是一個鏈接到頁面:http://www.operation-karriere.de/index.php?id=241 –

+0

鉻插件「谷歌標籤助手」告訴我你應該把它移動到頭部。 https://support.google.com/tagassistant/answer/3059154?ref_topic=2947092#move_head –