# Asynchronous Analytics and AS2

**URL:** <https://forum.kirupa.com/t/asynchronous-analytics-and-as2/312847>\
**Category:** flash\
**Created:** [August 13, 2010, 7:23pm UTC](https://forum.kirupa.com/t/asynchronous-analytics-and-as2/312847 "2010-08-13T19:23:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![javierpuga](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@javierpuga](https://forum.kirupa.com/u/javierpuga)\
**Post date:** [August 13, 2010, 7:23pm UTC](https://forum.kirupa.com/t/asynchronous-analytics-and-as2/312847/1 "2010-08-13T19:23:37Z")

</div>

I updated my site to the newer asynchronous google analytics code. Works fine in the html parts. When i try to add the code to my flash events (button clicks) i’m having some trouble. I was using:

on (release)  
{  
getURL(“javascript:\_gaq.push([’\_trackPageview’,’/\*\*\*\*\*\*’]);”);  
}

it works well, except for firefox, which actually follows the link (javascript:…) and gives me a blank error page. firefox takes the getURL call differently from other browsers. tested in chrome safari and opera and it’s only firefox.

So i read about using ExternalInterface.Call, i used it like this:

on (release)  
{  
ExternalInterface.call("\_gaq.push([’\_trackPageview’,’\*\*\*\*\*\*’])");  
}

but the clicks don’t show up in analytics.

am i doing the external infterface right? or is there a way to make firefox not actually open the getURL link?

also, this has to be in AS2.

Thanks
