Hello there,
another finding that we have is that both add_payment_info
and add_shipping_info
events are being triggered right when our Checkout page is displayed even though only the billing information form is being displayed at that moment.
Clearly this is caused by the fact that we are using the MultiStep Checkout for WooCommerce plugin to split our checkout page into two screens for better UX. It is obvious that the hooks that you are using to print the tracking scripts are indeed called when the first page of our checkout page is displayed and that’s what’s causing the events to be fired too early.
I myself find it quite complicated to achieve compatibility with the plugin especially while users can even move the different sections of checkout page to the first or second page as they wish. Unless the authors of the plugin actually only render the HTML content when it really gets displayed.
Another solution (achievable without their assistance) I can think of would be to (optionally) disable those 2 events that are triggered on every checkout load and leave just the ones that are triggered by the user when changing shipping/payment option.
I am still discussing with our analyst whether this would make more sense but I though I would check with you whether this is something you would consider implementing.
Thanks in advance for your support!
Honza