# 电商埋点方案模板_v1

## 事件数据

| 事件名 | 显示名 | 说明 | 标签 | 平台 | 属性 |
| --- | --- | --- | --- | --- | --- |
| ta_app_install | app安装 | 开启客户端自动采集后自动上报 | 基础数据 |  |  |
| ta_app_start | app启动 | 开启客户端自动采集后自动上报 | 基础数据 |  |  |
| ta_app_crash | app崩溃 | 开启客户端自动采集后自动上报 | 基础数据 |  |  |
| ta_app_end | app关闭 | 开启客户端自动采集后自动上报 | 基础数据 |  | #duration |
| ta_mp_launch | 小程序初始化 | 开启客户端自动采集后自动上报 | 基础数据 |  |  |
| ta_mp_show | 小程序启动 | 开启客户端自动采集后自动上报 | 基础数据 |  |  |
| ta_mp_hide | 小程序隐藏 | 开启客户端自动采集后自动上报 | 基础数据 |  |  |
| ta_mp_view | 小程序页面浏览 | 开启客户端自动采集后自动上报 | 基础数据 |  |  |
| ta_mp_share | 小程序页面转发分享 | 开启客户端自动采集后自动上报 | 基础数据 |  |  |
| privacy_agreement | 查看隐私协议 | 用户查看隐私协议时上报 | 注册登录 |  |  |
| register_page | 注册/登录页访问 | 进入注册/登录页面时上报 | 注册登录 |  | page_source |
| get_code | 获取验证码 | 点击获取验证码后上报 | 注册登录 |  | get_reason |
| register | 注册 | 有注册结果时上报 | 注册登录 |  | register_method, register_source, is_success, fail_reason |
| login | 登录 | 有登录结果时上报 | 注册登录 |  | is_first_login, login_method, is_success, fail_reason |
| click_banner | Banner位点击 | 点击广告位时上报 | 首页 |  | page, banner_id, banner_name, banner_num, banner_type, url |
| commodity_detail | 浏览商品详情页 | 浏览商品详情页时上报 | 购买流程 |  | entrance, commodity_id, commodity_name, commodity_type, original_price, present_price |
| add_cart | 加入购物车 | 点击加入购物车按钮时上报 | 购买流程 |  | entrance, commodity_id, commodity_name, commodity_type, original_price, present_price, size, color, commodity_amount |
| buy_now | 立即购买 | 点击立即购买按钮时上报 | 购买流程 |  | entrance, commodity_id, commodity_name, commodity_type, original_price, present_price, color, size, commodity_amount |
| select_address | 选择地址 | 确认选择地址后上报 | 购买流程 |  | receiver_name, receiver_phone, receiver_province, receiver_city, receiver_area, receiver_address |
| submit_order | 提交订单 | 成功提交订单时上报，建议在服务端采集 | 购买流程 |  | entrance, order_id, order_amount, order_actual_amount, transportation_costs, is_use_discount, coupon, receiver_name, receiver_province, receiver_phone, receiver_city, receiver_area, receiver_address, commodity_list |
| pay_order | 支付订单 | 成功支付订单时上报，建议在服务端采集 | 购买流程 |  | entrance, order_id, order_amount, order_actual_amount, transportation_costs, is_use_discount, coupon, receiver_name, receiver_province, receiver_phone, receiver_city, receiver_area, receiver_address, commodity_list, payment_method |
| cancel_order | 取消订单 | 取消订单时上报，建议在服务端采集 | 购买流程 |  | cancel_reason, order_id, order_amount, order_actual_amount, transportation_costs, is_use_discount, coupon, receiver_name, receiver_province, receiver_phone, receiver_city, receiver_area, receiver_address, commodity_list |
| send_commodity | 发货 | 发货时上报（服务端上报） | 购买流程 |  | order_id, order_amount, order_actual_amount, receiver_name, receiver_province, receiver_phone, receiver_city, receiver_area, receiver_address, commodity_list, transportation_costs, transportation_company, transportation_id |
| apply_return | 申请售后 | 申请退货时上报 | 购买流程 |  | return_type, apply_reason, application_id, order_id, commodity_id, commodity_name, commodity_type, original_price, present_price, size, commodity_amount, color |
| return_result | 申请售后结果 | 售后返回结果时上报 | 购买流程 |  | return_type, apply_reason, application_id, order_id, commodity_id, commodity_name, commodity_type, original_price, present_price, size, commodity_amount, color, return_result |
| return_number | 填写售后单号 | 填写物流单号时上报 | 购买流程 |  | return_type, apply_reason, application_id, order_id, commodity_id, commodity_name, commodity_type, original_price, present_price, size, commodity_amount, color, transportation_company, transportation_id |
| finish_return | 售后完成 | 售后完成上报 | 购买流程 |  | return_type, apply_reason, application_id, order_id, commodity_id, commodity_name, commodity_type, original_price, present_price, size, commodity_amount, color |
| personal_center | 查看个人中心 | 进入个人中心页时上报 | 个人中心 |  | entrance |
| search_shop | 门店查询 | 查看门店查询页时上报 | 个人中心 |  |  |
| contact | 联系客服 | 点击联系客服时上报 | 个人中心 |  |  |
| click_order | 查看我的订单 | 点击个人中心页全部订单、待付款、待发货、待收货、退款/售后按钮时上报 | 个人中心 |  | order_type |
| order_detail | 查看订单详情 | 点击进入查看订单详情时上报 | 个人中心 |  | order_statement, order_id, order_amount, order_actual_amount, receiver_name, receiver_province, receiver_phone, receiver_city, receiver_area, receiver_address, transportation_costs, is_use_discount, coupon, commodity_list |
| coupon_list | 查看优惠券列表 | 查看优惠券列表时上报 | 个人中心 |  | entrance, available_coupon, history_coupon |
| coupon_detail | 查看优惠券详情 | 查看优惠券详情时上报 | 个人中心 |  | coupon_id, coupon_name, coupon_discount, coupon_type, coupon_restiction, use_method |
| receive_coupon | 领取优惠券 | 领取优惠券时上报 | 个人中心 |  | coupon_id, coupon_name, coupon_discount, coupon_type, coupon_restiction, use_method |
| search_bar | 点击搜索栏 | 点击搜索栏时触发 | 搜索 |  |  |
| search_button | 点击搜索按钮 | 点击搜索按钮时触发 | 搜索 |  | page, key_word, key_word_type |
| search_result | 搜索返回结果 | 收到搜索请求返回的结果触发 | 搜索 |  | key_word, key_word_type, result_number |
| search_result_click | 点击搜索结果 | 点击搜索结果触发 | 搜索 |  | key_word, key_word_type, position_number, commodity_id, commodity_name |
| sale_page | 活动页访问 | 进入活动页面时触发 | 活动 |  | sale_id, sale_type |
| sale_click | 活动页点击 | 活动页面点击商品时触发 | 活动 |  | sale_id, sale_type, click_position, commodity_id |

