Hi,
It's indeed working differently.
When the payment gateway notifies your server that the payment is made the payment plugin will change the status of the order from "created" to "confirmed". The Universal Analytics plugin will plug itself on the onAfterOrderUpdate event which will be triggered at that time and send a cURL request to GA's Universal Analytics API with the informations of the order.
This is not possible with GA4 as there is no API to be able to send a cURL request from your server to GA.
So there is only the other method to send the order information:
when the customer comes back from the payment gateway, the javascript of the plugin will be added on the page with the order information.
This second method is implemented in both plugins, but it will only work if the thank you page is HikaShop's thank you page, and only if the user is redirected back to the shop after the payment. If you just close the tab of the payment gateway after the payment and aren't redirected back to the shop automatically or by pressing the "go back to the shop" button there, then the plugin won't be able to send the order information.
So that's why I was asking about payment plugins in my previous message.
So things you can check:
- make sure you activated the option to automatically forward the user back to the shop after the payment in the settings of your PayPal account.
- if that still doesn't help, make sure that the "return URL" setting of the PayPal payment method is empty in the settings of the payment method.
Also, this means that if you manually change the status of the order in the backend, it won't be taken into account as it can only be taken into account from the frontend, through the browser of the customer.
Unfortunately, there is nothing we can do to change that as far as I know. The GA4 API doesn't allow for a cURL request after the order like their previous API and I checked the code of GA4 plugins from other ecommerce solutions and they also only notify the purchase event with the Javascript of the browser of the customer upon return from the payment gateway.