ganalytics

A Google Analytics native extension for OpenFL
http://github.com/emibap/GAnalytics

To install, run:

haxelib install ganalytics 0.0.3 

See using Haxelib in Haxelib documentation for more information.

README.md

GAnalytics

A Google Analytics native extension for OpenFL

This OpenFL native extension allows you to integrate Google Analytics ( v3.03 ) into your OpenFL application. The supported compilation targets are iOS & Android

Installation

You can install it directly from haxelib:

haxelib install ganalytics

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 ganalytics path/to/your/downloaded/files

Recompiling

lime rebuild ganalytics ios

or
lime rebuild ganalytics android

Usage

Just call the public methods on the GAnalytics class.

Baisc reference

First start the session via :

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

Tracking a screen view :

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

Tracking an event :

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

For more advance methods just take a look a the GAnalytics class. All the Google Analytics V3 methods are supported( timing, metric , social , dimension... )

This project was Originally forked from HypGA (Hyperfiction) hyperfiction.fr

License

This work is under BSD simplified License.

Contributors
emibap
Version
0.0.3
Published
4 years ago
License
BSD

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github