Track add to wishlist event for sending to klaviyo

This topic has 2 replies, 2 voices, and was last updated 1 months, 1 weeks ago ago by Jack Richardson

  • Avatar: creatoys
    creatoys
    Participant
    April 17, 2025 at 09:26

    Hi Team,

    We would like to track the add to wishlist event for sending it to klaviyo.

    We found a solution on klaviyo suport site and it described in this link:
    https://community.klaviyo.com/developer-group-64/track-add-to-wishlist-events-15635.

    In this description the code is made for YITH WooCommerce Wishlist and it is explained what should be replaced is using other plugin:
    ” Replace yith_wcwl_added_to_wishlist with the action provided by your specific plugin. ”
    ” Check your plugin documentation for the correct hook to use. ”

    We use the Xstore built in wishlist and we could not find in documentation the add to wishlist hook.

    Please help us with this matter.
    Jeno Konsza

    1 Answer
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 17, 2025 at 14:15

    Dear @creatoys,

    We hope this message finds you well.

    We would like to inform you that our system utilizes JavaScript triggers for adding and removing products from the wishlist. The available triggers are as follows:

    1. xstore_wishlist/adding_product
    This trigger includes the following arguments: products, product_id.
    Example usage in your JS file:

    $(document).on('xstore_wishlist/adding_product', function (event, products, product_id) {
        // Your code here
    });

    2. xstore_wishlist/removing_product
    This trigger also includes the following arguments: products, product_id.
    Example usage in your JS file:

    $(document).on('xstore_wishlist/removing_product', function (event, products, product_id) {
        // Your code here
    });

    We recommend reaching out to the developers of Klaviyo to inquire about the appropriate methods for integrating their tracking code with these JavaScript actions.

    Should you have any further questions, please do not hesitate to contact us.

    Best regards,
    Jack Richardson
    The 8Theme Team

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.