Hi there. I have Google Tag Manager for WooCommerce PRO installed. I opened a support ticket with them as I have duplicate add_to_cart events firing on both my XStore sites. They tell me it’s due the the ajax_add_to_cart class. What are your thoughts on this?
Their exact message is as follows:
Doubled add_to_cart event on product page is caused by incorrect/unnecessary css class pinned to “add to cart” button. This element shouldn’t have “ajax_add_to_cart” according to WooCommerce theme standards. The Add to cart button on the single page should have “single_add_to_cart_button” css class. In your case, the button has both classes, so the event is doubled (triggered twice by JavaScript).