public static void onEventSearchTag(String tag) { LogGather.setLogMarker(LogGather.MARK.DURATION_EVENT, LOG_ZHUGE.EV_SEARCH_DO); Map<String, Object> keys = new HashMap<String, Object>(); keys.put(LOG_ZHUGE.EV_SEARCH_DO_KEY_HOT_TAG, tag); ZhugeSDK.getInstance() .onEvent(BaseApp.getApplication(), LOG_ZHUGE.EV_SEARCH_DO, new JSONObject(keys)); }
public static void onEventSearchSuggestion(String name, int pos) { LogGather.setLogMarker(LogGather.MARK.DURATION_EVENT, LOG_ZHUGE.EV_SEARCH_DO); Map<String, Object> keys = new HashMap<String, Object>(); keys.put(LOG_ZHUGE.EV_SEARCH_DO_KEY_USER_INPUT, name); keys.put(LOG_ZHUGE.EV_SEARCH_KEY_POSITION, pos); ZhugeSDK.getInstance() .onEvent(BaseApp.getApplication(), LOG_ZHUGE.EV_SEARCH_SUGGESTION, new JSONObject(keys)); }
/** * 标签-分类-项-点击 * * @param type * @param name */ public static void onEventTagSelect(String type, String name) { setLogMarker(MARK.DURATION_EVENT, LOG_ZHUGE.EV_TAG_RECIPE); Map<String, Object> keys = new HashMap<String, Object>(); keys.put(LOG_ZHUGE.EV_TAG_SELECT_KEY_TYPE, type); keys.put(LOG_ZHUGE.EV_TAG_KEY_NAME, name); ZhugeSDK.getInstance() .onEvent(BaseApp.getApplication(), LOG_ZHUGE.EV_TAG_SELECT, new JSONObject(keys)); }
/** * 标签-首页 * * @param tag */ public static void onEventTagRecommend(String tag) { setLogMarker(MARK.DURATION_EVENT, LOG_ZHUGE.EV_TAG_RECIPE); Map<String, Object> keys = new HashMap<String, Object>(); keys.put(LOG_ZHUGE.EV_TAG_KEY_NAME, tag); ZhugeSDK.getInstance() .onEvent(BaseApp.getApplication(), LOG_ZHUGE.EV_TAG_RECOMMEND, new JSONObject(keys)); }