Can't Fire WooCommerce E-commerce Event Tags
Dear Support Team,
I am currently using your Clothing 3 template and setting up Google Tag Manager (GTM) for my store. I am running into a critical issue where e-commerce tracking is broken, and I suspect it is due to missing standard WooCommerce hooks in the template layout or something?
The Issues:
- Ecommerce evens Do Not Fire: In GTM Preview mode, no e-commerce events trigger when a product page loads. The data layer completely lacks the standard object for product views.
add_to_cartis Inconsistent:- When I click the mini-cart widget in the upper right corner, the
add_to_cartevent fires correctly. - However, when I am directly on a product page and click the main "Add to Cart" button, the event does not fire at all.
- When I click the mini-cart widget in the upper right corner, the
What I Have Already Tried:
- I am currently testing the setup via Google Site Kit.
- To isolate the issue and avoid conflicts, I completely deactivated Google Site Kit and tried inserting my GTM Container ID and Tag Snippet directly into the SEO Page settings provided by your theme. Unfortunately, tracking still did not work through that method, so I empty them all and reactive the google sit kit.
Because the mini-cart widget works but the main product page doesn't, so I am quite confused, and I tried a lots of ecommerce tags such as purchase, begin_checkout, view_cart, add_payment_info and so on, did not work as well.
Greatly appreciate your help!
While waiting for a response from one of our team members, we recommend to check Support Center where it is highly likely that you will find the answer to your question in no time.
FAQ | Video Tutorials | How to