Thank you for your question in the Klaviyo Community and thank you for the tag @stephen.trumble!
The Klaviyo Client Side Javascript API is only used for tracking on-site behaviour prior to data being submitted to the actual server itself. This means that in a typical integration you connect Active on Site, Viewed Product, Added to Cart & Started Checkout.
Typically events such as placed order include a lot more PII data including address details, line items etc so Klaviyo require you to use a private API key that is permitted to send this data in.
This page has a lot more information about the best way to build out a typical eCommerce integration into Klaviyo.
I hope that helps - feel free to post any questions here in the Developer Community!
Thanks for reaching out for help with your custom integration. Unfortunately Klaviyo cannot offer support with custom integrations. However, I have moved this question into the Developer Group as they are the experts when it comes to any dev related questions. @DavidV, would you be able to help?
Thank you for your question in the Klaviyo Community and thank you for the tag @stephen.trumble!
The Klaviyo Client Side Javascript API is only used for tracking on-site behaviour prior to data being submitted to the actual server itself. This means that in a typical integration you connect Active on Site, Viewed Product, Added to Cart & Started Checkout.
Typically events such as placed order include a lot more PII data including address details, line items etc so Klaviyo require you to use a private API key that is permitted to send this data in.
This page has a lot more information about the best way to build out a typical eCommerce integration into Klaviyo.
I hope that helps - feel free to post any questions here in the Developer Community!