/ Web

Google Analytics and Flash

We ran into an interesting situation at $work with Google Analytics and Flash.

There are instructions here for calling Google Analytics from within a Flash movie. Unfortunately, the non-AS3 version of the instructions are no longer valid when the movie is played in Flash Player 9+.

Specifically, the instructions say to use code like this:

getURL("javascript:pageTracker._trackPageview('/folder/file.html');");

However, as of Flash Player 9 the getURL call no longer processes javascript: instructions, so instead you have to use an ExternalInterface call.

Google should update their instructions!

Bryan Fullerton

Bryan Fullerton

Just a middle-aged dude doing his best to survive. Geeky Internet things from remote professionally.

Read More