Alain Hufkens {Rich Interactive Applications Developer}

28Apr/092

Tracking AIR applications with pubblegum

Logo-templateI don't have a lot of experience yet with tracking AIR applications developed with Flash or Flex. Adhese has a service called pubblegum that can be used directly from Flash without calling an external Javascript (which is the case with Google Analytics). So we decided to give it a try.

What exactly is pubblegum?

Whether it is Adobe® Flash®, Adobe® Air®, Microsoft® Silverlight®, Javascript or something as basic as an image. Pubblegum tracks your content in real-time from within the file and reports all available info, from custom interactions to URLs where your content was published.

Cool is that they have a specific API for AIR applications built in Actionscript 3 and the API also takes care of the fact that your application can be disconnected. If you want to use it, you can send them a mail to get a free trial. In our case we used the specific API for tracking user actions in the AIR application. And it is fairly easy to use. You only need to include the com.adhese.pubblegum.PubblegumAir class in your source code (a .swc file for Flex projects would also be nice guys) and write these two lines of code:

var api:PubblegumAir =
    new PubblegumAir("companyID", "campaignID", "creativeID", true);
api.action("action");

The first variable is provided by Adhese and should be your company name/identifier, the second and third parameter can be chosen freely. The last parameter specifies whether you are tracking an application. So true tells the API, that the client is an application.

That isn't all that bad is it, and on top of that you get a nice dashboard where you can analyze your results.

  • email
  • Add to favorites
  • RSS
  • Twitter
  • Facebook
  • Digg
  • del.icio.us
  • Reddit
  • StumbleUpon
  • LinkedIn
  • Google Bookmarks
  • Live
  • Netvibes
  • Technorati
  • Posterous
Filed under: air, flex Leave a comment
Comments (2) Trackbacks (2)
  1. @ultraky we use the @Pubblegum API for Adobe AIR to track the app usage. If you want to know more check it out here: http://bit.ly/7iFiA

    This comment was originally posted on Twitter

  2. We use @Pubblegum API for Adobe AIR to track the app usage. To know more check it out here: http://bit.ly/7iFiA (via @timybe) – Thanks guys

    This comment was originally posted on Twitter


Leave a comment