Ajax Add to Cart not fired by Stape Plugin Wordpress

The Stape Wordpress doesn’t seem to trigger the add_to_cart event on the Add to Cart button. Do you know what specific event listener it is trying to use. Our add to cart button seems pretty standard, but I could be wrong.

<a href="?add-to-cart=99214" class="btn btn-block text-center add_to_cart_button ajax_add_to_cart" data-product_id="99214" data-product_sku="ADV/V1" data-quantity="1">Add to cart</a>

Hey @chris.mccreery can you please share the site in question?

Hey Dan, at the moment I have implemented my own listener for the add to cart button to fire a datalayer push that is doing the job for now. The sites seems to have some customization but looked like a standard add to cart button with link/css/data

www.infento.com

jQuery(document.body).on('added_to_cart', function(e, fragments, cart_hash, button) {
        var productId = button ? jQuery(button).data('product_id') : null;
        window.dataLayer = window.dataLayer || [];
        window.dataLayer.push({
            event: 'add_to_cart_stape',
            ecommerce: {
                items: [{
                    item_id: productId,
                    quantity: 1
                }]
            }
        });