• Resolved Idan Neeman

    (@idanneeman)


    I’ve noticed an issue with the add_to_cart event in my WordPress setup. My cart uses AJAX, and the event is not triggered immediately. The item is only recognized as added to the cart after refreshing the page or navigating to a different page.

    Could you please advise on how to resolve this issue? Is there a setting or modification that I need to apply to ensure the add_to_cart event is captured immediately with AJAX?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Passionate Brains

    (@passionatebrains)

    Hi, Idan
    Sorry for delay in reply.

    To address the delay with the add_to_cart event, you can use the Measurement Protocol API to capture AJAX events more immediately. Here’s how:

    1. Go to Plugin Settings > Advanced Integration and enable Measurement Protocol API support for different WooCommerce events.
    2. Enter the required API key in the provided field and save your settings.

    Once configured, you should notice the add_to_cart event capturing in real-time without requiring a page refresh.

    Hope this helps! Let me know if you have any further questions.

    Best regards,
    Passionate Brains


Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.