事件分析

功能介绍

获取本APP的事件列表数据

接口

  1. https://openapi.baidu.com/rest/2.0/mtj/svc/app/getDataByKey

请求参数

此处仅列本接口特有参数,公共参数请参考报告级API说明

获取表格数据

参数名参数类型是否必须描述
methodstringevent/a
metricsstring指标列表,指标间逗号分隔

指标

指标名描述适用接口
daily_event_count触发次数(日均)event/a
daily_event_user_count触发用户数(日均)event/a
average_event_time事件平均时长event/a

示例

获取事件列表数据

请求

  1. https://openapi.baidu.com/rest/2.0/mtj/svc/app/getDataByKey?access_token=[ACCESS_TOKEN]&key=[APP_KEY]&method=event/a&start-date=20171102000000&end-date=20171108232359&metrics=daily_event_count,daily_event_user_count,average_event_time

响应

  1. {
  2. "status": 0,
  3. "msg": "",
  4. "data": {
  5. "offset": 0,
  6. "timeSpan": [
  7. "2017\/11\/02 - 2017\/11\/08"
  8. ],
  9. "fields": [
  10. "event_title",
  11. "event_name",
  12. "daily_event_count",
  13. "daily_event_user_count",
  14. "average_event_time"
  15. ],
  16. "total": 5,
  17. "end": 0,
  18. "sum": [
  19. [
  20. "--",
  21. "--",
  22. "--"
  23. ],
  24. []
  25. ],
  26. "pageSum": [],
  27. "items": [
  28. [
  29. [
  30. {
  31. "id": 344971,
  32. "eventId": "10001",
  33. "eventName": "搜索关键字",
  34. "type": 0,
  35. "web": 0
  36. }
  37. ],
  38. [
  39. {
  40. "id": 345035,
  41. "eventId": "10002",
  42. "eventName": "保存头像",
  43. "type": 0,
  44. "web": 0
  45. }
  46. ],
  47. [
  48. {
  49. "id": 345149,
  50. "eventId": "10000",
  51. "eventName": "启动",
  52. "type": 0,
  53. "web": 0
  54. }
  55. ],
  56. [
  57. {
  58. "id": 346384,
  59. "eventId": "10003",
  60. "eventName": "收藏",
  61. "type": 0,
  62. "web": 0
  63. }
  64. ],
  65. [
  66. {
  67. "id": 346385,
  68. "eventId": "10004",
  69. "eventName": "保存高清头像",
  70. "type": 0,
  71. "web": 0
  72. }
  73. ]
  74. ],
  75. [
  76. [
  77. "--",
  78. "--",
  79. "--"
  80. ],
  81. [
  82. "--",
  83. "--",
  84. "--"
  85. ],
  86. [
  87. "--",
  88. "--",
  89. "--"
  90. ],
  91. [
  92. "--",
  93. "--",
  94. "--"
  95. ],
  96. [
  97. "--",
  98. "--",
  99. "--"
  100. ]
  101. ],
  102. [],
  103. []
  104. ]
  105. }
  106. }