Skip to main content

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 

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: 

 


Reply