开发者

Google Asynchronous Analytics and Flash AS2

开发者 https://www.devze.com 2023-04-05 08:35 出处:网络
OK i inserted the asynchronous code in the published html file just before end of head In my flash project (which is in actionscript 2) i inserted the as2 code in several buttons like开发者_如何学Pyt

OK i inserted the asynchronous code in the published html file just before end of head

In my flash project (which is in actionscript 2) i inserted the as2 code in several buttons like开发者_如何学Python this:

on(release){
    getURL("javascript:pageTracker._trackPageview('/place1/place2.html');");
    gotoAndPlay(frame);
}

Shouldn't that work or i need something more?


Of course, my mistake. I used the code traditional analytics code in buttons and the asynchronous in html so no communication between swf and script. The right code is something like this:

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

精彩评论

暂无评论...
验证码 换一张
取 消