Skip to main content
Contributor I
October 24, 2024
Solved

Query Campaign Values Time Range

  • October 24, 2024
  • 4 replies
  • 219 views

Ref: https://developers.klaviyo.com/en/reference/query_campaign_values

When using this API. What does the timeframe filter on?

Does it filter on campaigns sent within the time period, or does it filter on events sent within the time period. 

This distinction is important because if it’s based on events in the time period, then the statistics can vary based on opens and clicks that happen within the range. If it’s based on when the campaign was sent I assume it’s the full rollup stats for the campaign. 

Thanks in advanced

    This topic has been closed for replies.

    4 replies

    saulblumAnswer
    Klaviyo Employee
    October 24, 2024
    Contributor I
    October 25, 2024

    This made it ambiguous for me: https://developers.klaviyo.com/en/docs/using_the_query_metric_aggregates_endpoint#about-metric-aggregates-and-klaviyo-reporting

     



    And then it suggest: 




    ​​​​​​

    If they are both based on when the event occured, why would the Query Campaign Values produce the same results as the klaviyo dashboard, when the klaviyo dashboard is supposed to be based on send time not event time? Correct?

    Contributor I
    November 4, 2024

    @saulblum Any updates on this? 

    I’m struggling to understand the difference in behaviors between these APIs.

    Klaviyo Employee
    November 4, 2024

    I misspoke. The timeframe in this call is for when the campaign was sent., not when the events happened. It should match the campaigns reporting UI.

    Query Metric Aggregates is when the events happened.