Code Monkey home page Code Monkey logo

hypga's Introduction

HypGA

A Google Analytics native extension for NME

This NME native extension allows you to integrate Google Analytics ( v2 Beta 4 ) into your NME application. The supported compilation targets are iOS & Android

Installation

There is an include.nmml file and ndll are compiled for:

  • ios armv6
  • ios armv7
  • ios simulator
  • android armv6

Recompiling

For recompiling the native extensions just use the sh files contained in the project folder.

Usage

Just call the public methods on the HypGA class.

For iOS you need to link the Google Analytics class package to your XCode project. Just drag & drop on your project the HypGA folder. ( [your_export_folder]/ios/[ProjectName]/HypGA )

Baisc reference

First start the session via :

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

Tracking a page view :

HypGA.trackPageView( "your-page-code");

Tracking an event :

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

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

Made at Hyperfiction

hyperfiction.fr

Developed by : Johann Martinache @shoe_box

License

This work is under BSD simplified License.

hypga's People

Contributors

shoebox avatar louisbl avatar

Watchers

James Cloos 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.