ANE-Google-Analytics is a native extension to use Google Analytics on the iOS and Android platforms. Differently from other Google Analytics wrappers, this extension is not Javascript based, so it works with AIR apps. The extension follow closely the original Analytics SDK methods and functionalities, so it should be easy to use and understand.

Among other features, the extension allows the tracking of page views and events. All tracking is performed within the scope of a session, so the developer must explicitly start and stop the session. All tracking data must be sent while the session is active.

Sample

import eu.alebianco.air.extensions.analytics.GATracker;

if (GATracker.isSupported()) {
    var tracker:GATracker = GATracker.getInstance();
    tracker.startNewSession("UA-00000000-0", interval);
    tracker.trackPageView("/custom/view/url");
}
Air Native Extension, Android, iOS . URL.