Solved

Conversion calculation from events

  • 29 February 2024
  • 2 replies
  • 29 views

Badge

Using https://developers.klaviyo.com/en/reference/get_events how do I recreate the numbers in the conversion summary?  Or is this coming from shopify’s data?

 

 

icon

Best answer by saulblum 29 February 2024, 01:20

View original

2 replies

Userlevel 4
Badge +7

Check out the Query Metrics Aggregate call:

https://developers.klaviyo.com/en/docs/using_the_query_metric_aggregates_endpoint#conversions

Badge

Yeah u pointed me in the right direction but damn its so complicated…

select top 10 o.*
from klaviyo_data m
join klaviyo_data o on o.type='event' and o.relationships.metric.data.id=m.id
where m.type='metric' and m.attributes.name='Placed Order' and m.attributes.integration.name='Shopify'

why dont u just put the string “Placed Order” into the event properties...

Reply