This topic was closed before I had a chance to test and respond. I’ve added exactly what your screenshot shows, and still no Add to Cart event is tracked in Google Analytics (GA4).
You might be assuming I know more than I do—was there some CSS styling I need to add to correspond to that class? I’m asking if there’s more steps I need to take to make your suggestion work…
Also, for the custom attribute, I notice you had add-to-cart, but my trigger is add_to_cart. I tried both name=add-to-cart and name=add_to_cart but nothing happened.