【光环助手V5.5.0】游戏单数据埋点(选择标签)https://git.ghzs.com/pm/halo-app-issues/-/issues/1549
This commit is contained in:
@ -1636,4 +1636,98 @@ object NewLogUtils {
|
||||
}
|
||||
log(json, "event", false)
|
||||
}
|
||||
|
||||
//进入游戏单广场
|
||||
fun logEnterGameCollectionSquare(entrance: String, forumName: String = "", title: String = "", id: String = "") {
|
||||
val json = json {
|
||||
"event" to "enter_game_collect_square"
|
||||
"entrance" to entrance
|
||||
"forum_name" to forumName
|
||||
"game_collect_title" to title
|
||||
"game_collect_id" to id
|
||||
"timestamp" to System.currentTimeMillis() / 1000
|
||||
parseAndPutMeta().invoke(this)
|
||||
}
|
||||
log(json, "event", false)
|
||||
}
|
||||
|
||||
//进入选择标签
|
||||
fun logEnterGameCollectionTag() {
|
||||
val json = json {
|
||||
"event" to "enter_game_collect_tag_location"
|
||||
"timestamp" to System.currentTimeMillis() / 1000
|
||||
parseAndPutMeta().invoke(this)
|
||||
}
|
||||
log(json, "event", false)
|
||||
}
|
||||
|
||||
//筛选游戏单标签
|
||||
fun logFilterGameCollectionTag(tagCategory: String, tagName: String) {
|
||||
val json = json {
|
||||
"event" to "filter_game_collect_tag"
|
||||
"filter_tag_category" to tagCategory
|
||||
"filter_tag_name" to tagName
|
||||
"timestamp" to System.currentTimeMillis() / 1000
|
||||
parseAndPutMeta().invoke(this)
|
||||
}
|
||||
log(json, "event", false)
|
||||
}
|
||||
|
||||
//点击安利墙卡片
|
||||
fun logClickGameCollectionAmway() {
|
||||
val json = json {
|
||||
"event" to "click_game_collect_recommend_card"
|
||||
"timestamp" to System.currentTimeMillis() / 1000
|
||||
parseAndPutMeta().invoke(this)
|
||||
}
|
||||
log(json, "event", false)
|
||||
}
|
||||
|
||||
//进入安利墙
|
||||
fun logEnterGameCollectionAmway() {
|
||||
val json = json {
|
||||
"event" to "enter_game_collect_recommend_card"
|
||||
"timestamp" to System.currentTimeMillis() / 1000
|
||||
parseAndPutMeta().invoke(this)
|
||||
}
|
||||
log(json, "event", false)
|
||||
}
|
||||
|
||||
//点击卡片的游戏icon
|
||||
fun logClickGameCollectionGameIcon(title: String, id: String, gameName: String, gameId: String) {
|
||||
val json = json {
|
||||
"event" to "click_game_collect_recommend_card_icon"
|
||||
"game_collect_title" to title
|
||||
"game_collect_id" to id
|
||||
"game_name" to gameName
|
||||
"game_id" to gameId
|
||||
"timestamp" to System.currentTimeMillis() / 1000
|
||||
parseAndPutMeta().invoke(this)
|
||||
}
|
||||
log(json, "event", false)
|
||||
}
|
||||
|
||||
//点击卡片的作者信息
|
||||
fun logClickGameCollectionAuthor(title: String, id: String) {
|
||||
val json = json {
|
||||
"event" to "click_game_collect_recommend_card_author"
|
||||
"game_collect_title" to title
|
||||
"game_collect_id" to id
|
||||
"timestamp" to System.currentTimeMillis() / 1000
|
||||
parseAndPutMeta().invoke(this)
|
||||
}
|
||||
log(json, "event", false)
|
||||
}
|
||||
|
||||
//点击进入游戏单
|
||||
fun logEnterGameCollectionDetail(title: String, id: String) {
|
||||
val json = json {
|
||||
"event" to "enter_game_collect_detail"
|
||||
"game_collect_title" to title
|
||||
"game_collect_id" to id
|
||||
"timestamp" to System.currentTimeMillis() / 1000
|
||||
parseAndPutMeta().invoke(this)
|
||||
}
|
||||
log(json, "event", false)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user