0

对于 Amplitude REST API,系统事件“[Amplitude] Any Event”的“event_type”是“_active”,如此处所述: https ://amplitude.zendesk.com/hc/en-us/articles/205469748- Dashboard-Rest-API-Export-Amplitude-Dashboard-Data#query-parameters

我用它来让我的活跃用户像这样:

curl -u KEY:SECRET 'https://amplitude.com/api/2/events/segmentation?e=\{"event_type":"_active"\}start=20170301&end=20170321'

系统事件“[Amplitude] New User”的“event_type”是什么?

4

1 回答 1

1

我认为 Amplitude 文档是不正确的,或者充其量是模棱两可的,这导致了混乱。"event_type":"_active" 指的是“活动事件”而不是“活动用户”。因此,您的查询将返回在指定日期范围内执行任何活动事件的用户。这与您实际想要的略有不同 - 这是执行任何事件的新(或活跃)用户。您对新用户的属性感兴趣。正确的?不然有点没意思。用户被定义为新用户,因为他们第一次记录了事件。即没有新用户的历史事件数据。

考虑一下:

幅度截图

幅度文档(如果我是正确的)应该说:

对于“[幅度] 任何活动事件”,请使用“_active”。

我怀疑你真正想要的是:

curl -u KEY:SECRET 'https://amplitude.com/api/2/users?m=new&start=20170301&end=20170321'

如此处所述...

https://amplitude.zendesk.com/hc/en-us/articles/205469748-Dashboard-Rest-API-Export-Amplitude-Dashboard-Data#active-and-new-user-counts

希望有帮助!

于 2017-03-28T19:14:10.330 回答