Hi,

I had some AS2 which used the "old style" urchinTracker code - it just did this:

   getURL("javascript:urchinTracker('/sas/flashbuttons/" + pName +"');");

So guessing you could wrap your pageTracker.trackPageView in a function like I did for the AS3 code and call that from your getURL function. I think the IE error I get - "_gat is undefined" is a common one with Google Analytics, many people have suggested initialising the pageTracker after a timeout or something - they say that the analytics script takes too long to load, or is cached, etc. hence the surround your script with try / catch. It does not seem to be an AS problem...

   Glen

John R. Sweeney Jr wrote:
I'll try a variant of this (this is written in AS2), but the first problem I
had was the catch that wrapped the pageView. On the PC side, it would change
the html page (which held my app) to a blank page with the word TRUE and the
URL was my trackEvent string.

That is what started me on this quest.

Maybe someone else had this too.


Thanks for the suggestion,
John


on 12/28/09 10:08 AM, Glen Pike at [email protected] wrote:

Hi,

  I had some problems with this, particularly with Internet Explorer -
here is my code that worked, although someone complained about errors in
IE7 or 8 about _gat being undefined - I guess you can hide these with a
try / catch block, but then it would be nice to know how to fix because
people still insist on using IE...:


John R. Sweeney Jr.
Interactive Multimedia Developer


OnDemand Interactive Inc
945 Washington Blvd.
Hoffman Estates, IL 60169
Office/Fax: 847.310.5959
Cellular: 847.651.4469
www.ondemandinteractive.com


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to