谷歌异步分析和Flash AS2

谷歌异步分析和Flash AS2,flash,asynchronous,google-analytics,actionscript-2,Flash,Asynchronous,Google Analytics,Actionscript 2,好的,我在head末尾之前将异步代码插入到发布的html文件中 getURL("javascript:_gaq.push(['_trackPageview', '/place1/place2.html']); 在我的flash项目(在actionscript 2中)中,我在几个按钮中插入了as2代码,如下所示: on(release){ getURL("javascript:pageTracker._trackPageview('/place1/place2.html');");

好的,我在head末尾之前将异步代码插入到发布的html文件中

getURL("javascript:_gaq.push(['_trackPageview', '/place1/place2.html']);
在我的flash项目(在actionscript 2中)中,我在几个按钮中插入了as2代码,如下所示:

on(release){
    getURL("javascript:pageTracker._trackPageview('/place1/place2.html');");
    gotoAndPlay(frame);
}
getURL("javascript:_gaq.push(['_trackPageview', '/place1/place2.html']);
这样行不行,或者我需要更多的东西吗?

当然,我错了。
getURL("javascript:_gaq.push(['_trackPageview', '/place1/place2.html']);
我在按钮中使用了传统的分析代码,在html中使用了异步代码,因此swf和脚本之间没有通信。正确的代码如下所示:

getURL("javascript:_gaq.push(['_trackPageview', '/place1/place2.html']);