drderico-ga 0.0.1

A Google Analytics native extension for OpenFL (Android)

Released 2015-09-22.

To install, run:

haxelib install drderico-ga 0.0.1

See using Haxelib in Haxelib documentation for more information.

Current version0.0.1
StatisticsInstalled 10 times


DrDerico Google Analytics

A Google Analytics native extension for OpenFL (only for Android yet)

This OpenFL native extension allows you to integrate Google Analytics into your OpenFL application. Google Analytics is stored in Google Play Services and linked automatically. The supported compilation target is Android yet.


You can install it directly from haxelib:

haxelib install drderico-ga

If you didn't install this extension via haxelib and or to have the latest dev version you can download this sources and set its folder as the source using the following command:

haxelib dev drderico-ga path/to/your/downloaded/files


lime rebuild drderico-ga android


Just call the public methods on the GAnalytics class.

Basic reference

First start the session via :

GAnalytics.init( "YOUR-UA-CODE" );

Tracking a screen view :

GAnalytics.trackScreen( "your-page-code" );

Tracking an event :

GAnalytics.trackEvent( "event-cat" , "event-action", "event-label", 1 );

Tracking a social :

GAnalytics.trackSocial( "social-network-name" , "event-action", "event-target" );

Sending a timing :

GAnalytics.sendTiming( "timing-cat" , 15000, "timing-name", "timing-label" );

For more advance methods just take a look a the GAnalytics.hx class.


This work is under BSD simplified License.