AWS Mobile Analytics事件提交

时间:2018-04-09 06:34:56

标签: javascript amazon-web-services amazon-mobile-analytics

我目前正在使用亚马逊移动分析的JS SDK。安装程序运行正常,但自定义事件日志记录似乎无法正常工作。我得到了正确的答复:

Object {eventType: "'iPhone'", timestamp: "2018-04-09T06:27:01.567Z", session: Object, version: "v2.0", attributes: "{'Name1':'Value1', 'Name2':'Value2'}"…}
attributes:"{'Name1':'Value1', 'Name2':'Value2'}"
eventType:"'iPhone'"
metrics:Object
session:Object
 id:"XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
 startTimestamp:"2018-04-09T06:26:54.683Z"
 timestamp:"2018-04-09T06:27:01.567Z"
version:"v2.0"

即使响应正常,此事件也不会显示在仪表板上。我错过了什么吗?

1 个答案:

答案 0 :(得分:0)

您是否正在发送有效平台?

来自文档:https://github.com/aws/aws-sdk-mobile-analytics-js

    platform : DEVICE_PLATFORM,            //Optional valid values: 'Android', 'iPhoneOS', 'WindowsPhone', 'Blackberry', 'Windows', 'MacOS', 'Linux'