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

#   Google Analytics 4 plugin: discrepancies in revenue reporting

##

- **[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") Topic Author
- [ Offline](/forum/user/76678-pvukovic)

Less More

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

3 years 3 weeks ago [\#356019](#356019) by [pvukovic](/forum/user/76678-pvukovic "View pvukovic's Profile")  *[Google Analytics 4 plugin: discrepancies in revenue reporting](/forum/30-integrations/907165-google-analytics-4-plugin-discrepancies-in-revenue-reporting#356019 "-- url of the page with the problem -- :   winescholarguild.org  -- HikaShop version -- : 4.7.3 -- Joomla version -- : 3.10 -- PHP version -- : 8.0.27  Hi,  we noticed a discrepancy in GA4 revenue reporting compared to Hikashop.  For example, for September 2023, GA4 reported a 23% higher monthly sales figure compared to Hikashop. With old GA, we had small discrepancies in the range of 1%-3%, but after switching to GA4 plugin, we have this situation.  Upon comparing order amounts captured in GA4 and in Hikashop, we noticed a few issues - here are some examples:  1. Order C2L9M8&#42;&#42;&#42; – Hikashop value $1,603.86, GA4 $2,659.98 (1.65x greater) 2. Order C2L9N9&#42;&#42;&#42; – Hikashop $969.30, GA4 $1,938.60 (2x greater) 3. Order C2L9M8&#42;&#42;&#42; – Hikashop value $906.45, GA4 $906.45 (ok, identical)  We would like to know why these differences are occurring and what is the best approach to fix this issue?  Thank you.")* was created by *[pvukovic](/forum/user/76678-pvukovic "View pvukovic's Profile")*

-- url of the page with the problem -- : [ winescholarguild.org](https://winescholarguild.org)
-- HikaShop version -- : 4.7.3
-- Joomla version -- : 3.10
-- PHP version -- : 8.0.27

Hi,

we noticed a discrepancy in GA4 revenue reporting compared to Hikashop.

For example, for September 2023, GA4 reported a 23% higher monthly sales figure compared to Hikashop. With old GA, we had small discrepancies in the range of 1%-3%, but after switching to GA4 plugin, we have this situation.

Upon comparing order amounts captured in GA4 and in Hikashop, we noticed a few issues - here are some examples:

1. Order C2L9M8*** – Hikashop value $1,603.86, GA4 $2,659.98 (**1.65x greater**)
2. Order C2L9N9*** – Hikashop $969.30, GA4 $1,938.60 (**2x greater**)
3. Order C2L9M8*** – Hikashop value $906.45, GA4 $906.45 (**ok, identical**)

We would like to know why these differences are occurring and what is the best approach to fix this issue?

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ludGVncmF0aW9ucy85MDcxNjUtZ29vZ2xlLWFuYWx5dGljcy00LXBsdWdpbi1kaXNjcmVwYW5jaWVzLWluLXJldmVudWUtcmVwb3J0aW5nP3RtcGw9bWFya2Rvd24=) 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: 86561
- Thank you received: 14307
-
-

3 years 3 weeks ago [\#356024](#356024) 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 plugin: discrepancies in revenue reporting](/forum/30-integrations/907165-google-analytics-4-plugin-discrepancies-in-revenue-reporting#356024 "-- url of the page with the problem -- :   winescholarguild.org  -- HikaShop version -- : 4.7.3 -- Joomla version -- : 3.10 -- PHP version -- : 8.0.27  Hi,  we noticed a discrepancy in GA4 revenue reporting compared to Hikashop.  For example, for September 2023, GA4 reported a 23% higher monthly sales figure compared to Hikashop. With old GA, we had small discrepancies in the range of 1%-3%, but after switching to GA4 plugin, we have this situation.  Upon comparing order amounts captured in GA4 and in Hikashop, we noticed a few issues - here are some examples:  1. Order C2L9M8&#42;&#42;&#42; – Hikashop value $1,603.86, GA4 $2,659.98 (1.65x greater) 2. Order C2L9N9&#42;&#42;&#42; – Hikashop $969.30, GA4 $1,938.60 (2x greater) 3. Order C2L9M8&#42;&#42;&#42; – Hikashop value $906.45, GA4 $906.45 (ok, identical)  We would like to know why these differences are occurring and what is the best approach to fix this issue?  Thank you.")*

Hi,

First, could you provide the screenshot of the details of an order with the issue (like order C2L9N9*** ) ? And do you have any details for that order on GA ?
Could it be that the order was actually reported twice to GA and that GA added the amount for both instead of counting it as the same ?
Normally that should not be a problem as GA properly handle cases where the same transaction id is sent several times:
[ support.google.com/analytics/answer/12313109](https://support.google.com/analytics/answer/12313109)

The following user(s) said Thank You: [pvukovic](/forum/user/76678-pvukovic "View pvukovic's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ludGVncmF0aW9ucy85MDcxNjUtZ29vZ2xlLWFuYWx5dGljcy00LXBsdWdpbi1kaXNjcmVwYW5jaWVzLWluLXJldmVudWUtcmVwb3J0aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[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") Topic Author
- [ Offline](/forum/user/76678-pvukovic)

Less More

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

2 years 11 months ago -  2 years 11 months ago [\#357490](#357490) 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 plugin: discrepancies in revenue reporting](/forum/30-integrations/907165-google-analytics-4-plugin-discrepancies-in-revenue-reporting#357490 "-- url of the page with the problem -- :   winescholarguild.org  -- HikaShop version -- : 4.7.3 -- Joomla version -- : 3.10 -- PHP version -- : 8.0.27  Hi,  we noticed a discrepancy in GA4 revenue reporting compared to Hikashop.  For example, for September 2023, GA4 reported a 23% higher monthly sales figure compared to Hikashop. With old GA, we had small discrepancies in the range of 1%-3%, but after switching to GA4 plugin, we have this situation.  Upon comparing order amounts captured in GA4 and in Hikashop, we noticed a few issues - here are some examples:  1. Order C2L9M8&#42;&#42;&#42; – Hikashop value $1,603.86, GA4 $2,659.98 (1.65x greater) 2. Order C2L9N9&#42;&#42;&#42; – Hikashop $969.30, GA4 $1,938.60 (2x greater) 3. Order C2L9M8&#42;&#42;&#42; – Hikashop value $906.45, GA4 $906.45 (ok, identical)  We would like to know why these differences are occurring and what is the best approach to fix this issue?  Thank you.")*

Hi Nicolas,

I apologize for the very late reply, we have been working on a Joomla 4 switch and decided to deal with this problem after.

The problem is still present, so I conducted a fresh investigation and compared the orders from Dec 11, 2023 in Google Analytics and Hikashop.

To get orders from Google Analytics, I am using the Explore feature with this setup: [ tinyurl.com/yvxesx3l](http://tinyurl.com/yvxesx3l)
This is being compared with a Hikashop orders list for the same date: [ tinyurl.com/ymymcage](http://tinyurl.com/ymymcage)

Out of 123 analyzed orders, 31 (roughly 25%) had various discrepancies.

Here are my findings - I am using a Google Doc because there is a limit to the number of links I can include in a post:
[ docs.google.com/document/d/1ZPDPFh3af6zJ...jr4/edit?usp=sharing](https://docs.google.com/document/d/1ZPDPFh3af6zJhuyneclKAkYS2qFPUV--jo936qtAjr4/edit?usp=sharing)

I am primarily interested in solving problem #3 (order value discrepancy), as it is severely affecting our GA reporting accuracy. However, if you have suggestions for the other two issues, I am happy to hear them.

P.S. Is there a logging feature in the HikaShop analytics plugin that we could turn on to verify that the correct data is being sent?

Thanks,
Peter

Last edit: 2 years 11 months ago by [pvukovic](/forum/user/76678-pvukovic "View pvukovic's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ludGVncmF0aW9ucy85MDcxNjUtZ29vZ2xlLWFuYWx5dGljcy00LXBsdWdpbi1kaXNjcmVwYW5jaWVzLWluLXJldmVudWUtcmVwb3J0aW5nP3RtcGw9bWFya2Rvd24=) 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: 86561
- Thank you received: 14307
-
-

2 years 11 months ago [\#357522](#357522) 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 plugin: discrepancies in revenue reporting](/forum/30-integrations/907165-google-analytics-4-plugin-discrepancies-in-revenue-reporting#357522 "-- url of the page with the problem -- :   winescholarguild.org  -- HikaShop version -- : 4.7.3 -- Joomla version -- : 3.10 -- PHP version -- : 8.0.27  Hi,  we noticed a discrepancy in GA4 revenue reporting compared to Hikashop.  For example, for September 2023, GA4 reported a 23% higher monthly sales figure compared to Hikashop. With old GA, we had small discrepancies in the range of 1%-3%, but after switching to GA4 plugin, we have this situation.  Upon comparing order amounts captured in GA4 and in Hikashop, we noticed a few issues - here are some examples:  1. Order C2L9M8&#42;&#42;&#42; – Hikashop value $1,603.86, GA4 $2,659.98 (1.65x greater) 2. Order C2L9N9&#42;&#42;&#42; – Hikashop $969.30, GA4 $1,938.60 (2x greater) 3. Order C2L9M8&#42;&#42;&#42; – Hikashop value $906.45, GA4 $906.45 (ok, identical)  We would like to know why these differences are occurring and what is the best approach to fix this issue?  Thank you.")*

Hi,

1. Regarding the time discrepancy, it's probably due to the timezone difference between your website and Google Analytics;

2. Regarding the VAT, this depends on the "show taxed prices" setting of the HikaShop configuration. If it's configured to display prices without taxes, then the GA4 plugin will send the amounts without tax to GA, and if it's configured to display prices with taxes, then the GA4 plugin will send the amounts with taxes.

3. I can see that this order total is 108.90, with 18.90 of taxes, so that's a total without taxes of 90. That's precisely half of the amount in GA. So it might be that the amount was reported twice to GA.
The plugin actually has actually two ways to send the data to GA. One with javascript at the end of the checkout, and one with a server to server connection if the measurement ID is provided.
It might be that when both are triggered for an order, GA actually count the amounts twice ?
Supposing this is the case, what you can try is to add the code:
return '';
after the line:
private function getPurchaseJS() {
in the file plugins/system/hikashop_ga4/hikashop_ga4.php
This will skip the javascript transfer of the order data so that only the server to server transfer will be done.
Maybe having a setting to deactivate the javascript transfer might be necessary in order to circumvent that issue...

4. If you activate the "debug" setting of the plugin, you will get debug data of the server to server connection. It is necessary because it's not possible to get the data sent to GA otherwise. But the JS data is not logged because it can be checked directly in the browser of the user when debugging the plugin.

The following user(s) said Thank You: [jcamus](/forum/user/33993-jcamus "View jcamus's Profile"), [pvukovic](/forum/user/76678-pvukovic "View pvukovic's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ludGVncmF0aW9ucy85MDcxNjUtZ29vZ2xlLWFuYWx5dGljcy00LXBsdWdpbi1kaXNjcmVwYW5jaWVzLWluLXJldmVudWUtcmVwb3J0aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[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") Topic Author
- [ Offline](/forum/user/76678-pvukovic)

Less More

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

2 years 11 months ago [\#357542](#357542) 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 plugin: discrepancies in revenue reporting](/forum/30-integrations/907165-google-analytics-4-plugin-discrepancies-in-revenue-reporting#357542 "-- url of the page with the problem -- :   winescholarguild.org  -- HikaShop version -- : 4.7.3 -- Joomla version -- : 3.10 -- PHP version -- : 8.0.27  Hi,  we noticed a discrepancy in GA4 revenue reporting compared to Hikashop.  For example, for September 2023, GA4 reported a 23% higher monthly sales figure compared to Hikashop. With old GA, we had small discrepancies in the range of 1%-3%, but after switching to GA4 plugin, we have this situation.  Upon comparing order amounts captured in GA4 and in Hikashop, we noticed a few issues - here are some examples:  1. Order C2L9M8&#42;&#42;&#42; – Hikashop value $1,603.86, GA4 $2,659.98 (1.65x greater) 2. Order C2L9N9&#42;&#42;&#42; – Hikashop $969.30, GA4 $1,938.60 (2x greater) 3. Order C2L9M8&#42;&#42;&#42; – Hikashop value $906.45, GA4 $906.45 (ok, identical)  We would like to know why these differences are occurring and what is the best approach to fix this issue?  Thank you.")*

Thank you, I will try that and report back after a few days with fresh data.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ludGVncmF0aW9ucy85MDcxNjUtZ29vZ2xlLWFuYWx5dGljcy00LXBsdWdpbi1kaXNjcmVwYW5jaWVzLWluLXJldmVudWUtcmVwb3J0aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[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") Topic Author
- [ Offline](/forum/user/76678-pvukovic)

Less More

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

2 years 10 months ago [\#357653](#357653) 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 plugin: discrepancies in revenue reporting](/forum/30-integrations/907165-google-analytics-4-plugin-discrepancies-in-revenue-reporting#357653 "-- url of the page with the problem -- :   winescholarguild.org  -- HikaShop version -- : 4.7.3 -- Joomla version -- : 3.10 -- PHP version -- : 8.0.27  Hi,  we noticed a discrepancy in GA4 revenue reporting compared to Hikashop.  For example, for September 2023, GA4 reported a 23% higher monthly sales figure compared to Hikashop. With old GA, we had small discrepancies in the range of 1%-3%, but after switching to GA4 plugin, we have this situation.  Upon comparing order amounts captured in GA4 and in Hikashop, we noticed a few issues - here are some examples:  1. Order C2L9M8&#42;&#42;&#42; – Hikashop value $1,603.86, GA4 $2,659.98 (1.65x greater) 2. Order C2L9N9&#42;&#42;&#42; – Hikashop $969.30, GA4 $1,938.60 (2x greater) 3. Order C2L9M8&#42;&#42;&#42; – Hikashop value $906.45, GA4 $906.45 (ok, identical)  We would like to know why these differences are occurring and what is the best approach to fix this issue?  Thank you.")*

Hi, I can confirm the suggested fix works (adding a return statement to getPurchaseJS() function).

Please let us know when you officially update the plugin and many thanks for the help.

Peter

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ludGVncmF0aW9ucy85MDcxNjUtZ29vZ2xlLWFuYWx5dGljcy00LXBsdWdpbi1kaXNjcmVwYW5jaWVzLWluLXJldmVudWUtcmVwb3J0aW5nP3RtcGw9bWFya2Rvd24=) 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: 86561
- Thank you received: 14307
-
-

2 years 10 months ago [\#357656](#357656) 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 plugin: discrepancies in revenue reporting](/forum/30-integrations/907165-google-analytics-4-plugin-discrepancies-in-revenue-reporting#357656 "-- url of the page with the problem -- :   winescholarguild.org  -- HikaShop version -- : 4.7.3 -- Joomla version -- : 3.10 -- PHP version -- : 8.0.27  Hi,  we noticed a discrepancy in GA4 revenue reporting compared to Hikashop.  For example, for September 2023, GA4 reported a 23% higher monthly sales figure compared to Hikashop. With old GA, we had small discrepancies in the range of 1%-3%, but after switching to GA4 plugin, we have this situation.  Upon comparing order amounts captured in GA4 and in Hikashop, we noticed a few issues - here are some examples:  1. Order C2L9M8&#42;&#42;&#42; – Hikashop value $1,603.86, GA4 $2,659.98 (1.65x greater) 2. Order C2L9N9&#42;&#42;&#42; – Hikashop $969.30, GA4 $1,938.60 (2x greater) 3. Order C2L9M8&#42;&#42;&#42; – Hikashop value $906.45, GA4 $906.45 (ok, identical)  We would like to know why these differences are occurring and what is the best approach to fix this issue?  Thank you.")*

Hi,

Thank you for your feedback. We're going to add an extra option to the GA4 plugin in order to take this into account.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ludGVncmF0aW9ucy85MDcxNjUtZ29vZ2xlLWFuYWx5dGljcy00LXBsdWdpbi1kaXNjcmVwYW5jaWVzLWluLXJldmVudWUtcmVwb3J0aW5nP3RtcGw9bWFya2Rvd24=) 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.059 seconds

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