Hi,
Thanks for your post!
I just added a fix to the plugin core that will resolve your issue:
https://github.com/duracelltomi/gtm4wp/commit/784747b55a78d059866b36bb518fc7c7ff38be4e
With that, GTM4WP will report step 2 and 3 instead of 3 and 4 if ‘Force shipping to the customer billing address’ option is step.
New plugin release is scheduled on tomorrow (03.19)
Hey man, thank you very much for your reply and for your consideration.
One more question: Could be these the reason why steps 4 and 5 aren’t showing in the Google Analytics Checkout Behavior Report ass well?
I have noticed that the “Event ā Ecommerce Events” tag is firing properly with the event gtm4wp.checkoutOptionEEC and showing the steps 4 and 5 in the dataLayer just a moment before submitting the form and redirecting to the Payment Provider Page.
But in the Google Analytics Checkout Behavior Report I have none of them (0 on each one). And I have Sessions with Transactions, so I can’t understand what I’m doing wrong. I follow each steps of this article:
https://gtm4wp.com/how-to-articles/how-to-setup-enhanced-ecommerce-tracking
Finally I have a few more comments that hope that help with the plugin as well:
1) Storefront has a new feature that is sticky add to cart button on the product page. That sticky button wasn’t firing the gtm4wp.addProductToCartEEC event so I just add the class with javascript like this:
var div1 = document.querySelectorAll(‘a.storefront-sticky-add-to-cart__content-button.button.alt’);
for (var i = 0; i < div1.length; i++) {
div1[i].classList.add(‘single_add_to_cart_button’);
It solved the problem.
2) Woocommerce has a standard widget that can be added to the side column called Recent View Products. I included the widget-product-item class to this widget to measure impressions and clicks thorught your plugin and it worked. I use this code to add the class:
var div2 = document.querySelectorAll(‘.product_list_widget a’);
for (var i = 0; i < div2.length; i++) {
div2[i].classList.add(‘widget-product-item’);
}
Hope it helps!
Hi,
Let’s have a look at your reports after I released the new plugin version to see whether this solves your checkout behavior report issues.
For your other two suggestions: they are great, I hope that others finding this topic can use of this customization a lot!
Hi Thomas, thank you for reply.
Today I updated to the new version of the plugin and I did some tests:
Firstly, the change you did works. Now Shipping Option is step 3 and Payment Option is step 4 (Cart is step 1) in the dataLayer.
But I still couldn’t see step 3 and 4 in the GA checkout behavior report. So I did several tests. The last one was like this:
-Disabling all cache including Cloudflare. Tests in incognito tab as well.
-All plugins deactivated except GTM4WP(1.11.4) and Woocommerce(4.0.0).
-Storefront child theme deactivated. Storefront theme activated(2.5.5).
-Payment Method: Cash on Delivery – Standard from Woocommerce.
-Shipping Method: Local pickup – Standard from Woocommerce.
With all the tests, including the last one, I don’t have any step 3 or 4 (0 on each one) in my Checkout Behavior Analysis.
So I think it’s important to check. Could you take a look please? I will leave to you the last configuration so you can check with the same parameters I did.
https://www.canigo.com.ar/tienda/
Hi,
I’ve just released a new plugin version (v1.11.4) – this includes the fixes I proposed earlier.
Please update the plugin and re-test your checkout pages.
Hi Thomas, I know. I did my tests with the new version of the plugin (v1.11.4).
As I told you in my last comment, now decrease checkout step numbers 3 and 4 if shipping destination is set to ‘Force shipping to the customer billing address’ in WooCommerce.
But Step 3 and 4 aren’t showing in my Checkout Behavior Analysis. The tag is firing, but those 2 steps aren’t working in analytics.
I did my test with all standard features and the new version of the plugin (v1.11.4).
Please check, maybe this problem is affecting everyone.
Hi again Thomas,
I keep testing and testing and finally I think I figured out why steps 3 and 4 weren’t working.
I think you forgot to add this one:
gtm4wp.checkoutStepEEC
To the Step 8: setup helper click tracking, on this page: https://gtm4wp.com/how-to-articles/how-to-setup-enhanced-ecommerce-tracking
I add it and it worked but I don’t know if I’m correct or I shouldn’t did that and something else is broken with the plugin.
Please let me know If I’m correct to think you forgot it or not.
Have a good day!
Adding the gtm4wp.checkoutStepEEC event into a GTM trigger and firing a GA event tag on that event is need to have data in GA so what you found out should be “the” solution š
Great, thanks.
In that case, I would recommend to add that in this page:
https://gtm4wp.com/how-to-articles/how-to-setup-enhanced-ecommerce-tracking
To avoid issues like this in the future.
Have a great day! Great plugin!
Hi Thomas,
The Step 3 option would be great for Digital Products too that don’t have a Shipping Address. I have set force shipping to billing address, but Step 4 is still the checkout and I am also getting a double GTM Event Being fired gtm4wp.checkoutOptionEEC, for the checkout option and step.
Also on Version 1.11.4