Skip to main content
Solved

$attributed_message group by possible values

  • June 20, 2024
  • 1 reply
  • 56 views

Forum|alt.badge.img+1

Hey,

 

I am trying to understand the $attributed_message group by’s logic available for the Query Metric Aggregates endpoint.

 

During testing I found that other then campaign ids the attributed_message dimension can return flow message ids as well. (figured out the 6 character long Id’s are flow message ids by reading this post 

)

 

But in the guide on how to use the Query Metric Aggregates endpoint it says that when you group by $attributed_messages you receive the values grouped by Campaign ids https://developers.klaviyo.com/en/docs/using_the_query_metric_aggregates_endpoint#revenue

 

My question would be if there’s any other id types could show up as dimension other than Campaign Id and Flow message id? And on top of that if I  want to see the value grouped by campaigns then can I ignore all the metrics that have a none Campaign id dimension?

 

Thanks 

Best answer by Kim Strauch

It should be just campaign IDs and flow message IDs. 


If you’re looking to pull stats on just campaigns, I’d highly recommend you check out the Query Campaign Values endpoint, as discussed on this other post: 

 

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

Kim Strauch
Klaviyo Employee
Forum|alt.badge.img+9
  • Klaviyo Employee
  • 91 replies
  • Answer
  • June 24, 2024

It should be just campaign IDs and flow message IDs. 


If you’re looking to pull stats on just campaigns, I’d highly recommend you check out the Query Campaign Values endpoint, as discussed on this other post: