We use the Klaviyo extension to push customer data to enrich the customer's profile in Klaviyo and help us build segments. The functions used by your extension are not formatting the data correctly so custom fields are not being updated in Klaviyo.
Steps to reproduce
We push data to the klaviyoTrackEvent function and it comes out like this.
Environment details
PHP version: 8.1 Magento version: 2.4.4-p6 Klaviyo extension version: 4.1.1 Anything else that would help a developer reproduce the bug?
See https://github.com/klaviyo/magento2-klaviyo/pull/289
We use the Klaviyo extension to push customer data to enrich the customer's profile in Klaviyo and help us build segments. The functions used by your extension are not formatting the data correctly so custom fields are not being updated in Klaviyo.
Steps to reproduce
We push data to the klaviyoTrackEvent function and it comes out like this.
This is incorrect, the custom properties should be within the attributes object, which is inside the data object, which is inside the profile object.
Expected result
See formatting on https://jsonformatter.org/fa628e
Actual result
See above. Contact is no longer updated.
Additional information
No response