Google Asynchronous Analytics and Flash AS2
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']);
精彩评论