[Skip to main content](#vessel-content)

#   Google Analytics 4 and HikaShop Google Analytics plugin

##

- **[pvukovic](/forum/user/76678-pvukovic "View pvukovic's Profile")**
- [![pvukovic's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/76678-pvukovic "View pvukovic's Profile")
- [ Offline](/forum/user/76678-pvukovic)

Less More

- Posts: 19
- Thank you received: 3
-
-

3 years 5 months ago [\#352125](#352125) by [pvukovic](/forum/user/76678-pvukovic "View pvukovic's Profile")  Replied by *[pvukovic](/forum/user/76678-pvukovic "View pvukovic's Profile")* on topic *[Google Analytics 4 and HikaShop Google Analytics plugin](/forum/25-install-update/904326-google-analytics-4-and-hikashop-google-analytics-plugin?start=40#352125 "Hi,  I think I have a problem with Google Analytics 4 :  In the &quot;HikaShop Google Analytics plugin&quot;, we can set up an account with a format 'UA-XXXXX-X' If I create a property with the older version (Universal Analytics), the format corresponds.  But with Google Analytics 4, I have a property with this format : XXXXXXXXX  And of course, I have this error probably because I use my account XXXXXXXXX. I have this error on the checkout page, not on the home or product page for example.  Is this plugin compatible with GA4 and how do I configure it?  Notes : - I would like to point out that my account seems to be well connected because I'm receiving data from Google Analytics. - The first warning ( 8 ) is probaly more related to the Mondial Relay plugin.  Thanks in advance for your help.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDMyNi1nb29nbGUtYW5hbHl0aWNzLTQtYW5kLWhpa2FzaG9wLWdvb2dsZS1hbmFseXRpY3MtcGx1Z2luP3N0YXJ0PTQwJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14296
-
-

3 years 5 months ago [\#352126](#352126) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Google Analytics 4 and HikaShop Google Analytics plugin](/forum/25-install-update/904326-google-analytics-4-and-hikashop-google-analytics-plugin?start=40#352126 "Hi,  I think I have a problem with Google Analytics 4 :  In the &quot;HikaShop Google Analytics plugin&quot;, we can set up an account with a format 'UA-XXXXX-X' If I create a property with the older version (Universal Analytics), the format corresponds.  But with Google Analytics 4, I have a property with this format : XXXXXXXXX  And of course, I have this error probably because I use my account XXXXXXXXX. I have this error on the checkout page, not on the home or product page for example.  Is this plugin compatible with GA4 and how do I configure it?  Notes : - I would like to point out that my account seems to be well connected because I'm receiving data from Google Analytics. - The first warning ( 8 ) is probaly more related to the Mondial Relay plugin.  Thanks in advance for your help.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDMyNi1nb29nbGUtYW5hbHl0aWNzLTQtYW5kLWhpa2FzaG9wLWdvb2dsZS1hbmFseXRpY3MtcGx1Z2luP3N0YXJ0PTQwJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.046 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
