Package com.google.analytics.tracking.android

Examples of com.google.analytics.tracking.android.Tracker


  if (! trackerStarted ) {
            callbackContext.error("Tracker not started");
      return;
  }

        Tracker tracker = GoogleAnalytics.getInstance(this.cordova.getActivity()).getDefaultTracker();
        addCustomDimensionsToTracker(tracker);

        if (null != screenname && screenname.length() > 0) {
            tracker.set(Fields.SCREEN_NAME, screenname);
            tracker.send(MapBuilder
              .createAppView()
              .build()
            );
            callbackContext.success("Track Screen: " + screenname);
        } else {
View Full Code Here


      callbackContext.error("Tracker not started");
      return;
  }


        Tracker tracker = GoogleAnalytics.getInstance(this.cordova.getActivity()).getDefaultTracker();
        addCustomDimensionsToTracker(tracker);

        if (null != category && category.length() > 0) {
            tracker.send(MapBuilder
                .createEvent(category, action, label, value)
                .build()
            );
            callbackContext.success("Track Event: " + category);
        } else {
View Full Code Here

        if (!trackerStarted) {
            callbackContext.error("Tracker not started");
            return;
        }

        Tracker tracker = GoogleAnalytics.getInstance(this.cordova.getActivity()).getDefaultTracker();
        addCustomDimensionsToTracker(tracker);

        if (null != id && id.length() > 0) {
            tracker.send(MapBuilder
                .createTransaction(id, affiliation, revenue, tax, shipping, currencyCode)
                .build()
            );
            callbackContext.success("Add Transaction: " + id);
        } else {
View Full Code Here

        if (!trackerStarted) {
            callbackContext.error("Tracker not started");
            return;
        }

        Tracker tracker = GoogleAnalytics.getInstance(this.cordova.getActivity()).getDefaultTracker();
        addCustomDimensionsToTracker(tracker);

        if (null != id && id.length() > 0) {
            tracker.send(MapBuilder
                .createItem(id, name, sku, category, price, quantity, currencyCode)
                .build()
            );
            callbackContext.success("Add Transaction Item: " + id);
        } else {
View Full Code Here

        if (! trackerStarted ) {
            callbackContext.error("Tracker not started");
            return;
        }

        Tracker tracker = GoogleAnalytics.getInstance(this.cordova.getActivity()).getDefaultTracker();
        tracker.set("&uid", userId);
        callbackContext.success("Set user id" + userId);
    }
View Full Code Here

TOP

Related Classes of com.google.analytics.tracking.android.Tracker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.