Air Native Extension for Apsalar analytics on iOS & Android This is an Air native extension for Apsalar analytics on the iOS and Android platforms. VersionThis 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. Binary filesThe 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). Using the extensionStart an Apsalar sessionAt 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. Start an Apsalar session with an opening url (iOS only)- Apsalar.startSession( "your api key", "your api secret", "opening url" );
复制代码Th eopening url is the url that directed iOS to open your app. Log a simple eventYou may then log events with Apsalar like this - Apsalar.logEvent( "User did something" );
复制代码 Log an event with parametersYou 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 } );
复制代码 End an Apsalar sessionEnds the current session. DevelopersLicenseThis project is licensed under the BSD license
相关链接:
https://github.com/StickSports/Apsalar-ANE
|