本文整理匯總了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()
);
}
示例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()
);
}
示例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()
);
}
示例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());
}
示例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());
}