Google analytics 没有数据进入谷歌分析
GA Pro不在我的网站上工作 下面是我网站中的脚本(GA帐户ID替换为XXXXXXXX)Google analytics 没有数据进入谷歌分析,google-analytics,Google Analytics,GA Pro不在我的网站上工作 下面是我网站中的脚本(GA帐户ID替换为XXXXXXXX) var s1=新的SWFObject(“/player/player.swf”、“single”、“320”、“260”、“7”); s1.addParam(“allowfullscreen”、“true”); s1.addParam(“allowscriptaccess”、“始终”); s1.addVariable(“文件”,“文件”); s1.addVariable(“image”,即“”); s1
var s1=新的SWFObject(“/player/player.swf”、“single”、“320”、“260”、“7”);
s1.addParam(“allowfullscreen”、“true”);
s1.addParam(“allowscriptaccess”、“始终”);
s1.addVariable(“文件”,“文件”);
s1.addVariable(“image”,即“”);
s1.添加变量(“插件”、“gapro-1”);
s1.添加变量(“gapro.accountid”,“UA-XXXXXXXX-1”);
s1.addVariable(“gapro.trackstarts”、“true”);
s1.addVariable(“gapro.trackpercentage”、“true”);
s1.addVariable(“gapro.tracktime”、“true”);
s1.addVariable(“gapro.idstring”,“name | | |”);
s1.编写(“玩家1”);
问题可能是因为您设置了gapro.idstring=| | name | | |,而这可能没有设置在播放列表中。您需要确保使用播放列表属性列表中的元素(http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12536/configuration-options#pl...)
此外,trackstarts、trackpercentage和tracktime可能会导致插件工作不正确,因此我们不建议将它们设置为“true”
最后,如果您想查看正在发送到Google的数据,请打开Firebug或Charles等代理,并在单击播放或完成视频后验证是否有请求。问题可能是因为您设置了gapro.idstring=| | name | |,这可能没有设置在播放列表中。您需要确保使用播放列表属性列表中的元素(http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12536/configuration-options#pl...) 此外,trackstarts、trackpercentage和tracktime可能会导致插件工作不正确,因此我们不建议将它们设置为“true”
最后,如果你想看到什么数据正在被发送到谷歌,打开Firebug或Charles这样的代理,并在单击播放或完成视频后验证是否有请求。这看起来不像是标准的GA代码,不是吗-
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXX-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>
var _gaq=_gaq | |[];
_gaq.push(['''u setAccount','UA-XXXXXXX-X']);
_gaq.push([''u trackPageview']);
(功能(){
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);
})();
这看起来不像标准的GA代码,是不是应该是这样-
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXX-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>
var _gaq=_gaq | |[];
_gaq.push(['''u setAccount','UA-XXXXXXX-X']);
_gaq.push([''u trackPageview']);
(功能(){
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);
})();
函数添加我的谷歌分析(){
?>
var _gaq=_gaq | |[];
_gaq.push(['''u setAccount','UA-XXXXXXXX']);
_gaq.push([''u trackPageview']);
(功能(){
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);
})();
函数添加我的谷歌分析(){
?>
var _gaq=_gaq | |[];
_gaq.push(['''u setAccount','UA-XXXXXXXX']);
_gaq.push([''u trackPageview']);
(功能(){
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);
})();
function add_my_google_analytics() {
?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX']);
_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>
<?php
}
add_action('wp_head', 'add_my_google_analytics',99);