Git Product home page Git Product logo

ane-flurry-analytics's Introduction

Air Native Extension for Flurry analytics on iOS & Android

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 Flurry analytics on the iOS and Android platforms.

Version

This is version 0.5.0 of this extension. The compiled extension contains version 4.4.0 of the Flurry Analytics library for iOS and version 3.4.0 of the Flurry Analytics library for Android.

If you wish to use a different version of the Flurry Analytics library, you may do so by following the instructions below to compile the extension.

Binary files

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).

Using the extension

Start a Flurry session

At its simplest, you initialize the extension with your application’s identifier as follows

Flurry.startSession( "your flurry id" );

You should only start the session once, after which you can log as many events as you wish.

End a Flurry session

On Android, this ends the current session (and sends the accumulated event data to Flurry). On iOS it does nothing, the session automatically ends when your app enters the background.

Flurry.endSession();

Log a simple event

You may then log events with Flurry like this

Flurry.logEvent( "User did something" );

Log an event with parameters

You can pass parameters through to a Flurry event via a simple object, as follows

Flurry.logEvent( "Screen resolution", { width : Capabilities.screenResolutionX, height : Capabilities.screenResolutionY, dpi : Capabilities.screenDPI } );

Log a timed event

Flurry will also log timed events. This is a two-step process. You first start the timed event.

Flurry.startTimedEvent( "User playing game" );

Then, later, you end the timed event.

Flurry.endTimedEvent( "User playing game" );

Log an error

You can also log errors with Flurry

Flurry.logError( "NullPointer", "Attempt to use a reference to a null pointer" );

More info

That’s just a starter. All the features of the Flurry api have been implemented. Read the documentation in the Actionscript source code for all the features.

Developers

License

This project is licensed under the BSD license

ane-flurry-analytics's People

Contributors

nickgrahamuk avatar richardlord avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.