當前位置: 首頁>>代碼示例>>Java>>正文


Java EasyTracker.send方法代碼示例

本文整理匯總了Java中com.google.analytics.tracking.android.EasyTracker.send方法的典型用法代碼示例。如果您正苦於以下問題:Java EasyTracker.send方法的具體用法?Java EasyTracker.send怎麽用?Java EasyTracker.send使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.google.analytics.tracking.android.EasyTracker的用法示例。


在下文中一共展示了EasyTracker.send方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: sendEzTrace

import com.google.analytics.tracking.android.EasyTracker; //導入方法依賴的package包/類
public static void sendEzTrace(EasyTracker easyTracker, String category, String action, String label, Long value) {
	// MapBuilder.createEvent().build() returns a Map of event fields and
	// values that are set and sent with the hit.
	easyTracker.send(MapBuilder
		      .createEvent(category,          // Event category (required)
		                   			 action,              // Event action (required)
		                   			 label,                 // Event label
		                   			 value)               // Event value
		      .build()
	);
}
 
開發者ID:Austin-Liang,項目名稱:OurDailyBread,代碼行數:12,代碼來源:Util.java

示例2: sendEzCustomMetric

import com.google.analytics.tracking.android.EasyTracker; //導入方法依賴的package包/類
public static void sendEzCustomMetric(EasyTracker easyTracker, String screenName, int index, String metricValue) {
	// Custom metric value sent is with this screen view.
	easyTracker.send(MapBuilder
	    .createAppView()
	    .set(Fields.SCREEN_NAME, screenName)
	    .set(Fields.customMetric(index), metricValue)
	    .build()
	);
}
 
開發者ID:Austin-Liang,項目名稱:OurDailyBread,代碼行數:10,代碼來源:Util.java

示例3: sendAnalyticsModeClickEvent

import com.google.analytics.tracking.android.EasyTracker; //導入方法依賴的package包/類
private void sendAnalyticsModeClickEvent(String mode) {
    EasyTracker easyTracker = EasyTracker.getInstance(activity);
    easyTracker.send(MapBuilder
            .createEvent("ui_action",     // Event category (required)
                    "mode_click",  // Event action (required)
                    mode,   // Event label
                    null)            // Event value
            .build()
    );
}
 
開發者ID:PavelKorolev,項目名稱:liquid-bear-android,代碼行數:11,代碼來源:ModeClickListener.java

示例4: infomGoogleAnalytics

import com.google.analytics.tracking.android.EasyTracker; //導入方法依賴的package包/類
public static void infomGoogleAnalytics(EasyTracker easyTracker,
		String category, String action, String label, long value) {
	if (VTULifeUtils.isProduction)
		easyTracker.send(MapBuilder.createEvent(category, action, label,
				value).build());
}
 
開發者ID:vishalvijay,項目名稱:vtu-life-android,代碼行數:7,代碼來源:GoogleAnalyticsManager.java

示例5: infomGoogleAnalytics

import com.google.analytics.tracking.android.EasyTracker; //導入方法依賴的package包/類
public static void infomGoogleAnalytics(EasyTracker easyTracker,
		String category, String action, String label, long value) {
	if (Utils.isProduction)
		easyTracker.send(MapBuilder.createEvent(category, action, label,
				value).build());
}
 
開發者ID:vishalvijay,項目名稱:mym-android,代碼行數:7,代碼來源:GoogleAnalyticsManager.java


注:本文中的com.google.analytics.tracking.android.EasyTracker.send方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。