Implement Tracking

What you need before you can start

  • App Analytics SWC
    To be able to track your application using App Analytics you need to download the classs located here. You will need to include the SWC in your project  just as you would any other SWC. Note: you need to have an App Analytics account before you can download the SWC.
  • API Key
    Your API key is the key that allows you to access App Analytics. Your key is unique for you so don’t use someone else’s as it wont work. Your API Key can be found on the top nav under the page called “API Key”
  • App ID
    This is the other piece you will need to get App Analytics working in your application. The App ID can be found in the dashboard in the applications table by the app name.

Putting It together in AS3

  • Import App Analytics
    To Start App Analytics you first need to import the class at the top of you code

    import com.appAnalytics.AppAnalytis;
    import com.appAnalytics.AppAnalyticsType;
  • Start App Analytics
    To Initialize App Analytics just call:

    AppAnalytics.start('API Key','App ID')
  • Tracking an Item
    Once you have started a App Analytics (see above), you can call App Analytics from anywhere in your application with just one line of code:

    AppAnalytics.track("page/home", AirAnalyticsType.PAGE);

    This is a page track the first param is the action or the item you wish to track, and the second is a type. Types allow you define what exactly the content is. And as no two applicaions are the same we have allowed you to create you own type. But we have started you off with 4 common types that we think people will generally use in every application they are

    “page” for page view: AS3 Qucik Ref =

    AppAnalytics.PAGE

    “click” for any button click you want to track: AS3 Qucik Ref =

    AppAnalytics.CLICK

    “url” for those links to external URLs: AS3 Qucik Ref =

    AppAnalytics.URL

    “error” Yes… for those unwanted errors… now you can see how many and when the appear: AS3 Qucik Ref =

    AppAnalytics.ERROR

Getting Started video