Commit 8280cdf8 by 霍志良

feat:埋点添加

parent 400f50ff
...@@ -318,6 +318,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon ...@@ -318,6 +318,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
.inflate(R.layout.consultant_item_expert_hot_search, flHotSearch, false) .inflate(R.layout.consultant_item_expert_hot_search, flHotSearch, false)
view.tvHotSearch.text = wordList[index].word view.tvHotSearch.text = wordList[index].word
view.setOnClickListener { view.setOnClickListener {
ActionCountUtils.count(HOT_SEARCH_DOCTOR_NAME, wordList[index].word!!, "热门搜索")
getSearchWords(wordList[index].word!!, true) getSearchWords(wordList[index].word!!, true)
} }
flHotSearch.addView(view) flHotSearch.addView(view)
...@@ -360,6 +361,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon ...@@ -360,6 +361,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
} }
} }
view.setOnClickListener { view.setOnClickListener {
ActionCountUtils.count(HOT_SEARCH_DOCTOR_NAME, etSearch.text.toString(), "热门专家")
getSearchWords(etSearch.text.toString(), true) getSearchWords(etSearch.text.toString(), true)
} }
flHotExpert.addView(view) flHotExpert.addView(view)
...@@ -422,6 +424,8 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon ...@@ -422,6 +424,8 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
break break
} }
view.setOnClickListener { view.setOnClickListener {
//历史搜索
ActionCountUtils.count(HOT_SEARCH_DOCTOR_NAME, historyStr, "历史搜索")
getSearchWords(historyStr, true) getSearchWords(historyStr, true)
} }
fl_search_history.addView(view) fl_search_history.addView(view)
......
...@@ -56,10 +56,16 @@ class ConsultBIConstants { ...@@ -56,10 +56,16 @@ class ConsultBIConstants {
const val YDL_USER_CONSULT_TYPE_CLICK: String = const val YDL_USER_CONSULT_TYPE_CLICK: String =
APP_CONSULT_LIST_PAGE + "ydl_user_consult_type_click"//咨询师顶部ICON 厌学专题、限时特惠、精神心理 APP_CONSULT_LIST_PAGE + "ydl_user_consult_type_click"//咨询师顶部ICON 厌学专题、限时特惠、精神心理
const val POSITION_CONSULT_COUNSELOR_CARD_CLICK="consult_counselor_card_click" // 咨询师列表点击position const val POSITION_CONSULT_COUNSELOR_CARD_CLICK =
const val POSITION_CHOICE_FILTER_CLICK="choice_filter_click" // 热门点击项position "consult_counselor_card_click" // 咨询师列表点击position
const val POSITION_TWO_CATEGORY_CLICK="two_category_click" // 八大类标签选择埋点 const val POSITION_CHOICE_FILTER_CLICK =
const val POSITION_GOODAT_CROWD_CLICK="goodat_crowd_click" // 擅长人群埋点 "choice_filter_click" // 热门点击项position
const val POSITION_TWO_CATEGORY_CLICK =
"two_category_click" // 八大类标签选择埋点
const val POSITION_GOODAT_CROWD_CLICK =
"goodat_crowd_click" // 擅长人群埋点
const val SEARCH_BANNERWORD_CLICK =
"$PART_ID_YDL_USER_MAIN_PAGE|search_bannerword_click" //历史搜索、热门搜索、本周热门专家搜索
} }
} }
class ConsultSearchListEvent { class ConsultSearchListEvent {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment