Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Creative tools for business
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Flash Developer Center /

Google Analytics for simplified tracking of rich media websites

by Nick Mihailovski

Nick Mihailovski

Created

22 December 2008

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
Flash Professional Flex testing

Requirements

User level

Intermediate

Required products

  • Flash Professional (Download trial)
  • Flash Builder (Download trial)

Working at Google over the past couple of years, I have had the opportunity to help many of our top clients implement Google Analytics on their web properties. This free website statistics service from Google helps website owners identify and analyze customer traffic and user trends on their sites.

One of the most common implementation challenges, however, has been tracking rich content inside SWF files on their pages. In the past, such tracking was not provided out of the box; every implementation had to be customized. Moreover, there was a lack of standards—and new developers who tracked Flash Player usage had to create their own processes to get it working.

With Google Analytics Tracking for Adobe Flash, tracking rich content on websites has never been simpler.

What it's all about

Google Analytics Tracking for Flash is a translation of the current Google Analytics tracking code into the ActionScript 3.0 programming language that dramatically simplifies the ability to track content authored in the Flash or Flex authoring environments, or in ActionScript 3.0. This new Flash tracking code provides all the rich features of the current JavaScript-based version, including campaign, page view, and event tracking, and can be used to track rich content, including embedded videos, branded microsites, and distributed widgets, such as online games.

Developers of rich Internet applications (RIAs) can now answer the following questions:

  • How many people have watched my video?
  • Am I developing the right creative that attracts new users?
  • How effective is my content at getting people to take action?

In the following video, Brett Crosby, Group Manager of Google Analytics, talks with Matthew McNeely, VP of engineering at Sprout—a company that helps advertisers design rich media content—about how Sprout has used Google Analytics Tracking for Flash to track distributed content on MySpace and iGoogle.

Supported platforms

We know there are many levels of experience in the Flash and Flex community, so we tried to make it easy for both non-technical designers as well as seasoned ActionScript programmers to take full advantage of Google Analytics Tracking for Flash. We've provided tracking libraries for both Flash Professional and Flex, which you can download:

  • Download gaforflash

The libraries include the following:

  • Flash visual component (see Figure 1)
  • Flash ActionScript 3.0 library
  • Flex MXML component
  • Flex ActionScript 3.0 library

You can learn more about how to use them through the developer documentation on Google Code.

Google Analytics component in Flash Professional
Figure 1. Google Analytics component in Flash Professional

Open development

We know that things change quickly online, and developers might want to review and improve the code. So we are providing our entire ActionScript 3.0 code base under the Apache License 2.0 code license.

For me, this is one of the most exciting aspects of this project. If you are a developer and want to improve the code's functionality, you can contribute to the code base. If you are a company that is running a content platform, such as Sprout mentioned in the video, you can seamlessly integrate the Google Analytics Tracking for Flash codebase into your existing architecture.

So while many features get launched only at the end of their development cycle, we see this as just the beginning.

Where to go from here

Please visit the project page to see an implementation overview, join a developer discussion group, and find reference documentation.

Sign up for a free Google Analytics account.

Tell us your success stories about how you've implemented Google Analytics Tracking for Adobe Flash.

Note: Google Analytics Tracking for Flash was an open collaboration of a number of very talented people across the globe. We'd like to personally thank our amazing third-party developers Zwetan Kjukov and Marc Alcaraz, who spent countless hours developing the code base. We'd also like to thank Matt Chotin, Puneet Goel, Rani Kumar, and Ajit Gosavi from Adobe who helped us overcome the obstacles of migrating to an all-ActionScript 3.0 environment.

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

More Like This

  • Setting up a Flash project for local and network playback
  • Making Flash websites searchable
  • Preventing publishing problems in Flash
  • Writing and running functional tests for Flash with Selenium RC
  • Creating an accessible animated presentation in Flash
  • Flash CS4 Missing Manual excerpts: Video, testing and debugging, optimization, and sound
  • Code in Flex, test in Flash
  • Four steps to improving your Flash interface testing
  • Understanding ActionScript 3 debugging in Flash

Flash User Forum

More
04/23/2012 Auto-Save and Auto-Recovery
04/23/2012 Open hyperlinks in new window/tab/pop-up ?
04/21/2012 PNG transparencies glitched
04/01/2010 Workaround for JSFL shape selection bug?

Flash Cookbooks

More
02/13/2012 Randomize an array
02/11/2012 How to create a Facebook fan page with Flash
02/08/2012 Digital Clock
01/18/2012 Recording webcam video & audio in a flv file on local drive

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement