Commit 4337e855 by 霍志良

feat:升级m-consultant埋点

parent ce151fae
......@@ -6,7 +6,7 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide" : "0.0.49.13",
"m-consultant" : "0.0.59.93",
"m-consultant" : "0.0.59.94",
"m-fm" : "0.0.30.04",
"m-user" : "0.0.61.74",
"m-home" : "0.0.22.75",
......@@ -89,7 +89,7 @@ ext {
//第三步 若干
"m-confide" : "0.0.49.13",
"m-consultant" : "0.0.59.93",
"m-consultant" : "0.0.59.94",
"m-fm" : "0.0.30.04",
"m-user" : "0.0.61.73",
"m-home" : "0.0.22.75",
......
......@@ -7,6 +7,7 @@ import android.animation.PropertyValuesHolder
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.drm.DrmStore
import android.graphics.Typeface
import android.os.Build
import androidx.core.content.ContextCompat
......@@ -44,6 +45,7 @@ import com.yidianling.common.tools.RxImageTool
import com.yidianling.common.tools.ToastUtil
import com.yidianling.consultant.adapter.ExpertSearchAdapter
import com.yidianling.consultant.constants.ConsultBIConstants
import com.yidianling.consultant.constants.ConsultBIConstants.ConsultEvent.Companion.YDL_USER_CONSULT_SEARCH_CLICK
import com.yidianling.consultant.listener.OnCategoriesSelectedListener
import com.yidianling.consultant.listener.OnFilterConfirmListener
import com.yidianling.consultant.listener.OnSortItemSelectedListener
......@@ -979,6 +981,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
ConsultantIn.startP2PXiaoYi(this)
}
R.id.rl_search -> {
ActionCountUtils.count(YDL_USER_CONSULT_SEARCH_CLICK)
ARouter.getInstance()
.build("/consult/hot_search")
.withString(HOT_SEARCH_DOCTOR_NAME, tv_search_content.text.toString())
......
......@@ -62,6 +62,7 @@ import org.json.JSONObject
import java.util.*
import java.util.concurrent.Executors
import kotlin.collections.ArrayList
import kotlin.properties.Delegates
import kotlin.reflect.jvm.internal.impl.load.kotlin.JvmType
@Route(path = "/consultant/consultant")
......@@ -71,6 +72,8 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
SwipeRefreshLayout.OnRefreshListener {
private lateinit var mContext: Context
private lateinit var mActivity: FragmentActivity
var startTime by Delegates.notNull<Long>()
var endTime by Delegates.notNull<Long>()
override fun layoutResId(): Int {
return R.layout.consultant_activity_expert_search_list
......@@ -1524,11 +1527,16 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
override fun onResume() {
super.onResume()
startTime=System.currentTimeMillis()
refresh(false)
ActionCountUtils.count(ConsultBIConstants.ConsultEvent.APP_CONSULT_LIST_PAGE_VISIT)
}
override fun onStop() {
super.onStop()
endTime=System.currentTimeMillis()
ActionCountUtils.count(ConsultBIConstants.ConsultEvent.YDL_USER_CONSULT_PAGE_STAY_VISIT,(endTime-startTime).toString())
}
override fun onDestroy() {
super.onDestroy()
ConsultAssistantDialogUtils.INSTANCE.resetStatus()
......
......@@ -24,39 +24,57 @@ class ConsultBIConstants {
//====================APP咨询列表页(app_consult_list_page)====================
class ConsultEvent {
companion object {
private const val APP_CONSULT_LIST_PAGE: String = "app_consult_list_page|"//APP咨询列表页 partId
const val APP_CONSULT_LIST_PAGE_VISIT: String = APP_CONSULT_LIST_PAGE + "app_consult_list_page_visit"//列表页浏览事件
const val APP_CONSULT_LIST_CONSULT_GUIDE_CLICK: String = APP_CONSULT_LIST_PAGE + "app_consult_list_consult_guide_click "//咨询指南
const val APP_CONSULT_LIST_ONLINE_CUSTOMER_CLICK: String = APP_CONSULT_LIST_PAGE + "app_consult_list_online_customer_click"//在线客服
const val APP_CONSULT_LIST_THEME_CLICK: String = APP_CONSULT_LIST_PAGE + "app_consult_list_theme_click "//主题全部
const val APP_CONSULT_LIST_AREA_CLICK: String = APP_CONSULT_LIST_PAGE + "app_consult_list_area_click"//地区各个地区
const val APP_CONSULT_LIST_SORT_CLICK: String = APP_CONSULT_LIST_PAGE + "app_consult_list_sort_click"//排序综合排序
const val APP_CONSULT_LIST_DOCTOR_CLICK: String = APP_CONSULT_LIST_PAGE + "app_consult_list_doctor_click"//每个咨询师页面点击
const val APP_CONSULT_LIST_CHAT_CLICK: String = APP_CONSULT_LIST_PAGE + "app_consult_list_chat_click"//每个咨询师私聊
private const val APP_CONSULT_LIST_PAGE: String =
"app_consult_list_page|"//APP咨询列表页 partId
const val APP_CONSULT_LIST_PAGE_VISIT: String =
APP_CONSULT_LIST_PAGE + "app_consult_list_page_visit"//列表页浏览事件
const val APP_CONSULT_LIST_CONSULT_GUIDE_CLICK: String =
APP_CONSULT_LIST_PAGE + "app_consult_list_consult_guide_click "//咨询指南
const val APP_CONSULT_LIST_ONLINE_CUSTOMER_CLICK: String =
APP_CONSULT_LIST_PAGE + "app_consult_list_online_customer_click"//在线客服
const val APP_CONSULT_LIST_THEME_CLICK: String =
APP_CONSULT_LIST_PAGE + "app_consult_list_theme_click "//主题全部
const val APP_CONSULT_LIST_AREA_CLICK: String =
APP_CONSULT_LIST_PAGE + "app_consult_list_area_click"//地区各个地区
const val APP_CONSULT_LIST_SORT_CLICK: String =
APP_CONSULT_LIST_PAGE + "app_consult_list_sort_click"//排序综合排序
const val APP_CONSULT_LIST_DOCTOR_CLICK: String =
APP_CONSULT_LIST_PAGE + "app_consult_list_doctor_click"//每个咨询师页面点击
const val APP_CONSULT_LIST_CHAT_CLICK: String =
APP_CONSULT_LIST_PAGE + "app_consult_list_chat_click"//每个咨询师私聊
const val YDL_USER_CONSULT_PAGE_STAY_VISIT: String =
APP_CONSULT_LIST_PAGE + "ydl_user_consult_page_stay_visit"//咨询师页面停留时长
const val YDL_USER_CONSULT_SEARCH_CLICK: String =
APP_CONSULT_LIST_PAGE + "ydl_user_consult_search_click"//咨询师页搜索框点击事件
const val YDL_USER_CONSULT_TYPE_CLICK: String =
APP_CONSULT_LIST_PAGE + "ydl_user_consult_type_click"//咨询师顶部ICON 厌学专题、限时特惠、精神心理
}
}
class ConsultSearchListEvent {
companion object {
private const val CONSULT_SEARCH_LIST_PAGE: String = "consul_search_list_page|"//APP咨询搜索列表页 partId
private const val CONSULT_SEARCH_LIST_PAGE: String =
"consul_search_list_page|"//APP咨询搜索列表页 partId
const val APP_CONSULT_SEARCH_LIST_PAGE_VISIT: String = CONSULT_SEARCH_LIST_PAGE + "consul_search_list_page_visit"//列表页浏览事件
const val APP_CONSULT_SEARCH_LIST_CONSULT_ITEM_CLICK: String = CONSULT_SEARCH_LIST_PAGE + "consult_search_list_doctor_click "//每个咨询师页面点击
const val APP_CONSULT_SEARCH_LIST_CHAT_CLICK: String = CONSULT_SEARCH_LIST_PAGE + "consult__search_list_chat_click"//每个咨询师私聊
const val APP_CONSULT_SEARCH_LIST_PAGE_VISIT: String =
CONSULT_SEARCH_LIST_PAGE + "consul_search_list_page_visit"//列表页浏览事件
const val APP_CONSULT_SEARCH_LIST_CONSULT_ITEM_CLICK: String =
CONSULT_SEARCH_LIST_PAGE + "consult_search_list_doctor_click "//每个咨询师页面点击
const val APP_CONSULT_SEARCH_LIST_CHAT_CLICK: String =
CONSULT_SEARCH_LIST_PAGE + "consult__search_list_chat_click"//每个咨询师私聊
}
}
class UserMainEvent {
companion object {
private const val YDL_USER_MAIN_PAGE: String = "ydl_user_main_page|"//壹点灵用户版首页 partId
private const val YDL_USER_MAIN_PAGE: String =
"ydl_user_main_page|"//壹点灵用户版首页 partId
const val YDL_USER_SEARCH_CLICK: String = YDL_USER_MAIN_PAGE + "ydl_user_search_click" //搜索栏
const val YDL_PRIVATE_CHAT_CLICK: String = YDL_USER_MAIN_PAGE + "private_chat_click" // 点击私聊按钮
const val YDL_USER_SEARCH_CLICK: String =
YDL_USER_MAIN_PAGE + "ydl_user_search_click" //搜索栏
const val YDL_PRIVATE_CHAT_CLICK: String =
YDL_USER_MAIN_PAGE + "private_chat_click" // 点击私聊按钮
}
}
}
\ No newline at end of file
......@@ -121,6 +121,7 @@ class ConsultAssistantDialogUtils private constructor() {
//获取用户uid
ActionCountUtils.count("main_page|main_daoyi_entry_click")
YdlBuryPointUtil.sendClick("home_page_assistant_click")
ActionCountUtils.count(ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_VISIT,"1")
ActionCountUtils.count(
ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_CLICK,
"1"
......@@ -159,6 +160,7 @@ class ConsultAssistantDialogUtils private constructor() {
if (!ConsultantIn.getUserImpl().loginByOneKeyLogin(activity, true)) {
return
}
ActionCountUtils.count(ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_VISIT,"17")
ActionCountUtils.count(
ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_CLICK,
"17"
......@@ -195,6 +197,7 @@ class ConsultAssistantDialogUtils private constructor() {
if (Utils.isFastClick()) {
return onClickAction()
}
ActionCountUtils.count(ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_VISIT,"4")
//获取用户uid
ActionCountUtils.count(
ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_CLICK,
......@@ -256,6 +259,7 @@ class ConsultAssistantDialogUtils private constructor() {
if (Utils.isFastClick()) {
return onClickAction()
}
ActionCountUtils.count(ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_VISIT,"6")
ActionCountUtils.count(
ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_CLICK,
"6"
......@@ -361,7 +365,7 @@ class ConsultAssistantDialogUtils private constructor() {
// 请求接口获取咨询助理的uid
getConsultAssistantUid(location, activity, null)
}
ActionCountUtils.count(ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_VISIT,location.toString())
ActionCountUtils.count(
ConsultBIConstants.POSITION_DAOYI_ADVERTISEMENT_CLICK,
location.toString()
......
......@@ -8,8 +8,10 @@ import android.widget.LinearLayout
import com.ydl.webview.H5Params
import com.ydl.webview.NewH5Activity
import com.ydl.ydl_image.module.GlideApp
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.yidianling.consultant.R
import com.yidianling.consultant.bean.ExpertSearchBigShotBean
import com.yidianling.consultant.constants.ConsultBIConstants.ConsultEvent.Companion.YDL_USER_CONSULT_TYPE_CLICK
import kotlinx.android.synthetic.main.consultant_expert_search_big_shot_one.view.*
class BigShotOneView : LinearLayout {
......@@ -50,6 +52,8 @@ class BigShotOneView : LinearLayout {
fun setUrl(bean: ExpertSearchBigShotBean) {
mContext?.let { GlideApp.with(it).load(bean.topicImages[0].imageUrl).into(consultant_one_img_1) }
consultant_one_img_1.setOnClickListener {
ActionCountUtils.count(YDL_USER_CONSULT_TYPE_CLICK,bean.specialTopicTitle)
bean.specialTopicTitle
val h5Params = H5Params(bean.specialTopicUrl, null)
NewH5Activity.start(context, h5Params)
}
......
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