GrowingIO 数据采集字段分析

1. 字段含义

1.1 u, 用户ID

1
2
3
4
5
6
if cookie.has(gr_user_id){
    //使用 cookie 中的 gr_user_id 有效期十年
}
else {
    //按照 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" 格式,随机生成一个 gr_user_id
}

1.2 s,会话ID

1
2
3
4
5
6
7
if cookie.has(gr_session_id_){
    //使用 cookie 中的 gr_session_id_
    //gr_session_id_,的有效期为 100 分钟
}
else {
    //按照 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" 格式,随机生成一个 gr_session_id_
}

1.3 t,事件类型

  • imp,显示
  • vst,访问
  • clck,点击
  • chng,变更
  • sbmt,提交

1.4 tm,当前时间

1
+Date.now()