Created
March 19, 2015 03:04
-
-
Save marchbold/238db58c4392e149f798 to your computer and use it in GitHub Desktop.
Flurry example to initialise, start a session and log an event
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
Flurry.init( "APPLICATION_KEY" ); | |
trace( "Flurry Supported: " + Flurry.isSupported ); | |
if (Flurry.isSupported) | |
{ | |
trace( "Flurry Version: " + Flurry.service.version ); | |
trace( "Flurry Agent Version: " + Flurry.service.analytics.getFlurryAgentVersion() ); | |
Flurry.service.analytics.initialiseWithKeys( "IOS_FLURRY_KEY", "ANDROID_FLURRY_KEY" ); | |
Flurry.service.analytics.startSession(); | |
Flurry.service.analytics.logEvent( "startup" ); | |
} | |
} | |
catch (e:Error) | |
{ | |
trace( "ERROR::"+e.message ); | |
} | |
// com.distriqt.Flurry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment