# 放置类卡牌游戏_埋点模版v1

## 事件数据

| 事件名 | 显示名 | 说明 | 标签 | 平台 | 属性 |
| --- | --- | --- | --- | --- | --- |
| ta_app_install | APP安装 |  |  |  |  |
| ta_app_start | APP启动 |  |  |  |  |
| ta_app_end | APP关闭 |  |  |  |  |
| ta_app_crash | APP崩溃 |  |  |  |  |
| new_device | 设备新增 | 设备首次激活时上报，使用【首次事件】 |  |  |  |
| register | 用户/账号注册 | (账号) 注册完成时上报 |  |  |  |
| login | 用户/账号登录 | (账号) 登录成功后上报 |  |  |  |
| logout | 用户/账号登出 | (账号) 登出成功后上报 |  |  |  |
| level_up | 升级 | 玩家/角色升级时上报 |  |  | level |
| vip_levelup | vip升级 | vip升级时上报 |  |  | vip_level |
| guide_complete | 完成新手引导 | 完成新手引导的每个步骤时上报 |  |  | guide_id, guide_step |
| monthpass_activate | 月卡激活 | 月卡激活时上报 |  |  | monthpass_id |
| pass_activate | 通行证激活 | 通行证激活时上报 |  |  | pass_id |
| init_order | 发起充值 | 发起充值时上报 |  |  | order_id, pay_amount, currency_type, payment_name, payment_num, payment_type, is_first |
| payment | 充值成功 | 充值成功时上报 |  |  | order_id, pay_amount, currency_type, payment_name, payment_num, payment_type, is_first |
| payment_fail | 充值失败 | 充值失败时上报 |  |  | order_id, pay_amount, currency_type, payment_name, payment_num, payment_type, is_first, fail_reason |
| shop_buy | 商城购买 | 在商城中购买商品后上报 |  |  | shop_id, item_id, item_num, item_price, cost_type, cost_amount |
| shop_refresh | 商城刷新 | 点击“刷新商城”时上报 |  |  | shop_id |
| resource_get | 资源获得 |  |  |  | change_reason, change_detail, resource_info, resource_info.item_id, resource_info.item_type, resource_info.change_num, resource_info.after_num |
| resource_cost | 资源消耗 |  |  |  | change_reason, change_detail, resource_info, resource_info.item_id, resource_info.item_type, resource_info.change_num, resource_info.after_num |
| task_complete | 完成任务 | 任务达成，领取奖励时上报 |  |  | task_type, task_id, task_name, active, achievement |
| activity_attend | 参与活动 | 领取活动奖励时上报 |  |  | activity_type, activity_id, activity_name, complete_rate |
| draw_card | 抽卡 | 抽卡时上报 |  |  | pond_id, draw_type, draw_num, card_list |
| buff_activate | buff激活 | buff激活时上报 |  |  | buff_id, buff_level, active_type |
| ability_enhance | 能力升级 | 能力升级时上报 |  |  | ability_id, ability_level |
| hero_levelup | 英雄升级 | 英雄升级时上报 |  |  | hero_id, hero_level, hero_star, hero_quality, hero_power |
| hero_starup | 英雄升星 | 英雄升星时上报 |  |  | hero_id, hero_level, hero_star, hero_quality, hero_power |
| hero_qualityup | 英雄进阶 | 英雄升阶时上报 |  |  | hero_id, hero_level, hero_star, hero_quality, hero_power |
| equipment_levelup | 装备强化 | 装备强化时上报 |  |  | equipment_id, equipment_level |
| main_start | 主线关卡战斗开始 | 主线剧情关卡战斗开始时上报 |  |  | main_id, is_first, total_power, hero_info, hero_info.index, hero_info.hero_id, hero_info.hero_level, hero_info.hero_star, hero_info.hero_quality, hero_info.hero_power, hero_info.hero_equipment_list |
| main_win | 主线关卡战斗胜利 | 主线剧情关卡战斗胜利后上报 |  |  | main_id, is_first, total_power, hero_info, hero_info.index, hero_info.hero_id, hero_info.hero_level, hero_info.hero_star, hero_info.hero_quality, hero_info.hero_power, hero_info.hero_equipment_list, result, duration |
| main_fail | 主线关卡战斗失败 | 主线剧情关卡战斗失败后上报 |  |  | main_id, is_first, total_power, hero_info, hero_info.index, hero_info.hero_id, hero_info.hero_level, hero_info.hero_star, hero_info.hero_quality, hero_info.hero_power, hero_info.hero_equipment_list, result, fail_reason, duration |
| battle_start | 副本挑战开始 | 副本挑战战斗开始时上报 |  |  | battle_type, battle_id, boss_id, boss_power, is_team, total_power, hero_info, hero_info.index, hero_info.hero_id, hero_info.hero_level, hero_info.hero_star, hero_info.hero_quality, hero_info.hero_power, hero_info.hero_equipment_list |
| battle_win | 副本挑战胜利 | 副本挑战战斗胜利后上报 |  |  | battle_type, battle_id, boss_id, boss_power, is_team, total_power, hero_info, hero_info.index, hero_info.hero_id, hero_info.hero_level, hero_info.hero_star, hero_info.hero_quality, hero_info.hero_power, hero_info.hero_equipment_list, result, duration |
| battle_fail | 副本挑战失败 | 副本挑战战斗失败后上报 |  |  | battle_type, battle_id, boss_id, boss_power, is_team, total_power, hero_info, hero_info.index, hero_info.hero_id, hero_info.hero_level, hero_info.hero_star, hero_info.hero_quality, hero_info.hero_power, hero_info.hero_equipment_list, result, boss_left_hp, fail_reason, duration |
| mopping_up | 扫荡 | 扫荡完成时上报 |  |  | battle_type, battle_id, mop_num |
| arena_start | 竞技场开始挑战 | 竞技场或其他pve玩法战斗开始时上报 |  |  | battle_type, battle_id, rival_id, rival_rank, is_bot, arena_rank, total_power, hero_info, hero_info.index, hero_info.hero_id, hero_info.hero_level, hero_info.hero_star, hero_info.hero_quality, hero_info.hero_power, hero_info.hero_equipment_list, rival_power, rival_info, rival_info.index, rival_info.hero_id, rival_info.hero_level, rival_info.hero_star, rival_info.hero_quality, rival_info.hero_power, rival_info.hero_equipment_list |
| arena_win | 竞技场战斗胜利 | 竞技场或其他pve玩法战斗胜利时上报 |  |  | battle_type, battle_id, rival_id, before_rival_rank, before_rival_score, is_bot, before_arena_rank, before_arena_score, total_power, hero_info, hero_info.index, hero_info.hero_id, hero_info.hero_level, hero_info.hero_star, hero_info.hero_quality, hero_info.hero_power, hero_info.hero_equipment_list, rival_power, rival_info, rival_info.index, rival_info.hero_id, rival_info.hero_level, rival_info.hero_star, rival_info.hero_quality, rival_info.hero_power, rival_info.hero_equipment_list, result, duration, rival_rank, arena_rank, rival_score, arena_score |
| arena_fail | 竞技场战斗失败 | 竞技场或其他pve玩法战斗失败时上报 |  |  | battle_type, battle_id, rival_id, before_rival_rank, before_rival_score, is_bot, before_arena_rank, before_arena_score, total_power, hero_info, hero_info.index, hero_info.hero_id, hero_info.hero_level, hero_info.hero_star, hero_info.hero_quality, hero_info.hero_power, hero_info.hero_equipment_list, rival_power, rival_info, rival_info.index, rival_info.hero_id, rival_info.hero_level, rival_info.hero_star, rival_info.hero_quality, rival_info.hero_power, rival_info.hero_equipment_list, result, fail_reason, duration, rival_rank, arena_rank, rival_score, arena_score |
| guild_create | 创建公会 | 创建公会时上报 |  |  | guild_id, guild_name |
| guild_join | 加入公会 | 加入公会时上报 |  |  | guild_id, guild_name, guild_level, guild_member, guild_power |
| guild_leave | 退出公会 | 退出公会时上报 |  |  | guild_id, guild_name, guild_level, guild_member, guild_power, guild_position |
| guild_manage | 公会管理 | 公会管理时上报 |  |  | guild_id, guild_name, guild_level, guild_member, target_player_id, guild_position |
| guild_game | 参与公会玩法 | 参与公会玩法时上报 |  |  | guild_game_type, guild_game_id, guild_id, guild_name, guild_level, guild_member, guild_position |
| hangup_award | 挂机奖励 | 领取挂机奖励时上报 |  |  | hangup_time, start_time |
| get_email_reward | 领取邮件奖励 | 领取邮件奖励时上报 |  |  | email_subject, email_content, send_time |
| exchange_code | 兑换码兑换 | 点击兑换时记录 |  |  | code_type, code, return |
| rank | 排行榜 | 每个特定时间上报一次#distinct_id取一个不与玩家id冲突的固定值 |  |  | rank_type, rank_sub_type, server_id, rank_info, rank_info.id, rank_info.rank, rank_info.score |
| current_online | 在线人数 | 每个特定时间上报一次#distinct_id取一个不与玩家id冲突的固定值 |  |  | server_id, online_user |

