Google统计信息无法正常使用

时间:2011-05-20 10:47:09

标签: jwplayer google-analytics-api

错误在哪里?

<div id="player"></div>
<script type="text/javascript" src="http://www.site.tv/jwplayer/swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject("http://www.site.tv/jwplayer/player.swf","mpl","425","317","9");
so.addParam("allowfullscreen","true");
so.addParam("allowscriptaccess","always");
so.addParam("wmode","opaque");
so.addVariable("controlbar","over");
so.addVariable('image','http://www.site.tv/images/bg_online_player.png');
so.addVariable('file','myStream');
so.addVariable('streamer','rtmp://xxx.xxx.xxx.xxx:1935/live/');
so.addVariable("plugins","gapro-1,adtvideo");
so.addVariable("adtvideo.config", "http://www.site.tv/ad/stream.xml");
so.addVariable("gapro.accountid","UA-xxxxxxxxx-x");
so.addVariable("gapro.idstring","streamer");
so.addVariable("gapro.trackstarts","true");
so.write("player");
</script>

1 个答案:

答案 0 :(得分:1)

你的代码中有一个错误。您应该使用管道符号

传递idstring

而不是so.addVariable("gapro.idstring","streamer"); 代码应如下

so.addVariable("gapro.idstring","||streamer||");