Commit 2c6810f1 by 霍志良

feat:埋点

parent b534c7aa
...@@ -6,12 +6,12 @@ ext { ...@@ -6,12 +6,12 @@ ext {
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
"m-confide" : "0.0.49.13", "m-confide" : "0.0.49.13",
"m-consultant" : "0.0.59.99", "m-consultant" : "0.0.60.00",
"m-fm" : "0.0.30.04", "m-fm" : "0.0.30.04",
"m-user" : "0.0.61.78", "m-user" : "0.0.61.79",
"m-home" : "0.0.22.80", "m-home" : "0.0.22.80",
"m-im" : "0.0.19.99", "m-im" : "0.0.20.00",
"m-dynamic" : "0.0.7.32", "m-dynamic" : "0.0.7.34",
"m-article" : "0.0.0.10", "m-article" : "0.0.0.10",
"m-muse" : "0.0.28.24", "m-muse" : "0.0.28.24",
...@@ -89,12 +89,12 @@ ext { ...@@ -89,12 +89,12 @@ ext {
//第三步 若干 //第三步 若干
"m-confide" : "0.0.49.13", "m-confide" : "0.0.49.13",
"m-consultant" : "0.0.59.99", "m-consultant" : "0.0.60.00",
"m-fm" : "0.0.30.04", "m-fm" : "0.0.30.04",
"m-user" : "0.0.61.78", "m-user" : "0.0.61.79",
"m-home" : "0.0.22.80", "m-home" : "0.0.22.80",
"m-im" : "0.0.19.99", "m-im" : "0.0.20.00",
"m-dynamic" : "0.0.7.32", "m-dynamic" : "0.0.7.34",
"m-article" : "0.0.0.8", "m-article" : "0.0.0.8",
"m-muse" : "0.0.28.24", "m-muse" : "0.0.28.24",
......
...@@ -333,9 +333,11 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres ...@@ -333,9 +333,11 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
showConsultAssistantDialog() showConsultAssistantDialog()
} else { } else {
hideConsultAssistantDialog() hideConsultAssistantDialog()
endTime=System.currentTimeMillis() if (startTime!=0L){
ActionCountUtils.count(ConsultBIConstants.ConsultEvent.YDL_USER_CONSULT_PAGE_STAY_VISIT,(endTime-startTime).toString()) endTime=System.currentTimeMillis()
} ActionCountUtils.count(ConsultBIConstants.ConsultEvent.YDL_USER_CONSULT_PAGE_STAY_VISIT,(endTime-startTime).toString())
}
}
if (isVisibleToUser && isResumed) { if (isVisibleToUser && isResumed) {
onResume() onResume()
} }
......
...@@ -21,6 +21,7 @@ import com.alibaba.android.arouter.facade.annotation.Route; ...@@ -21,6 +21,7 @@ import com.alibaba.android.arouter.facade.annotation.Route;
import com.ydl.ydl_image.module.GlideApp; import com.ydl.ydl_image.module.GlideApp;
import com.ydl.ydlcommon.base.BaseFragment; import com.ydl.ydlcommon.base.BaseFragment;
import com.ydl.ydlcommon.utils.BuryPointUtils; import com.ydl.ydlcommon.utils.BuryPointUtils;
import com.ydl.ydlcommon.utils.LogUtil;
import com.ydl.ydlcommon.utils.ScreenUtil; import com.ydl.ydlcommon.utils.ScreenUtil;
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils; import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils;
import com.yidianling.common.tools.RxDeviceTool; import com.yidianling.common.tools.RxDeviceTool;
...@@ -229,8 +230,10 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView, ...@@ -229,8 +230,10 @@ public class TrendsHomeFragment extends BaseFragment implements ITrendHomeView,
startTime=System.currentTimeMillis(); startTime=System.currentTimeMillis();
ActionCountUtils.Companion.count(YDL_USER_ASK_PAGE_VISIT); ActionCountUtils.Companion.count(YDL_USER_ASK_PAGE_VISIT);
} else { } else {
endTime=System.currentTimeMillis(); if (startTime!=0L){
ActionCountUtils.Companion.count(YDL_USER_ASK_PAGE_STAY_VISIT,String.valueOf(endTime-startTime)); endTime=System.currentTimeMillis();
ActionCountUtils.Companion.count(YDL_USER_ASK_PAGE_STAY_VISIT,String.valueOf(endTime-startTime));
}
} }
if (isVisibleToUser && isResumed()) { if (isVisibleToUser && isResumed()) {
onResume(); onResume();
......
...@@ -114,11 +114,13 @@ class NewMultiMessageFragment : BaseFragment() { ...@@ -114,11 +114,13 @@ class NewMultiMessageFragment : BaseFragment() {
getMsgData() getMsgData()
}else{ }else{
endTime = System.currentTimeMillis() if (startTime!=0L){
count( endTime = System.currentTimeMillis()
"ydl_user_message_page|ydl_user_message_page_stay_visit", count(
String.valueOf(endTime - startTime) "ydl_user_message_page|ydl_user_message_page_stay_visit",
) String.valueOf(endTime - startTime)
)
}
} }
} }
......
...@@ -208,8 +208,10 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR ...@@ -208,8 +208,10 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
ActionCountUtils.Companion.count(YDL_USER_MY_PAGE_VISIT); ActionCountUtils.Companion.count(YDL_USER_MY_PAGE_VISIT);
showConsultAssistantDialog(); showConsultAssistantDialog();
} else { } else {
endTime=System.currentTimeMillis(); if (startTime!=0L){
ActionCountUtils.Companion.count(YDL_USER_MY_PAGE_STAY_VISIT,String.valueOf(endTime-startTime)); endTime=System.currentTimeMillis();
ActionCountUtils.Companion.count(YDL_USER_MY_PAGE_STAY_VISIT,String.valueOf(endTime-startTime));
}
hideConsultAssistantDialog(); hideConsultAssistantDialog();
} }
if (isVisibleToUser && isResumed()) { if (isVisibleToUser && isResumed()) {
......
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