Example #1
0
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   ActionBar actionBar = getActionBar();
   //		actionBar.setDisplayHomeAsUpEnabled(true);
   setContentView(R.layout.tsquare_main);
   overridePendingTransition(R.anim.fade, R.anim.hold);
   EasyTracker.getInstance(this).activityStart(this);
   GoogleAnalytics.getInstance(this).getTracker(MainActivity.TRACKING);
   Tracker tracker = GoogleAnalytics.getInstance(this).getTracker(MainActivity.TRACKING);
   tracker.send(
       MapBuilder.createAppView()
           .set(Fields.SCREEN_NAME, "T-Square Final " + actionBar.getTitle())
           .build());
 }
  public static void trackScreen(Context ctx, String screenName) {
    // May return null if EasyTracker has not yet been initialized with a property ID.
    Tracker easyTracker = EasyTracker.getInstance(ctx);

    // This screen name value will remain set on the tracker and sent with
    // hits until it is set to a new value or to null.
    // easyTracker.set( Fields.SCREEN_NAME, screenName );

    // Set dispatch period.
    easyTracker.send(
        MapBuilder.createAppView()
            .set(Fields.SCREEN_NAME, screenName)
            .set(Fields.HIT_TYPE, "appview")
            .build());
  }
  public void sendAnalyticData(String screen_name) {

    tracker.send(
        MapBuilder.createAppView().set(Fields.SCREEN_NAME, HIT_TYPE + ": " + screen_name).build());

    easyTracker.set(Fields.SCREEN_NAME, HIT_TYPE + ": " + screen_name);

    easyTracker.send(MapBuilder.createAppView().build());
  }
Example #4
0
  @Override
  public void onStart() {
    super.onStart();
    Log.d("haipn", "onstart marketplace");

    RequestQueue queue = MyVolley.getRequestQueue();
    GsonRequest<MpListCategories> myReq =
        new GsonRequest<MpListCategories>(
            Method.GET,
            Const.URL_LIST_CATEGORY,
            MpListCategories.class,
            createMyReqSuccessListener(),
            createMyReqErrorListener());
    queue.add(myReq);

    Tracker tracker = GoogleAnalytics.getInstance(getActivity()).getTracker(Const.GA_PROPERTY_ID);
    tracker.set(Fields.SCREEN_NAME, SCREEN_LABEL);
    tracker.send(MapBuilder.createAppView().build());
  }
  @Override
  public void onStart() {
    super.onStart();

    EasyTracker.getInstance().activityStart(this);

    final GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
    mTracker = analytics.getTracker(getString(R.string.ga_trackingId));
    mTracker.sendEvent("activity_phone", "start", "phone", 0l);

    GAServiceManager.getInstance().dispatch();
  }
  @Override
  public void onStart() {
    super.onStart();

    // Send a screwen view when the Activity is displayed to the user.
    if (ActivityName.equals("MilliyetTV")) {
      mGaTracker.sendView("MilliyetTVCategory - " + categoryIDtext);
      mGaTrackerGlobal.sendView("MilliyetTVCategory - " + categoryIDtext);
      //			logoImage.setImageResource(R.drawable.navigation_bar_logo_milliyettv);
    } else if (ActivityName.equals("SkorerTV")) {
      mGaTracker.sendView("SkorerTVCategory - " + categoryIDtext);
      mGaTrackerGlobal.sendView("SkorerTVCategory - " + categoryIDtext);
      //			logoImage.setImageResource(R.drawable.navigation_bar_logo_skorertv);
    } else {
      mGaTracker.sendView("GalleryCategory - " + categoryIDtext);
      mGaTrackerGlobal.sendView("GalleryCategory - " + categoryIDtext);
      //			logoImage.setImageResource(R.drawable.navigation_bar_logo);
    }

    FlurryAgent.onStartSession(this, "YEV3RXRLFB73A9IHAJEK");

    //	    if (ActivityName.equals("MilliyetTV"))
    //		{
    //	    	mGaTracker.sendView("/VideoCategory - "+categoryNameText);
    //		}
    //	    else
    //	    {
    //	    	mGaTracker.sendView("/GalleryCategory - "+categoryNameText);
    //	    }
  }
Example #7
0
  /** Refresh the fragment's list */
  public void refresh() {
    MobclickAgent.onEvent(this, "refresh");

    mGaTracker.sendEvent("ui_action", "button_press", "refresh_button", new Long(12345));
    /* Attach a rotating ImageView to the refresh item as an ActionView */
    LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    ImageView iv = (ImageView) inflater.inflate(R.layout.refresh_action_view, null);

    Animation rotation = AnimationUtils.loadAnimation(this, R.anim.clockwise_refresh);
    rotation.setRepeatCount(Animation.INFINITE);
    iv.startAnimation(rotation);

    mSGV.setVisibility(View.INVISIBLE);
    mProgress.setVisibility(View.VISIBLE);

    mRefreshItem.setActionView(iv);
    refreshGoodsItems();
  }
  @SuppressWarnings("deprecation")
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Log.d(TAG, "on create called...");
    activity = this;
    setContentView(R.layout.activity_show_reminder);
    // For hide Keyboard
    View view = (View) findViewById(R.id.reminders);
    Util.setupUI(view, this);
    EasyTracker.getInstance().setContext(getApplicationContext());
    tracker = EasyTracker.getTracker();
    tracker.trackView("List of Reminders Digital_Diary");
    getIds();
    addListener();
    Util.addGoogleAds(this);

    // setContentView(R.layout.custom_adapter);

  }
 @Override
 public void onStart() {
   super.onStart();
   mGaTracker.sendView(Constant.GA_PASS_CODE_SETTINGS_VIEW);
 }
 @Override
 public void onStart() {
   super.onStart();
   tracker.sendView("ActivityMain/FragmentLeaders/FragmentNameDialog");
 }
Example #11
0
 public static void SendTrackingEvent(String category, String action, String label, long value) {
   mTracker.send(MapBuilder.createEvent(category, action, label, null).build());
 }