Commit 4fd92763 by 霍志良

feat:埋点

parent 2c6810f1
...@@ -6,11 +6,11 @@ ext { ...@@ -6,11 +6,11 @@ ext {
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
"m-confide" : "0.0.49.13", "m-confide" : "0.0.49.13",
"m-consultant" : "0.0.60.00", "m-consultant" : "0.0.60.01",
"m-fm" : "0.0.30.04", "m-fm" : "0.0.30.04",
"m-user" : "0.0.61.79", "m-user" : "0.0.61.81",
"m-home" : "0.0.22.80", "m-home" : "0.0.22.81",
"m-im" : "0.0.20.00", "m-im" : "0.0.20.04",
"m-dynamic" : "0.0.7.34", "m-dynamic" : "0.0.7.34",
"m-article" : "0.0.0.10", "m-article" : "0.0.0.10",
...@@ -89,11 +89,11 @@ ext { ...@@ -89,11 +89,11 @@ ext {
//第三步 若干 //第三步 若干
"m-confide" : "0.0.49.13", "m-confide" : "0.0.49.13",
"m-consultant" : "0.0.60.00", "m-consultant" : "0.0.60.01",
"m-fm" : "0.0.30.04", "m-fm" : "0.0.30.04",
"m-user" : "0.0.61.79", "m-user" : "0.0.61.81",
"m-home" : "0.0.22.80", "m-home" : "0.0.22.81",
"m-im" : "0.0.20.00", "m-im" : "0.0.20.04",
"m-dynamic" : "0.0.7.34", "m-dynamic" : "0.0.7.34",
"m-article" : "0.0.0.8", "m-article" : "0.0.0.8",
......
...@@ -329,7 +329,6 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres ...@@ -329,7 +329,6 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
super.setUserVisibleHint(isVisibleToUser) super.setUserVisibleHint(isVisibleToUser)
if (isVisibleToUser && isResumed) { if (isVisibleToUser && isResumed) {
startTime=System.currentTimeMillis() startTime=System.currentTimeMillis()
ActionCountUtils.count(ConsultBIConstants.ConsultEvent.APP_CONSULT_LIST_PAGE_VISIT)
showConsultAssistantDialog() showConsultAssistantDialog()
} else { } else {
hideConsultAssistantDialog() hideConsultAssistantDialog()
...@@ -1534,6 +1533,8 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres ...@@ -1534,6 +1533,8 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
override fun onResume() { override fun onResume() {
super.onResume() super.onResume()
refresh(false) refresh(false)
ActionCountUtils.count(ConsultBIConstants.ConsultEvent.APP_CONSULT_LIST_PAGE_VISIT)
ActionCountUtils.count("daoyi_advertisement_page|daoyi_advertisement_visit","6")
} }
override fun onDestroy() { override fun onDestroy() {
......
...@@ -344,7 +344,6 @@ class ConsultAssistantDialogUtils private constructor() { ...@@ -344,7 +344,6 @@ class ConsultAssistantDialogUtils private constructor() {
// 请求接口获取咨询助理的uid // 请求接口获取咨询助理的uid
getConsultAssistantUid(location, activity, null) getConsultAssistantUid(location, activity, null)
} }
ActionCountUtils.count(ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_VISIT,location.toString())
ActionCountUtils.count( ActionCountUtils.count(
ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_CLICK, ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_CLICK,
location.toString() location.toString()
......
...@@ -38,7 +38,7 @@ class HomeBIConstants { ...@@ -38,7 +38,7 @@ class HomeBIConstants {
const val YDL_PRIVATE_CHAT_CLICK: String = YDL_USER_MAIN_PAGE + "private_chat_click" // 首页咨询分类点击私聊按钮 const val YDL_PRIVATE_CHAT_CLICK: String = YDL_USER_MAIN_PAGE + "private_chat_click" // 首页咨询分类点击私聊按钮
const val YDL_HOME_DWELL_TIME: String = YDL_USER_MAIN_PAGE + "ydl_user_main_page_stay_visit" // 首页停留时长 const val YDL_HOME_DWELL_TIME: String = YDL_USER_MAIN_PAGE + "ydl_user_main_page_stay_visit" // 首页停留时长
const val YDL_HOME_ZHUMIANMINGXIANG: String = YDL_USER_MAIN_PAGE + "ydl_user_sleep_aid_more_click" // 首页助眠冥想 const val YDL_HOME_ZHUMIANMINGXIANG: String = YDL_USER_MAIN_PAGE + "ydl_user_sleep_aid_more_click" // 首页助眠冥想
const val YDL_HOME_ZHUMIANICON: String = YDL_USER_MAIN_PAGE + "ydl_user_listen_type_click" // 首页_助眠_icon const val YDL_HOME_ZHUMIANICON: String = YDL_USER_MAIN_PAGE + "ydl_user_sleep_aid_type_click" // 首页_助眠_icon
} }
......
...@@ -495,7 +495,6 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm ...@@ -495,7 +495,6 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm
super.setUserVisibleHint(isVisibleToUser) super.setUserVisibleHint(isVisibleToUser)
if (isVisibleToUser && isResumed) { if (isVisibleToUser && isResumed) {
startTime=System.currentTimeMillis() startTime=System.currentTimeMillis()
ActionCountUtils.count(HomeBIConstants.YDL_USER_MAIN_PAGE_VISIT)
showConsultAssistantDialog() showConsultAssistantDialog()
} else { } else {
hideConsultAssistantDialog() hideConsultAssistantDialog()
...@@ -527,7 +526,8 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm ...@@ -527,7 +526,8 @@ open class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterIm
mPresenter?.getConsultData(consultLastSelectType, consultLastSelectPosition) mPresenter?.getConsultData(consultLastSelectType, consultLastSelectPosition)
mPresenter?.getConfideData(confideLastSelectType, confideLastSelectPosition) mPresenter?.getConfideData(confideLastSelectType, confideLastSelectPosition)
} }
ActionCountUtils.count(HomeBIConstants.YDL_USER_MAIN_PAGE_VISIT)
ActionCountUtils.count("daoyi_advertisement_page|daoyi_advertisement_visit","1")
showConsultAssistantDialog() showConsultAssistantDialog()
} }
} }
......
...@@ -85,10 +85,8 @@ class NewMultiMessageFragment : BaseFragment() { ...@@ -85,10 +85,8 @@ class NewMultiMessageFragment : BaseFragment() {
override fun onResume() { override fun onResume() {
super.onResume() super.onResume()
count("ydl_user_message_page|ydl_user_message_page_visit")
startTime = System.currentTimeMillis() startTime = System.currentTimeMillis()
getMsgData() getMsgData()
NIMClient.getService(MsgService::class.java).setChattingAccount( NIMClient.getService(MsgService::class.java).setChattingAccount(
MsgService.MSG_CHATTING_ACCOUNT_NONE, MsgService.MSG_CHATTING_ACCOUNT_NONE,
SessionTypeEnum.None SessionTypeEnum.None
...@@ -101,6 +99,13 @@ class NewMultiMessageFragment : BaseFragment() { ...@@ -101,6 +99,13 @@ class NewMultiMessageFragment : BaseFragment() {
MsgService.MSG_CHATTING_ACCOUNT_NONE, MsgService.MSG_CHATTING_ACCOUNT_NONE,
SessionTypeEnum.None SessionTypeEnum.None
) )
if (startTime!=0L){
endTime = System.currentTimeMillis()
count(
"ydl_user_message_page|ydl_user_message_page_stay_visit",
String.valueOf(endTime - startTime)
)
}
} }
override fun onDestroy() { override fun onDestroy() {
...@@ -112,8 +117,9 @@ class NewMultiMessageFragment : BaseFragment() { ...@@ -112,8 +117,9 @@ class NewMultiMessageFragment : BaseFragment() {
super.setUserVisibleHint(isVisibleToUser) super.setUserVisibleHint(isVisibleToUser)
if (isVisibleToUser && getIsViewCreated()) { if (isVisibleToUser && getIsViewCreated()) {
getMsgData() getMsgData()
count("ydl_user_message_page|ydl_user_message_page_visit")
}else{ }
if (!isVisibleToUser){
if (startTime!=0L){ if (startTime!=0L){
endTime = System.currentTimeMillis() endTime = System.currentTimeMillis()
count( count(
......
...@@ -219,7 +219,17 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR ...@@ -219,7 +219,17 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
} }
} }
@Override
public void onPause() {
super.onPause();
if (startTime!=0L){
endTime=System.currentTimeMillis();
ActionCountUtils.Companion.count(YDL_USER_MY_PAGE_STAY_VISIT,String.valueOf(endTime-startTime));
}
}
private void showConsultAssistantDialog() { private void showConsultAssistantDialog() {
ActionCountUtils.Companion.count("daoyi_advertisement_page|daoyi_advertisement_visit","4");
ModularServiceManager.INSTANCE.provide(IConsultantService.class).showConsultAssistantMineDialog(getActivity()); ModularServiceManager.INSTANCE.provide(IConsultantService.class).showConsultAssistantMineDialog(getActivity());
} }
......
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