本文整理汇总了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());
}