In line with my previous post on flash and google analytics by Tiago, i got a comment advising me about another great article by Matt, showing you an alternative code with AS2 and AS3 versions. He made the source available.
Using Google Analytics In Your Flash Projects
About the Author: Carlos Pinho
A father, a husband and a geek... Carlos was the founder of projects like The Tech Labs and Flash Enabled Blog. He is the founder of TekTuts He is passionate about technologies. Their main skills are in analytics, transport & logistics, business administration. He also writes about programming resources, trends, strategy and web development.