我正在使用下面的链接在branch.io https://github.com/BranchMetrics/branch-deep-linking-public-api#logging-commerce-events中记录电子商务事件,我使用的请求与链接中提到的相同。
但branch.io仪表板中没有捕捉到详细信息。
我得到的响应是"branch_view_enabled":false。
如果设置中有任何问题,请帮我解决?或者明确地说,我将不得不做一些事情来查看仪表板中的事件。
如有回复,我们将不胜感激!
发布于 2018-01-08 23:24:55
我是分支机构的杰基。我们还不支持v2/events for commerce,这就是为什么你不能在仪表板上跟踪它的原因。
下一步,请遵循我们的官方文档here使用v1事件请求。我还提供了一个示例商务请求,以获取您的信息。同时,我们将更新github页面上的商务信息,以免造成任何混乱。
curl -X POST https://api.branch.io/v1/event \
-d '{
"branch_key": "your_Branch_key",
"identity": "222",
"event": "purchase",
"metadata": {
"hello": "world",
"custom_data": "this"
},
"commerce_data": {
"revenue": 50.0,
"currency": "USD",
"transaction_id": "foo-transaction-id",
"shipping": 0.0,
"tax": 5.0,
"affiliation": "foo-affiliation",
"products": [
{
"sku": "foo-sku-1",
"name": "foo-item-1",
"price": 45.00,
"quantity": 1,
"brand": "foo-brand",
"category": "Electronics",
"variant": "foo-variant-1"
},
{
"sku": "foo-sku-2",
"price": 2.50,
"quantity": 2
}
]
}
}'希望这能有所帮助。如果您在support@branch.io上有任何其他问题或问题,请随时与我们联系。
最好的
杰基
发布于 2019-02-01 17:36:22
我像这样试过了new BranchEvent("Event Name") .addCustomDataProperty("Key", "Value") .logEvent(this);
它会在分支仪表板的摘要下显示事件名称。我的日志显示它内部的目标是v2。我正在通过android发送
https://stackoverflow.com/questions/48151620
复制相似问题