Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google Analytics Realtime报告未显示GWT应用程序的任何数据_Gwt_Google Analytics_Google Drive Realtime Api - Fatal编程技术网

Google Analytics Realtime报告未显示GWT应用程序的任何数据

Google Analytics Realtime报告未显示GWT应用程序的任何数据,gwt,google-analytics,google-drive-realtime-api,Gwt,Google Analytics,Google Drive Realtime Api,我刚刚创建了一个用于跟踪我的GWT应用程序的帐户,并且正在添加跟踪代码,因此我正在寻找一些关于我的跟踪代码是否正常工作的实时反馈。我的应用程序不是公共的(部署在带有防火墙的本地机器上),在添加跟踪代码后,我没有看到任何javascripts错误。然而,当我在我的机器上点击我的网站时,实时报告中没有任何迹象表明有活跃的用户、查看的页面或任何数据。在我的应用程序html中,我有: <script type="text/javascript"> var _gaq = _ga

我刚刚创建了一个用于跟踪我的GWT应用程序的帐户,并且正在添加跟踪代码,因此我正在寻找一些关于我的跟踪代码是否正常工作的实时反馈。我的应用程序不是公共的(部署在带有防火墙的本地机器上),在添加跟踪代码后,我没有看到任何javascripts错误。然而,当我在我的机器上点击我的网站时,实时报告中没有任何迹象表明有活跃的用户、查看的页面或任何数据。在我的应用程序html中,我有:

<script type="text/javascript">


      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'Account number']);//I have real account number in my project
      _gaq.push(['_setSiteSpeedSampleRate', 0]);
      _gaq.push(['_trackPageView', 'name']);




      (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>

var _gaq=_gaq | |[];
_gaq.push([''u setAccount',Account number'])//我在我的项目中有真实的帐号
_gaq.push([''u setSiteSpeedSampleRate',0]);
_gaq.push([''u trackPageView',name']);
(功能(){
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);
})();
这至少可以为我设置页面浏览量跟踪


我假设Google Analytics不需要访问我的网站,因为是我发送的。然而,我对GWT和谷歌分析都是新手,所以我可能完全错了。请帮忙

尝试替换此行:

_gaq.push(['_trackPageView', 'name']);
通过这个:

_gaq.push(['_trackPageview', 'name']);
注意
\u trackPageview
中的小写“v”。方法名称区分大小写()