Resolve GHZSCY-5310 "Feat/ pr"

This commit is contained in:
张晨
2024-07-25 16:58:02 +08:00
parent 7cf2adaa37
commit ce477e2bd0
28 changed files with 705 additions and 170 deletions

View File

@ -120,6 +120,9 @@ object RouteConsts {
const val push = "/push/push"
const val realName = "/realName/realName"
const val miniGameRecentPlayed = "/services/miniGameRecentPlayed"
const val sentry = "/sentry/sentry"
const val vaAd = "/vaAd/vaAd"

View File

@ -222,6 +222,10 @@ object SensorsBridge {
private const val EVENT_WECHAT_GAME_CLICK = "WechatGameClick"
private const val EVENT_GAME_LIST_COLLECTION_CLICK = "GameListCollectionClick"
private const val EVENT_CONTENT_CARD_CLICK = "ContentCardClick"
private const val EVENT_PLUGIN_AREA_CLICK = "PluginAreaClick"
private const val EVENT_CW_RECENTLY_PLAYED_CLICK = "CWRecentlyPlayedClick"
private const val EVENT_QQ_GAME_RECENTLY_PLAYED_CLICK = "QqGameRecentlyPlayedClick"
private const val EVENT_GAME_EXPLORE_CLICK = "GameExploreClick"
private const val EVENT_VIEW_CUSTOM_PAGE = "ViewCustomPage"
private const val EVENT_SUSPENDED_WINDOW_SHOW = "SuspendedWindowShow"
private const val EVENT_SUSPENDED_WINDOW_CLICK = "SuspendedWindowClick"
@ -3513,6 +3517,136 @@ object SensorsBridge {
trackEvent(EVENT_CONTENT_CARD_CLICK, json)
}
/**
* 插件化区域点击事件
*/
fun trackPluginAreaClick(
text: String,
bottomTab: String,
multiTabId: String,
multiTabName: String,
position: Int,
tabContent: String,
customPageId: String,
customPageName: String,
gameId: String,
gameName: String
) {
val json = json {
KEY_TEXT to text
KEY_BOTTOM_TAB to bottomTab
KEY_MULTI_TAB_ID to multiTabId
KEY_MULTI_TAB_NAME to multiTabName
KEY_POSITION to position
KEY_TAB_CONTENT to tabContent
KEY_CUSTOM_PAGE_ID to customPageId
KEY_CUSTOM_PAGE_NAME to customPageName
KEY_GAME_ID to gameId
KEY_GAME_NAME to gameName
}
trackEvent(EVENT_PLUGIN_AREA_CLICK, json)
}
/**
* 畅玩最近在玩点击事件
*/
fun trackCWRecentlyPlayedClick(
text: String,
bottomTab: String,
multiTabId: String,
multiTabName: String,
position: Int,
tabContent: String,
customPageId: String,
customPageName: String,
gameId: String,
gameName: String
) {
val json = json {
KEY_TEXT to text
KEY_BOTTOM_TAB to bottomTab
KEY_MULTI_TAB_ID to multiTabId
KEY_MULTI_TAB_NAME to multiTabName
KEY_POSITION to position
KEY_TAB_CONTENT to tabContent
KEY_CUSTOM_PAGE_ID to customPageId
KEY_CUSTOM_PAGE_NAME to customPageName
KEY_GAME_ID to gameId
KEY_GAME_NAME to gameName
}
trackEvent(EVENT_CW_RECENTLY_PLAYED_CLICK, json)
}
/**
* qq小游戏最近在玩点击事件
*/
fun trackQqGameRecentlyPlayedClick(
text: String,
bottomTab: String,
multiTabId: String,
multiTabName: String,
position: Int,
tabContent: String,
customPageId: String,
customPageName: String,
gameId: String,
gameName: String
) {
val json = json {
KEY_TEXT to text
KEY_BOTTOM_TAB to bottomTab
KEY_MULTI_TAB_ID to multiTabId
KEY_MULTI_TAB_NAME to multiTabName
KEY_POSITION to position
KEY_TAB_CONTENT to tabContent
KEY_CUSTOM_PAGE_ID to customPageId
KEY_CUSTOM_PAGE_NAME to customPageName
KEY_GAME_ID to gameId
KEY_GAME_NAME to gameName
}
trackEvent(EVENT_QQ_GAME_RECENTLY_PLAYED_CLICK, json)
}
/**
* 发现页点击事件
*/
fun trackGameExploreClick(
text: String,
location: String,
bottomTab: String = "",
multiTabId: String = "",
multiTabName: String = "",
position: Int = 0,
tabContent: String = "",
customPageId: String = "",
customPageName: String = "",
gameId: String = "",
gameName: String = "",
linkType: String = "",
linkId: String = "",
linkText: String = "",
buttonType: String = "",
) {
val json = json {
KEY_TEXT to text
KEY_LOCATION to location
KEY_BOTTOM_TAB to bottomTab
KEY_MULTI_TAB_ID to multiTabId
KEY_MULTI_TAB_NAME to multiTabName
KEY_POSITION to position
KEY_TAB_CONTENT to tabContent
KEY_CUSTOM_PAGE_ID to customPageId
KEY_CUSTOM_PAGE_NAME to customPageName
KEY_GAME_ID to gameId
KEY_GAME_NAME to gameName
KEY_LINK_TYPE to linkType
KEY_LINK_ID to linkId
KEY_LINK_TEXT to linkText
KEY_BUTTON_TYPE to buttonType
}
trackEvent(EVENT_GAME_EXPLORE_CLICK, json)
}
/**
* ViewCustomPage 自定义页面浏览事件
*/
@ -3702,14 +3836,16 @@ object SensorsBridge {
* 事件ID: PureModeDialogClick
* 事件名称: 纯净模式弹窗点击事件
*/
fun trackPureModeDialogClick(gameId: String,
gameName: String,
gameType: String,
buttonName: String,
isIgnored: Boolean,
linkId: String,
linkType: String,
linkText: String) {
fun trackPureModeDialogClick(
gameId: String,
gameName: String,
gameType: String,
buttonName: String,
isIgnored: Boolean,
linkId: String,
linkType: String,
linkText: String
) {
val json = json {
KEY_GAME_ID to gameId
KEY_GAME_NAME to gameName
@ -3740,14 +3876,16 @@ object SensorsBridge {
* 事件ID: AddedProtectionDialogClick
* 事件名称: 增强保护弹窗点击事件
*/
fun trackAddedProtectionDialogClick(gameId: String,
gameName: String,
gameType: String,
buttonName: String,
isIgnored: Boolean,
linkId: String,
linkType: String,
linkText: String) {
fun trackAddedProtectionDialogClick(
gameId: String,
gameName: String,
gameType: String,
buttonName: String,
isIgnored: Boolean,
linkId: String,
linkType: String,
linkText: String
) {
val json = json {
KEY_GAME_ID to gameId
KEY_GAME_NAME to gameName
@ -3760,6 +3898,7 @@ object SensorsBridge {
}
trackEvent(EVENT_ADDED_PROTECTION_DIALOG_CLICK, json)
}
/**
* 事件IDfollow_tab_filter_option_click
* 事件名称关注tab筛选项点击事件
@ -3867,6 +4006,7 @@ object SensorsBridge {
}
trackEvent(EVENT_FOLLOW_PAGE_USER_AND_FORUM_DATA_CLICK, json)
}
/**
* 事件IDJumpLandPageAddressDialogShow
* 事件名称:下载跳转第三方提示弹窗展示事件