Hi,
I am facing a problem in capturing the click event when a user clicks on add to cart button in either the “Recommended for You” product list in a product page or in the “Recently Viewed” product list on any collections page or on the home page.
Product page: https://www.vital-reaction.com/products/earthing-mat
I am able to capture this when I click the add to cart button for the main product, any product in the collection list or in a product displayed in the mega menu.
Collections page: https://www.vital-reaction.com/collections/hydrogen-inhalers
To test this, I am printing product title, product id and price in the console log. Please see the attached screenshot.
Basically, I am trying to send an ‘add_to_cart’ event to GTM whenever a user click on an add to cart button.
Can someone help me out to fix this issue?
Thanks