## 公共事件属性

| 属性名 | 显示名 | 类型 | 说明 |
| --- | --- | --- | --- |
| channel | 渠道 | string | 如 taptap、appstore 等 |
| nick_name | 昵称 | string |  |
| tmp_account_level | 当前账户等级 | number |  |
| tmp_vip_level | 当前vip等级 | number |  |
| tmp_ability_level | 当前能力等级列表 | array_string | ['攻击力等级','生命值等级','生命恢复速度等级',...] |
| tmp_main_id | 当前主线剧情关卡进度 | string |  |
| tmp_power | 当前战力 | number |  |
| tmp_guild | 当前公会 | string |  |
| tmp_diamond | 当前钻石 | number |  |
| tmp_gold | 当前金币 | number |  |

## 用户数据

| 属性名 | 显示名 | 类型 | 更新方式 | 说明 | 标签 |
| --- | --- | --- | --- | --- | --- |
| device_id | 设备ID | string | user_setOnce | 在游戏启动/注册时设置 |  |
| channel | 注册渠道 | string | user_setOnce | 在游戏启动/注册时设置，上传用户的渠道信息，如app store、应用宝等 |  |
| nick_name | 角色昵称 | string | user_set | 更新时覆盖 |  |
| current_level | 当前等级 | number | user_set | 每次登录/登出时设置 |  |
| current_vip_level | 当前VIP等级 | number | user_set | 每次登录/登出时设置 |  |
| current_power | 当前总战力 | number | user_set | 每次登录/登出时设置 |  |
| current_main_id | 当前主线剧情关卡进度 | string | user_set | 每次登录/登出时设置 |  |
| current_pvp_rank | 当前竞技场排名 | number | user_set | 每次登录/登出时设置 |  |
| tmp_ability_level | 当前能力等级列表 | array_string | user_set | 每次登录/登出时设置 |  |
| hero_info | 英雄/武将/卡牌明细 | array_row | user_set | 每次登录/登出时设置 |  |
| hero_info.hero_id | 英雄id | string | user_set |  |  |
| hero_info.hero_level | 英雄等级 | number | user_set |  |  |
| hero_info.hero_star | 英雄星级 | number | user_set |  |  |
| hero_info.hero_quanlity | 英雄品阶 | string | user_set |  |  |
| hero_info.hero_power | 英雄战力 | number | user_set |  |  |
| hero_info.hero_equipment_list | 英雄装备列表 | array_string | user_set |  |  |
| guild_id | 所在公会 | string | user_set | 每次变更时设置 |  |
| bag_info | 背包明细 | array_row | user_set | 每次登录/登出时设置 |  |
| bag_info.item_id | 背包物品id | string | user_set |  |  |
| bag_info.item_type | 背包物品类型 | string | user_set |  |  |
| bag_info.item_num | 背包物品数量 | number | user_set |  |  |
| register_time | 用户新增时间 | datetime | user_setOnce | 用户新增时记录 |  |
| first_login_time | 首次登录时间 | datetime | user_setOnce | 每次登录时设置 |  |
| last_login_time | 最后登录时间 | datetime | user_set | 每次登录时设置 |  |
| first_pay_time | 首次充值时间 | datetime | user_setOnce | 每次充值完成时设置 |  |
| last_pay_time | 最后充值时间 | datetime | user_set | 每次充值完成时设置 |  |
| total_pay_amount | 累计付费金额 | number | user_add | 每次充值完成时累加 |  |
| total_pay_times | 累计付费次数 | number | user_add | 每次充值完成时累加 |  |
| total_login_day | 累计登录天数 | number | user_set | 每次登录/登出时设置 |  |
| total_adv_times | 累计观看广告次数 | number | user_add | 每次广告观看完毕时累加 |  |
| total_adv_duration | 累计观看广告时长 | number | user_add | 每次广告观看完毕时累加 |  |
| current_diamond | 当前钻石 | number | user_set | 每次登录/登出时设置 |  |
| current_gold | 当前金币 | number | user_set | 每次登录/登出时设置 |  |
