Wednesday, January 26, 2011

Access All Your Google Analytics Data in Flash/AIR Projects with ActionScript 3 Client Library

Access All Your Google Analytics Data in Flash/AIR Projects with ActionScript 3 Client Library:

google analytics logo Google Analytics blog introduced a new ActionScript 3 Client Library, this library provides a simple way to access your Analytics Data from both AIR Applications and Flash Player (though a proxy). The developers an easily integrate Google Analytics into their Flash/AIR projects with this AS3 library.

“Given the potential value of this library to many other developers, we decided to make it freely available along with its source code,”

says Denis Bulichenko, Director of Business Development at DENIVIP.

google-analytics-results

It’s very simple to embed Google Analytics data into your Application:

1. Download AS3 Google Analytics API library SWC

2. Include SWC library into your project

3. Import library packages

  1. // Main class
  2. import com.denivip.ga.APILoader;
  3. // Google Analytics Account
  4. import com.denivip.ga.GAAccount;
  5. // Dimensions
  6. import com.denivip.ga.dimensions.CampaignMediumDimension;
  7. import com.denivip.ga.dimensions.CampaignSourceDimension;
  8. // Metrics
  9. import com.denivip.ga.metrics.VisitorBouncesMetric;
  10. import com.denivip.ga.metrics.VisitorVisitsMetric;
  11. // Filters classes
  12. import com.denivip.ga.filter.Filter;
  13. import com.denivip.ga.filter.FilterItem;
  14. import com.denivip.ga.filter.FilterOperator;
  15. // View classes
  16. import com.denivip.ga.view.GAView;

4. Configure Google Analytics API request through APILoader class and initiate connection [...]

No comments:

Post a Comment