• Resolved robertrosanke

    (@robertrosanke)


    Hello Klaviyo team.

    In addition to the following ticket (https://ww.wp.xz.cn/support/topic/how-can-we-add-additional-data-to-a-tracked-order/), I would like to add that it would actually not only be good to extend or modify order data before sending it to Klaviyo, but actually all data/events that the Klaviyo plugin sends.

    Then, with the help of a simple WordPress developer, any store operator can easily extend and customize data objects that are sent to Klaviyo with relatively little effort.

    Backend filters in PHP are already available in WordPress as a tried-and-tested solution.
    Frontend filters could be made possible via JavaScript. WordPress offers these for developers in Gutenberg, for example, so you can take inspiration from WordPress when implementing JavaScript filters.

    We are generally not really satisfied with the current way that we are referred to the docs to make simple, minor adjustments.
    The Klaviyo API docs seem way too complicated to me.
    It takes way too much time to understand it, then develop and test if you just want to customize or extend a small data point.

    It would be much easier if I could just modify or extend the data objects that Klaviyo sends from WordPress to itself anyway.
    Put my data into simple PHP arrays or JavaScript objects and Klaviyo will convert the filtered, simple data objects into the API structure it needs and just send the HTTP request as before.

    Examples:

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author klaviyo

    (@klaviyo)

    Hello, thank you for this additional feedback! We would love to expand the functionality of our plugin to allow for highly customized use-cases such as the ones you’ve described. I’ve updated the feature request accordingly. In the meantime, you can implement many of these customizations to the Klaviyo plugin files directly, or to other PHP files on your website via Klaviyo’s PHP SDK. That said, these customizations would only apply to profile and event data synced via the plugin (Viewed Product, Added to Cart, and Started Checkout events). All other events are synced via webhooks and do not make use of WordPress filters.

    Thread Starter robertrosanke

    (@robertrosanke)

    Thank you for the positive feedback.

    You write that we can make changes with the Klaviyo SDK.

    Does this mean that we can use the SDK to filter the requests from the Klaviyo plugin WITHOUT modifying the Klaviyo plugin files?

    If so, do you have a link or code with a simple example of how we can add an additional property to the order-object and the user profile in the start-checkout-event, for example?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Filter Klaviyo data via PHP or / and JavaScript’ is closed to new replies.