数据接入 API
1. 生成数据
{
"distinct_id": "2b0a6f51a3cd6775",
"time": 1434556935000,
"type": "track",
"event": "ViewProduct",
"properties": {
"$manufacturer":"Apple",
"$model": "iPhone 5",
"$os":"iOS",
"$os_version":"7.0",
"$app_version":"1.3",
"$wifi":true,
"$ip":"180.79.35.65",
"$province":"湖南",
"$city":"长沙",
"$screen_width":320,
"$screen_height":640,
"product_id":12345,
"product_name":"苹果",
"product_classify":"水果",
"product_price":14.0
}
}2. 编码
2.1 进行 Gzip 压缩(可选)
2.2 进行 Base64 编码(必须)
2.3 进行 UrlEncode 编码(必须)
2.4 拼装 request
2.4.1 一条 Json 数据
2.4.2 多条 Json 构成的数组
2.4 编码例子
3. 发送数据

4. 其他
Last updated
Was this helpful?