add_to_cart tracking incompatible with QuadLayers Direct Checkout for WooCommerce Pro Plugin #475
Labels
needs feedback
The issue/PR needs a response from any of the parties involved in the issue.
type: compatibility
The issue/PR is to address or add compatibility.
Describe the bug:
Your plugin expects that the added_to_cart event will come with a button parameter. The QuadLayers Direct Checkout for WooCommerce Pro Plugin does not supply such a parameter upon use of its AJAX originated button, causing the Google Analytics Integration tracking to fail.
Very similar to #382.
Your plugin's code, classic.js L52 v2.1.8:
QuadLayers Direct Checkout for WooCommerce Pro Plugin code, qlwcdc-pro.js L113 v3.0.2 (code not available in public source control):
Steps to reproduce:
Expected behavior:
The add_to_cart event is triggered and succeeds as usual
Actual behavior:
Failure to track action and interruption of the Direct Checkout plugin. Console error: "Google Analytics for WooCommerce: Could not read product ID from the button given in
added_to_cart
event. Check whether WooCommerce Core events or elements are malformed by other extensions."Additional details:
As a workaround, the Direct Checkout plugin can be manually edited like so:
The text was updated successfully, but these errors were encountered: