Skip to main content

Can we have $message included in the “Placed order” event type? or how can we associate compaign with an event? It is included in other event types but not in placedorder.

Hello ​@noor 

The place order event does not support adding a $message directly. However, you can include custom properties like $message when sending the event through klaviyo's API. 

Alternatively you can just setup flow triggered by the place order event and use dynamic content to incorporate the $message in follow up emails....

 

I hope you find this helpful.


Thank you for answering ​@MANSIR2094

Basically, I want to associate an event with a campaign but placed order event type doesn’t return campaign id or message id. can you explain your solution a bit more.


@noor To associate a 'place order' event with a campaign, you can't directly retrieve the campaign ID from that event, but you can still track the connection through other methods.

 

Here's a detailed approach:

 

UTM parameters in campaign links: when sending out emails or sms, include UTM parameters like utm_campaign=campaignName) in your links. When someone clicks and places an order, the "placed order " event will capture these UTM parameters. You can then associate the order with the specific campaign 

 

Custom properties: if you are triggering the "place order" event through klaviyo's API, you can pass a custom property like campaign_id or message_if along with the order. This way, even if the " place order" event itself doesn't include the campaign Info, you can still reference it later in your flows or reports.

 

Let me know if this help or you need more clarification.