## 公共事件属性

| 属性名 | 显示名 | 类型 | 说明 |
| --- | --- | --- | --- |
| client_version | 客户端版本号 | string | 客户端版本号 |
| channel | 渠道 | string | 如巨量、腾讯广告等 |
| vip_level | 会员等级 | string | lv1,lv2 |
| vip_points | 成长值 | number | 5000 |
| credit | 当前有效积分 | number | 200 |
| credit_timelimit | 即将过期积分 | number | 100 |

## 用户数据

| 属性名 | 显示名 | 类型 | 更新方式 | 说明 | 标签 |
| --- | --- | --- | --- | --- | --- |
| gender | 性别 | string | user_setOnce | 用户填写时记录 | 基础属性 |
| birthday | 生日 | datetime | user_setOnce | 用户填写时记录 |  |
| country | 国家 | string | user_set | 更新时覆盖 |  |
| province | 省份 | string | user_set | 更新时覆盖 |  |
| city | 城市 | string | user_set | 更新时覆盖 |  |
| email | 邮箱 | string | user_set | 更新时覆盖 |  |
| phone_number | 手机 | string | user_set | 更新时覆盖 |  |
| open_id | 小程序openid | string | user_set | 更新时覆盖 |  |
| union_id | union_id | string | user_setOnce | 首次启动小程序时记录 |  |
| channel | 注册渠道 | string | user_setOnce | 首次访问时记录 |  |
| member_id | 会员id | string | user_setOnce | 注册会员时记录 | 会员属性 |
| vip_name | 会员名称 | string | user_set | 更新时覆盖 |  |
| vip_level | 成长等级 | string | user_set | 更新时覆盖 |  |
| vip_points | 成长值 | number | user_set | 更新时覆盖 |  |
| credit | 当前有效积分 | number | user_set | 更新时覆盖 |  |
| credit_timelimit | 即将过期积分 | number | user_set | 更新时覆盖 |  |
| register_time | 注册时间 | datetime | user_setOnce | 注册时记录 | 时间属性 |
| first_order_time | 首次下单时间 | datetime | user_setOnce | 首次下单时记录 |  |
| last_order_time | 最近下单时间 | datetime | user_set | 更新时覆盖 |  |
| cumulative_payment | 累计消费金额 | number | user_set | 更新时覆盖 | 消费属性 |
| cumulative_order | 累计购买次数 | number | user_set | 更新时覆盖 |  |
