Google Analytics 4 and HikaShop Google Analytics plugin

  • Posts: 19
  • Thank you received: 3
10 months 3 weeks ago #352125

Hi Nicolas,

we checked this. We have the latest version of the plugin, and the measurement ID is correct.

However, looked at plugin code to see what could be the cause and it seems it requires PHP 8 to push data to GA4.

We're still on PHP 7.4.

Can you confirm this is the reason we're not getting any server-side events and let us know if there are any workarounds?

Thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
10 months 3 weeks ago #352126

Hi,

Indeed, the PHP library we use to contact GA4 with the Measurement API requires PHP8.
The check we have in the main file of the plugin on the version of PHP is just there to prevent the order creation / status change from crashing on PHP 7 when the library is loaded just after that check.

I don't see any workaround. It would require changing to another PHP library supporting both PHP7 and the measurement API of GA4 and I don't know any which does that (and it would also require some work on our end to adapt the library so even if it existed, it's outside the scope of a workaround).

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum