Please note that we are no longer able to support this project and are not contributing to it.
This is an Air native extension for Apsalar analytics on the iOS and Android platforms.
This is version 0.2.0 of this extension. The compiled extension contains version 6.0.1 of the Apsalar Analytics library for iOS and version 4.0.2 of the Apsalar Analytics library for Android.
The bin folder contains the compiled extension and the default swc, which can be used for local testing if required by your development environment (Flash Builder shouldn’t need it, but other IDEs may).
At its simplest, you initialize the extension with your api keys as follows
Apsalar.startSession( "your api key", "your api secret" );
You should only start the session once, after which you can log as many events as you wish.
Apsalar.startSession( "your api key", "your api secret", "opening url" );
Th eopening url is the url that directed iOS to open your app.
You may then log events with Apsalar like this
Apsalar.logEvent( "User did something" );
You can pass parameters through to a Apsalar event via a simple object, as follows
Apsalar.logEvent( "Screen resolution", { width : Capabilities.screenResolutionX, height : Capabilities.screenResolutionY, dpi : Capabilities.screenDPI } );
Ends the current session.
Apsalar.endSession();
This project is licensed under the BSD license