|
@@ -3,6 +3,8 @@ package com.sheep.gamegroup.util;
|
|
|
|
|
|
|
|
import com.kfzs.duanduan.react.SharedPreferences;
|
|
import com.kfzs.duanduan.react.SharedPreferences;
|
|
|
import com.kfzs.duanduan.utils.ShareUtils;
|
|
import com.kfzs.duanduan.utils.ShareUtils;
|
|
|
|
|
+import com.sheep.gamegroup.statistics.AppStatistics;
|
|
|
|
|
+import com.sheep.gamegroup.statistics.AppStatisticsConfig;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.umeng.analytics.MobclickAgent;
|
|
import com.umeng.analytics.MobclickAgent;
|
|
|
|
|
|
|
@@ -17,85 +19,36 @@ public class UMConfigUtils {
|
|
|
|
|
|
|
|
public static class Event{
|
|
public static class Event{
|
|
|
//下载点击事件
|
|
//下载点击事件
|
|
|
- public static final String GAME_DOWNLOAD = "GameDownload";
|
|
|
|
|
|
|
+ public static final String GAME_DOWNLOAD = "GameDownload";
|
|
|
//广告点击事件
|
|
//广告点击事件
|
|
|
- public static final String BANNER_CLICK_HORIZONTAL = "BannerClickHorizontal";
|
|
|
|
|
|
|
+ public static final String BANNER_CLICK_HORIZONTAL = "BannerClickHorizontal";
|
|
|
//
|
|
//
|
|
|
- public static final String TAB_GAME = "tab_game";
|
|
|
|
|
- public static final String TAB_CATEGORY = "tab_category";
|
|
|
|
|
- public static final String TAB_SHEEP = "tab_sheep";
|
|
|
|
|
- public static final String TAB_JIEZHEWAN = "tab_jiezhewan";
|
|
|
|
|
- public static final String TAB_CREDITCARD = "tab_creditcard";
|
|
|
|
|
- public static final String SHEEP_TASK_TRY = "sheep_task_try";
|
|
|
|
|
- public static final String SHEEP_TASK_INVITE = "sheep_task_invite";
|
|
|
|
|
- public static final String SHEEP_TASK_LIE = "sheep_task_lie";
|
|
|
|
|
- public static final String SHEEP_TIXIAN = "sheep_tixian";
|
|
|
|
|
- public static final String TASK_DETAIL = "task_detail";
|
|
|
|
|
- public static final String TASK_DOWNLOAD = "task_download";
|
|
|
|
|
- public static final String TASK_UPLOAD_PICTURE = "task_upload_picture";
|
|
|
|
|
- public static final String USER_ACCOUNT_SAFE = "user_account_safe";
|
|
|
|
|
- public static final String USER_TASK_RECORD = "user_task_record";
|
|
|
|
|
- public static final String USER_TIXIAN_DETAIL = "user_tixian_detail";
|
|
|
|
|
- public static final String USER_BIND_PHONE = "user_bind_phone";
|
|
|
|
|
- public static final String USER_BIND_WEIXIN = "user_bind_weixin";
|
|
|
|
|
- public static final String USER_AUTHENTICATION = "user_authentication";
|
|
|
|
|
- public static final String USER_LOGOUT = "user_logout";
|
|
|
|
|
- public static final String GAME_SEARCH = "game_search";
|
|
|
|
|
- public static final String GAME_DOWNLOAD_MANAGER = "game_download_manager";
|
|
|
|
|
|
|
+ public static final String TAB_GAME = "tab_game";
|
|
|
|
|
+ public static final String TAB_CATEGORY = "tab_category";
|
|
|
|
|
+ public static final String TAB_SHEEP = "tab_sheep";
|
|
|
|
|
+ public static final String TAB_JIEZHEWAN = "tab_jiezhewan";
|
|
|
|
|
+ public static final String TAB_CREDITCARD = "tab_creditcard";
|
|
|
|
|
+ public static final String SHEEP_TASK_TRY = "sheep_task_try";
|
|
|
|
|
+ public static final String SHEEP_TASK_INVITE = "sheep_task_invite";
|
|
|
|
|
+ public static final String SHEEP_TASK_LIE = "sheep_task_lie";
|
|
|
|
|
+ public static final String SHEEP_TIXIAN = "sheep_tixian";
|
|
|
|
|
+ public static final String TASK_DETAIL = "task_detail";
|
|
|
|
|
+ public static final String TASK_DOWNLOAD = "task_download";
|
|
|
|
|
+ public static final String TASK_UPLOAD_PICTURE = "task_upload_picture";
|
|
|
|
|
+ public static final String USER_ACCOUNT_SAFE = "user_account_safe";
|
|
|
|
|
+ public static final String USER_TASK_RECORD = "user_task_record";
|
|
|
|
|
+ public static final String USER_TIXIAN_DETAIL = "user_tixian_detail";
|
|
|
|
|
+ public static final String USER_BIND_PHONE = "user_bind_phone";
|
|
|
|
|
+ public static final String USER_BIND_WEIXIN = "user_bind_weixin";
|
|
|
|
|
+ public static final String USER_AUTHENTICATION = "user_authentication";
|
|
|
|
|
+ public static final String USER_LOGOUT = "user_logout";
|
|
|
|
|
+ public static final String GAME_SEARCH = "game_search";
|
|
|
|
|
+ public static final String GAME_DOWNLOAD_MANAGER = "game_download_manager";
|
|
|
|
|
+ public static final String TASK_ACCEPT = "task_accept";
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static class IntEvent{
|
|
|
|
|
- //游戏下载次数
|
|
|
|
|
- public static final int game_download = 1000;
|
|
|
|
|
- //广告点击次数
|
|
|
|
|
- public static final int banner_click_horizontal = 1001;
|
|
|
|
|
- //游戏页签
|
|
|
|
|
- public static final int tab_game = 1002;
|
|
|
|
|
- //分类页签
|
|
|
|
|
- public static final int tab_category = 1003;
|
|
|
|
|
- //小绵羊页签
|
|
|
|
|
- public static final int tab_sheep = 1004;
|
|
|
|
|
- //借着玩页签
|
|
|
|
|
- public static final int tab_jiezhewan = 1005;
|
|
|
|
|
- //信用卡页签
|
|
|
|
|
- public static final int tab_creditcard = 1006;
|
|
|
|
|
- //试玩赚钱
|
|
|
|
|
- public static final int sheep_task_try = 1007;
|
|
|
|
|
- //邀请赚钱
|
|
|
|
|
- public static final int sheep_task_invite = 1008;
|
|
|
|
|
- //躺着赚钱
|
|
|
|
|
- public static final int sheep_task_lie = 1009;
|
|
|
|
|
- //提现
|
|
|
|
|
- public static final int sheep_tixian = 1010;
|
|
|
|
|
- //任务详情
|
|
|
|
|
- public static final int task_detail = 1011;
|
|
|
|
|
- //任务详情中->下载游戏
|
|
|
|
|
- public static final int task_download = 1012;
|
|
|
|
|
- //任务详情中->上传截图
|
|
|
|
|
- public static final int task_upload_picture = 1013;
|
|
|
|
|
- //个人中心 -> 账号安全
|
|
|
|
|
- public static final int user_account_safe = 1014;
|
|
|
|
|
- //个人中心 -> 任务记录
|
|
|
|
|
- public static final int user_task_record = 1015;
|
|
|
|
|
- //个人中心 -> 提现明细
|
|
|
|
|
- public static final int user_tixian_detail = 1016;
|
|
|
|
|
- //账号安全 -> 绑定手机号(确定按钮)
|
|
|
|
|
- public static final int user_bind_phone = 1017;
|
|
|
|
|
- //账号安全 -> 绑定微信号(立即绑定按钮)
|
|
|
|
|
- public static final int user_bind_weixin = 1018;
|
|
|
|
|
- //账号安全 -> 实名认证(提交按钮)
|
|
|
|
|
- public static final int user_authentication = 1019;
|
|
|
|
|
- //账号安全 -> 退出登录按钮
|
|
|
|
|
- public static final int user_logout = 1020;
|
|
|
|
|
- //搜索界面-> 搜索按钮
|
|
|
|
|
- public static final int game_search = 1021;
|
|
|
|
|
- //主界面右上角 -> 下载管理按钮
|
|
|
|
|
- public static final int game_download_manager = 1022;
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
public static class Source{
|
|
public static class Source{
|
|
|
public static final String QQ = "QQ";
|
|
public static final String QQ = "QQ";
|
|
|
public static final String WECHAT = "wechat";
|
|
public static final String WECHAT = "wechat";
|
|
@@ -132,6 +85,57 @@ public class UMConfigUtils {
|
|
|
*/
|
|
*/
|
|
|
public static void onEvent(String event){
|
|
public static void onEvent(String event){
|
|
|
MobclickAgent.onEvent(SheepApp.mContext,event);
|
|
MobclickAgent.onEvent(SheepApp.mContext,event);
|
|
|
|
|
+ int subType = 0;
|
|
|
|
|
+ if(event.equals(Event.GAME_DOWNLOAD)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.game_download;
|
|
|
|
|
+ }else if(event.equals(Event.BANNER_CLICK_HORIZONTAL)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.banner_click_horizontal;
|
|
|
|
|
+ }else if(event.equals(Event.TAB_GAME)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.tab_game;
|
|
|
|
|
+ }else if(event.equals(Event.TAB_CATEGORY)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.tab_category;
|
|
|
|
|
+ }else if(event.equals(Event.TAB_SHEEP)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.tab_sheep;
|
|
|
|
|
+ }else if(event.equals(Event.TAB_JIEZHEWAN)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.tab_jiezhewan;
|
|
|
|
|
+ }else if(event.equals(Event.TAB_CREDITCARD)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.tab_creditcard;
|
|
|
|
|
+ }else if(event.equals(Event.SHEEP_TASK_TRY)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.sheep_task_try;
|
|
|
|
|
+ }else if(event.equals(Event.SHEEP_TASK_INVITE)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.sheep_task_invite;
|
|
|
|
|
+ }else if(event.equals(Event.SHEEP_TASK_LIE)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.sheep_task_lie;
|
|
|
|
|
+ }else if(event.equals(Event.SHEEP_TIXIAN)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.sheep_tixian;
|
|
|
|
|
+ }else if(event.equals(Event.TASK_DETAIL)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.task_detail;
|
|
|
|
|
+ }else if(event.equals(Event.TASK_DOWNLOAD)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.task_download;
|
|
|
|
|
+ }else if(event.equals(Event.TASK_UPLOAD_PICTURE)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.task_upload_picture;
|
|
|
|
|
+ }else if(event.equals(Event.USER_ACCOUNT_SAFE)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.user_account_safe;
|
|
|
|
|
+ }else if(event.equals(Event.USER_TASK_RECORD)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.user_task_record;
|
|
|
|
|
+ }else if(event.equals(Event.USER_TIXIAN_DETAIL)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.user_tixian_detail;
|
|
|
|
|
+ }else if(event.equals(Event.USER_BIND_PHONE)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.user_bind_phone;
|
|
|
|
|
+ }else if(event.equals(Event.USER_BIND_WEIXIN)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.user_bind_weixin;
|
|
|
|
|
+ }else if(event.equals(Event.USER_AUTHENTICATION)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.user_authentication;
|
|
|
|
|
+ }else if(event.equals(Event.USER_LOGOUT)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.user_logout;
|
|
|
|
|
+ }else if(event.equals(Event.GAME_SEARCH)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.game_search;
|
|
|
|
|
+ }else if(event.equals(Event.GAME_DOWNLOAD_MANAGER)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.game_download_manager;
|
|
|
|
|
+ }else if(event.equals(Event.GAME_DOWNLOAD)){
|
|
|
|
|
+ subType = AppStatisticsConfig.SubType.game_download;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|