Skip to main content
Solved

Need to push custom order attribute to klaviyo in magento 2


Forum|alt.badge.img+2

Created a extension attribute for magento orders to identify from which source it came. The arribute is already made visible in magento default REST endpoints. I need to sync that attribute value also with Klaviyo. How can it get done?

Best answer by David To

Hello @stephenk,

Great question!

At present there is no mechanism in place to change what data is being synced over for a native integration’s metrics such as Magento. Klaviyo however, will sync over extension attributes for products as part of the order, but not the order object itself. 

To alleviate this, I would suggest creating your own custom event which contains the attributes you want to be synced to Klaviyo. Because custom events are self built, you can include whatever data points you wish to be synced to Klaviyo. For example, if you created your own custom Placed Order event, you can include more attributes in the payload that is shared from this custom event than the default Magento Placed Order event that is synced to Klaviyo as part of the native integration.

To learn more about this, I would suggest taking a look at the following API documentation Klaviyo offers on utilizing Klaviyo’s API for custom work:

I’ll also be sharing this feedback with our Product Team to explore the possibility of allowing changes to be made to the data being shared from our native integrations!

Thanks for being a part of the Klaviyo Community!

David

View original
Did this topic or the replies in the thread help you find an answer to your question?

4 replies

David To
Klaviyo Employee
Forum|alt.badge.img+60
  • Klaviyo Employee
  • 2456 replies
  • Answer
  • August 11, 2021

Hello @stephenk,

Great question!

At present there is no mechanism in place to change what data is being synced over for a native integration’s metrics such as Magento. Klaviyo however, will sync over extension attributes for products as part of the order, but not the order object itself. 

To alleviate this, I would suggest creating your own custom event which contains the attributes you want to be synced to Klaviyo. Because custom events are self built, you can include whatever data points you wish to be synced to Klaviyo. For example, if you created your own custom Placed Order event, you can include more attributes in the payload that is shared from this custom event than the default Magento Placed Order event that is synced to Klaviyo as part of the native integration.

To learn more about this, I would suggest taking a look at the following API documentation Klaviyo offers on utilizing Klaviyo’s API for custom work:

I’ll also be sharing this feedback with our Product Team to explore the possibility of allowing changes to be made to the data being shared from our native integrations!

Thanks for being a part of the Klaviyo Community!

David


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 2 replies
  • August 12, 2021

Hi @david.to 

Thanks for the information provided.

I will take a look on custom place order event from myself.


Is this still not possible using the SDKs? Also all the links in the provided solution no longer exist. Please advise if this approach is still recommended .


chloe.strange
Community Manager
Forum|alt.badge.img+41
  • Community Manager
  • 426 replies
  • December 26, 2024

Hi ​@jacobjellyfish,

Yes, that documentation is out of date at this point, but I have just updated them. Refer to this documentation to use the Klaviyo javascript API. 

~Chloe