Google Analytics and Flash

less than 1 minute read

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:


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!

Tags: ,