Skip to content

Instantly share code, notes, and snippets.

@marchbold
Created March 19, 2015 03:04
Show Gist options
  • Save marchbold/238db58c4392e149f798 to your computer and use it in GitHub Desktop.
Save marchbold/238db58c4392e149f798 to your computer and use it in GitHub Desktop.
Flurry example to initialise, start a session and log an event
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