Reputation: 5828
I've been digging around for days looking for a way to do analytic tracking in a pure AS3 Adobe AIR for mobile project. Does anyone have a solution?
I've tried looking at gaforflash http://code.google.com/p/gaforflash/ but it looks like AIR isn't supported: http://code.google.com/p/gaforflash/wiki/Roadmap (see comments)
I've tried looking at http://www.appanalyticshq.com/ But this looks to be Flex dependent. http://getsatisfaction.com/app_analytics/topics/where_can_i_get_a_flash_pro_swc
I also looked at straight up Google Analytics http://code.google.com/apis/analytics/docs/tracking/home.html But it says on this page: http://code.google.com/apis/analytics/docs/tracking/flashTrackingIntro.html "Note: Currently, Flash tracking is available for any Flash content embedded in a web page. Tracking of data sent from Adobe Air, Shockwave, or via the Flash IDE (e.g. using Test Movie) is not supported at this time."
Anything else out there? Has anyone got this to work?
Upvotes: 4
Views: 2594
Reputation: 86
you can consider gaforflash obsolete and legacy
there is a new library
Google Universal Analytics for ActionScript 3.0
as3-universal-analytics v0.8
https://github.com/zwetan/as3-universal-analytics/releases/tag/0.8
full support for: Flash Player, AIR, Redtamarin
it just works everywhere or almost everywhere :)
for example
var config:Configuration = new Configuration();
config.forcePOST = true;
var tracker:WebTracker = new WebTracker( "UA-12345-67", config );
tracker.pageview( "/hello/world", "Hello World" );
Upvotes: 0
Reputation: 11
you can get free google analytics ane from http://www.devactionscript.com/. This one is based on the latest Google Analytics SDK v3
Upvotes: 1
Reputation: 5828
Thank Jevgenij and pkyeck.
I was able to get GA working with my project and I verified it is working on both iphones and on Android.
See this example: http://code.google.com/p/gaforflash/
Upvotes: 1