yireo/Yireo_GoogleTagManager2

Tracking for add_shipping_info is not working anymore

Closed this issue · 1 comments

Hi @jissereitsma,

This line:

'Magento_Checkout/js/model/shipping-save-processor/default': {

was changed in this commit: e4063e1#diff-6e7351aefbdddabe1e1fc31c4e504d112b1bd2ffb341682da845d4bb917f27e1R16

But I believe it was correct in the initial implementation. Could you explain your thought behind the change?

The reason why the JS mixin was moved, was that the original mixin on the shipping-save-processor.js was calling upon the reload of customer data often too soon (before the shipping-information REST API call was finished), while the mixin on the shipping-save-processor/default.js file actually waits for the REST API call to be finished.

Could you check to see if the mixin is working? This can be done by checking for the console log message customerData reload (shipping-save-processor-mixin.js) undefined. If it is not there, it would explain why things are working. If so, are you aware of another shipping-save-processor that is added on top of the regular checkout? Most likely the registerProcessor() function would be called for this.