Skip to content

通用像素上报 ​

https://{HOST}/api/report/pixel

text
{HOST} 为推广域名

功能描述 ​

通用像素上报

请求方式 ​

POST

请求参数 ​

属性类型是否必选说明
app_keystring是app_key,应用标识
pixel_idstring是像素id
event_namestring是事件名称
event_timetimestamp否事件时间戳,默认北京时间
custom_datajson否扩展信息
event_name ​

FB:转化追踪-标准事件

custom-data ​
属性类型是否必选说明
currencystring是货币单位
valuefloat是费用
contentsjson是更多内容

请求示例 ​

json

{
  "app_key": "app_key",
  "pixel_id": "pixel_id",
  "event_name": "event_name",
  "event_time": "event_time",
  "custom_data": {
    "currency":"usd",
    "value":123.45,
    "contents": {
      "id": "product123",
      "quantity": 1,
      "delivery_category": "home_delivery"
    }
  }
}

返回值 ​

json
{
  "code": 200,
  "message": "success",
  "data": "pixel push success"
}