Solved

Flows API, Revenue metrics

  • 1 July 2021
  • 4 replies
  • 171 views

Badge

Hi guys,

2 questions.

 

#1 How we can get Flow revenue information via API? If not possible, any plans to make it available?

 

#2 I see that we have Campaigns, anytime soon to expose also creating Flows via API?

 

 

icon

Best answer by Dov 2 July 2021, 16:56

View original

4 replies

Hi @Dov 

Apologies. I should have been clearer in my original message.  I’m referring specifically to exporting data in this way from the API rather than the interface.

Thanks

Userlevel 6
Badge +5

Hello @NickGuebs,

Thanks for your post.

Exporting the analytics for a certain flow allows you to easily measure and review how successful a flow is. Further, you can analyze the data on message by message basis. 

To export the analytics for a given flow, navigate to the Flows tab of your account. Here, you will see an Export Analytics button at the top.

2019-04-05_15-20-14.png

The export will generate a .csv file containing fields such as the Flow ID, Flow Name, Flow Message ID and more. The same strategy can be used to export campaign analytics. Again, the information contained in the .csv file will include the campaign name and other data relating to the campaign.

I hope that helps!

Just a follow up to the original question.  Is there any way to get Flow IDs/name for each campaign?  How can I join the flow IDs to the related individual emails that go out for that flow?

Userlevel 6
Badge +5

Hi @Slav @ Rush,

Thanks for sharing your question with the Klaviyo Community

At this time it isn't possible to report on revenue by attribution source in this way using our API.  For Flow and Campaign emails, you would instead need to use the "attributed message" dimension to pull metrics attributed to specific messages in your account.  This article provides some API calls that you can use to get started with this: https://help.klaviyo.com/hc/en-us/articles/360040093732-Export-Conversion-Data, and you can also use the Campaign API here to pull a list of message IDs first in order to loop through them with the Metrics API: https://www.klaviyo.com/docs/api/campaigns.

In terms of creating flows via API, at this time, we do not have an API endpoint that can be used to create/copy flows. However, I have submitted a proposal to the product team for consideration. If there is enough interest it could potentially be developed in the future :)

Thanks for being a part of our Community.

Reply