Home › Forums › WoodMart support forum › Purchase” Tag Failure and Add to Cart Issue in Preview Mode
Purchase” Tag Failure and Add to Cart Issue in Preview Mode
- This topic has 3 replies, 2 voices, and was last updated 2 weeks, 5 days ago by
Luke Nielsen.
-
AuthorPosts
-
February 17, 2025 at 9:01 pm #638822
lost.hinataParticipantDear WoodMart Support Team,
I am using the WoodMart theme on my website easychr.com and have recently integrated Google Tag Manager (GTM) and Google Consent Mode via CookieYes.
Since this setup, I am experiencing two main issues:
1️⃣ The Google Ads “Purchase” tag fails to trigger upon order confirmation, even though:
The “purchase” event is correctly pushed to the dataLayer.
The transaction_id, value, and currency variables are properly transmitted.
GTM does not seem to fire the tag despite these variables being available.
2️⃣ In GTM Preview Mode, Add to Cart works but:The “add_to_cart” event is correctly recorded in the dataLayer, and my Google Ads tag fires.
However, the cart does not update visually and remains stuck in an infinite loading loop.
This issue does not occur on the live site, where everything functions normally.
I am wondering if these issues could be related to script placement within the WoodMart theme.
Have you encountered similar cases involving WooCommerce, GTM, and Google Consent Mode?
Are there any specific settings or recommendations to resolve these errors?I appreciate your help and expertise in troubleshooting this matter.
Best regards,
CédricFebruary 18, 2025 at 11:57 am #638946
Luke NielsenKeymasterHello,
Could you please check how it works with some default WordPress themes like TwentyTwenty Five or WooCommerce Storefront to understand if it is our theme issue or not?
Kind Regards
February 19, 2025 at 5:29 pm #639436
lost.hinataParticipantHi WoodMart Support,
I’m using the WoodMart theme with WooCommerce and integrating Google Tag Manager (GTM) to track e-commerce events like add_to_cart. However, after testing, it seems that these events are not being pushed to the dataLayer, making it impossible to track conversions properly.
What I Have Checked So Far:
GTM is properly installed.
Consent Mode (Axeptio CMP) is working correctly.
The dataLayer is capturing other events (gtm.scrollDepth, axeptio_update), but not add_to_cart.
I checked WooCommerce settings, but there’s no built-in tracking enabled.
No add_to_cart event appears in the browser console after clicking the “Add to Cart” button.My Questions:
Does WoodMart natively support Google Tag Manager e-commerce tracking?
Is there a setting inside WoodMart > Theme Settings that enables/disables dataLayer tracking for WooCommerce?
If WoodMart does not handle dataLayer, should I use a separate plugin like WooCommerce Google Analytics Integration?Steps to Reproduce:
Visit a single product page.
Open the developer console (F12 in Chrome) and type:
js
Copier
Modifier
dataLayer
Click “Add to Cart” and check if an add_to_cart event is pushed.
No add_to_cart event appears in dataLayer.
Could you confirm if WoodMart supports dataLayer for WooCommerce, and where I should check for possible settings?Thanks in advance for your help!
Best regards,
February 20, 2025 at 5:38 pm #639718
Luke NielsenKeymasterHello,
Sorry, we don’t have options in theme settings that are related to the dataLayer.
Did you check how it works on the default WooCommerce Storefront theme? If it doesn’t work on the default Storefront theme then it’s something related to WooCommerce.
Let me know the result.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register