frieshansen
Forum Replies Created
-
OK, we´re now back to Woocommerce.php from d465b536a22fd0276850690e864be858a5adde5f and Base.php from unchanged Ver. 5.3.0.
I´ve searched the whole log but there are no other entries for order id “12345” or order number “54321”.
Don´t know if that´s also important – we´ve a lot messages like this in the log (seems like nearly every visit):[16-Apr-2025 07:05:33 UTC] Matomo: ServerSideVisitorId: visitor ID cookie missing from request
[16-Apr-2025 07:05:33 UTC] Matomo: ServerSideVisitorId: visitor ID cookie missing from request
[16-Apr-2025 07:05:33 UTC] Matomo: ServerSideVisitorId: forcing use of server side visitor ID
[16-Apr-2025 07:05:42 UTC] Matomo: ServerSideVisitorId: visitor ID cookie missing from request
[16-Apr-2025 07:05:42 UTC] Matomo: ServerSideVisitorId: no visitor ID in Woocommerce session, generating a new oneHi – I am very interested in the details.
After replacing /classes/WpMatomo/Ecommerce/Base.php and /classes/WpMatomo/Ecommerce/Woocommerce.php from your last post (469f3c6c3432ffd7f80489f10f6cefe42386f316) the problem is back again:
These are the messages in the log for the order above:
[16-Apr-2025 05:12:38 UTC] Matomo: Order ID = 12345 status changed from pending to processing, attempting to track it
[16-Apr-2025 05:12:38 UTC] Matomo: Matomo new order 12345
[16-Apr-2025 05:12:38 UTC] Matomo: Order 12345 with order number 54321 has status: processing
[16-Apr-2025 05:12:38 UTC] Matomo: Tracked ecommerce order 12345 with number 54321
[16-Apr-2025 05:12:42 UTC] Matomo: Ignoring already tracked order 12345Here´s an example with an correctly tracked order (Base.php and Woocommerce.php are the same):
[15-Apr-2025 17:52:08 UTC] Matomo: Matomo new order 12344
[15-Apr-2025 17:52:08 UTC] Matomo: Order 12344 with order number 54320 has status: processing
[15-Apr-2025 17:52:08 UTC] Matomo: Tracked ecommerce order 12344 with number 54320
[15-Apr-2025 17:52:08 UTC] Matomo: Order ID = 12344 status changed from pending to processing, attempting to track it
[15-Apr-2025 17:52:08 UTC] Matomo: Matomo new order 12344
[15-Apr-2025 17:52:08 UTC] Matomo: Order 12344 with order number 54320 has status: processing
[15-Apr-2025 17:52:08 UTC] Matomo: Tracked ecommerce order 12344 with number 54320Hi,
the items are added to cart with an AJAX call. So far I have not found any commonality in the orders that failed to track.
But we´ve replaced the Woocommerce.php from your link and watched the orders a few days now – it looks very good. Seems the commented line did the trick. We will continue to observe it, but since the replacement we have not had one single failure – thanks! We also activated logging and let it run for this week – if something should come, I can deliver a little more input.Hi,
please see the attached screenshot from our system.
Like in your Demoshop, sometimes there is an abandoned Cart triggered and then the order doesn´t get counted as conversion. This is the case in the upper part of the image. In the lower part is an order which is correctly counted as conversion.
If we rollback to any version of the plugin before 4.15.3 this problem doesn´t exist.It now works as expected – thanks for the fix.
Thanks for the fast feedback. I deactivated woocommerce on staging and then it worked. But this is not possible on production. There is nothing urgent about it – I would be happy if it was taken into account in one of the next updates.