【问题标题】:How can I get Amplitude metrics for New Users via the API?如何通过 API 获取新用户的振幅指标?
【发布时间】:2017-03-29 03:14:10
【问题描述】:

对于 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”是什么?

【问题讨论】:

    标签: amplitude


    【解决方案1】:

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

    考虑一下:

    Amplitude screenshot

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

    对于'[Amplitude] Any Active Event',使用“_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

    希望有帮助!

    【讨论】:

    • 谢谢!这是我的错,我使用的是事件 api,但真的应该使用用户 api。我很困惑,因为当您以幅度构建图表时,它出现好像他们有一个名为 [Amplitude] New User 的事件
    猜你喜欢
    • 1970-01-01
    • 2018-02-12
    • 1970-01-01
    • 1970-01-01
    • 2021-07-24
    • 1970-01-01
    • 1970-01-01
    • 2020-12-04
    • 1970-01-01
    相关资源
    最近更新 更多