Tracking event error in Algolia

  • salman
    Participant
    1 month ago #45772

    Uncaught Error: Undefined engine “engine_algolia_events” for index:

    When adding items to cart or clicking over the add to cart button generating this error.

    I examined and found the event.wpsolr_v is going empty string in get client function.

    Please let me know, Is there anything i missed in the configuration or not?

    I have already enabled Capture visitor interactions.

    • This topic was modified 1 month ago by salman.
    wpsolr
    Keymaster
    1 month ago #45774

    Thanks. We are investigating the issue.

    wpsolr
    Keymaster
    1 month ago #45775

    Here is a fix that should solve your issue: https://www.dropbox.com/s/1psvstywx6nzv6q/wpsolr-enterprise.23.9-fix-algolia-events-1.zip?dl=1

    Please download and install it to replace your current WPSolr Enterprise release.

    salman
    Participant
    1 month ago #45776

    Thank you for the quick response,

    The plugin is sending the events into Algolia now, but the product’s object ID is not sent upon add to cart and other event actions, which need to be sent in Algolia. Please respond accordingly.

    Regards
    Salman

    wpsolr
    Keymaster
    1 month ago #45781

    Can you describe the user actions sequence that leads to the event?

    salman
    Participant
    1 month ago #45782

    The user searches using autocomplete; clicking on a product leads to the product page, and then he adds the product to the cart using the add-to-cart button. The event fires and sends the event name ‘addedToCartObjectIDs’ without having object IDs.

    {
    “eventType”: “conversion”,
    “eventName”: “addedToCartObjectIDs”,
    “eventSubtype”: “addToCart”,
    “index”: “AlgoliaSearch”,
    “objectIDs”: [
    “”
    ],
    “userToken”: “21961c3e-dca4-4e19-a31b-707773b18f63”,
    “timestamp”: 1722873728372
    }

    wpsolr
    Keymaster
    1 month ago #45783

    On the product page url, what are the parameters?

    salman
    Participant
    1 month ago #45784

    Here’s the product page URL:

    (removed by admin)

    • This reply was modified 1 month ago by wpsolr.
    wpsolr
    Keymaster
    1 month ago #45788

    Can you activate the event debugger setting on screen 2.1?

    salman
    Participant
    1 month ago #45789

    Please check, I just enabled the event debugger.

    I am using autocomplete results after disabling “reorder results with user events” to “none”. Otherwise, no results are being shown with suggestions or recommendations.

    salman
    Participant
    1 month ago #45790

    When I click over product links or images in autocomplete, the click event works fine with 200 responses in Algolia, but when I press the add to cart button, the conversion throws an HTTP 422 Error.

    {
    “eventType”: “conversion”,
    “eventName”: “addedToCartObjectIDs”,
    “eventSubtype”: “addToCart”,
    “index”: “AlgoliaSearch”,
    “objectIDs”: [
    “”
    ],
    “userToken”: “21961c3e-dca4-4e19-a31b-707773b18f63”,
    “timestamp”: 1722875941359
    }

    • This reply was modified 1 month ago by salman.
    • This reply was modified 1 month ago by salman. Reason: clarification
    wpsolr
    Keymaster
    1 month ago #45796

    Do you use a plugin for managing the cart?

    salman
    Participant
    1 month ago #45797

    Yes, we are using “Live Cart by WP Engine”

    salman
    Participant
    1 month ago #45798

    I have tried disabling this “Live Cart by WP Engine” plugin, but that doesn’t resolve the issue.

    wpsolr
    Keymaster
    1 month ago #45799

    It could be that your theme is modifying the structure of the WooCommerce ‘adding_to_cart’ JS event.

Viewing 15 posts - 1 through 15 (of 25 total)

You must be logged in to reply to this topic.