Add to Cart Button - GA4

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.

Hello @capodanno,

Thanks for writing in! I have check the trigger add_to_cart which is already added to the class field. The product name, id and sku is added as well.

I am just not sure if the GA Triggers has been set up correctly. Please review this documentation:
https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?client_type=gtm#clear_the_ecommerce_object

Best Regards.