Skip to main content

Hello,

Is there a way to link "Placed Order" data with specific campaign information? I’m interested in understanding how campaigns are performing and identifying which purchases were driven by a particular campaign.

For example, just as the "Placed Order" metric shows detailed order information, I’d like to see what campaign influenced the purchase and which campaign it was.

How can I get this data via the API? So far, the best I’ve found is the campaign summary report, but it doesn’t provide the detailed insights I need. (https://developers.klaviyo.com/en/reference/query_campaign_values)

Thank you!

Hi ​@DiT 

Thank you for posting in the Community!

Good question! Let me share my thoughts below. 

1. Ensure UTM Parameters are set for campaign tracking:

Append UTM parameters to email campaign links. These parameters allow you to track campaigns and associate them with "Placed Order" events.

When a customer clicks on an email link and makes a purchase, the UTM parameters (like utm_campaign) are stored in the customer's profile and associated with the event.

You could also try setting up a webhook in a flow, which trigger from a placed order event. But that would be a larger setup. 

Hope that helps or else, let me know! :-) 

Christian Nørbjerg Enger
Partner & CPO
Web: Segmento.dk
LinkedIn: @christianfromsegmento
Voldbjergvej 22b, 8240 Risskov


Hello ​@DiT 

Thank you for your inquiry. To track which specific campaigns influenced a purchase, you can use Klaviyo's UTM parameters in your campaign links, which will allow you to connect the purchase data with the campaign source. Additionally, you can utilize the "Track Events" API to pull detailed campaign performance data and link it to the "Placed Order" data.

 

If you'd like further guidance on setting this up or implementing it through the API, feel free to reach out to me on WhatsApp at +2349151237531], or we can schedule a call for a more detailed explanation. Let’s make sure you get the insights you need.

 


Hi ​@DiT 

Thank you for posting in the Community!

Good question! Let me share my thoughts below. 

1. Ensure UTM Parameters are set for campaign tracking:

Append UTM parameters to email campaign links. These parameters allow you to track campaigns and associate them with "Placed Order" events.

When a customer clicks on an email link and makes a purchase, the UTM parameters (like utm_campaign) are stored in the customer's profile and associated with the event.

You could also try setting up a webhook in a flow, which trigger from a placed order event. But that would be a larger setup. 

Hope that helps or else, let me know! :-) 

Christian Nørbjerg Enger
Partner & CPO
Web: Segmento.dk
LinkedIn: @christianfromsegmento
Voldbjergvej 22b, 8240 Risskov


Just to double check, setting up the UTM parameters would only show future customer interaction (open, click, conversion) and not past customer interaction? 

For example, if I set a UTM parameter to a campaign that that was sent out several months ago, that will not allow me track orders placed from that campaign (orders that occurred before setting up the UTM parameter), is that correct? Setting up UTM parameter would allow me to only track future campaigns that will be sent out?​​

If this is right, is there anyway to acquire this data for campaigns that have already been sent out?


Hello ​@DiT

To link "Placed Order" data with campaign information in Klaviyo:

Kindly follow this steps;

  1. Track Campaign Data in Orders: Ensure campaign-related details (like campaign IDs or UTM parameters) are captured in the order data when a customer places an order.

  2. API Steps:

    • Use the Placed Order API to retrieve order details (which may include campaign info).
      • Placed Order API
    • Use the Campaign Summary API to get campaign details.
  3. Link Data: Cross-reference the campaign info (e.g., campaign ID or UTM parameters) from the order event with the campaign data to track which campaign drove the purchase.

If Klaviyo doesn't directly link them, you may need to use custom properties in the order events to store the campaign ID for easier correlation.

Let me know if you need more help, feel free to reach out to me on WhatsApp at a+2349023453575], or we can schedule a call for a more detailed explanation.

Let’s make sure you get the insights you need.


Reply