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

#   Wrong sales statistics in Google Analytics

##

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

Less More

- Posts: 73
- Thank you received: 2
-
-

10 years 6 months ago -  10 years 6 months ago [\#241071](#241071) by [mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")  *[Wrong sales statistics in Google Analytics](/forum/36-reports-statistics/884706-wrong-sales-statistics-in-google-analytics#241071 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5 -- PHP version -- : 5.3.29  Hello, I have enabled HikaShop Google Analytics plugin, but I see wrong statistics in GA. See attached examples. I understand that Orders page in Hikashop doesn't include shipping. Let me choose one of the orders and show detailed view. Let's choose order number 138. I attached screenshot for this order. As you can see from screenshot - user paid 184.4 AUD. But I see 319.5 AUD for this order in GA. I also attached my plugin confuguration.")* was created by *[mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.5
-- PHP version -- : 5.3.29

Hello, I have enabled HikaShop Google Analytics plugin, but I see wrong statistics in GA.
See attached examples.
I understand that Orders page in Hikashop doesn't include shipping. Let me choose one of the orders and show detailed view. Let's choose order number 138. I attached screenshot for this order. As you can see from screenshot - user paid 184.4 AUD. But I see 319.5 AUD for this order in GA.
I also attached my plugin confuguration.

- [ ![GA&#95;orders.png](/forum/attachment/31646) ](/forum/attachment/31646 "GA&#95;orders.png") [ ](/forum/attachment/31646?download=1 "GA&#95;orders.png")
- [ ![joomla&#95;orders.png](/forum/attachment/31647) ](/forum/attachment/31647 "joomla&#95;orders.png") [ ](/forum/attachment/31647?download=1 "joomla&#95;orders.png")
- [ ![138.png](/forum/attachment/31648) ](/forum/attachment/31648 "138.png") [ ](/forum/attachment/31648?download=1 "138.png")
- [ ![screenshot-travelsat&#95;com&#95;au&#95;2016-05-25&#95;12-01-03.png](/forum/attachment/31649) ](/forum/attachment/31649 "...5&#95;12-01-03.png") [ ](/forum/attachment/31649?download=1 "...5&#95;12-01-03.png")

Last edit: 10 years 6 months ago by [mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 6 months ago [\#241082](#241082) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Wrong sales statistics in Google Analytics](/forum/36-reports-statistics/884706-wrong-sales-statistics-in-google-analytics#241082 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5 -- PHP version -- : 5.3.29  Hello, I have enabled HikaShop Google Analytics plugin, but I see wrong statistics in GA. See attached examples. I understand that Orders page in Hikashop doesn't include shipping. Let me choose one of the orders and show detailed view. Let's choose order number 138. I attached screenshot for this order. As you can see from screenshot - user paid 184.4 AUD. But I see 319.5 AUD for this order in GA. I also attached my plugin confuguration.")*

Hi,

What is your Shop currency ? US Dollar or CAD Dollar ?

It seems that the difference is the conversion rate, on you shop the currency seems to be US dollar and the google analytics account is set in CAD Dollar. That could explain that difference.

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

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

Less More

- Posts: 73
- Thank you received: 2
-
-

10 years 6 months ago -  10 years 6 months ago [\#241225](#241225) by [mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")  Replied by *[mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")* on topic *[Wrong sales statistics in Google Analytics](/forum/36-reports-statistics/884706-wrong-sales-statistics-in-google-analytics#241225 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5 -- PHP version -- : 5.3.29  Hello, I have enabled HikaShop Google Analytics plugin, but I see wrong statistics in GA. See attached examples. I understand that Orders page in Hikashop doesn't include shipping. Let me choose one of the orders and show detailed view. Let's choose order number 138. I attached screenshot for this order. As you can see from screenshot - user paid 184.4 AUD. But I see 319.5 AUD for this order in GA. I also attached my plugin confuguration.")*

I am using AUD anywhere, but I don't really think that problem is in the currency. For example - see order 136. GA showing almost twice bigger price than hikashop orders page. But have a look at order 131 - GA showing price that is less than in Hikashop orders page. Such things cannot be explained by currency differences.

Last edit: 10 years 6 months ago by [mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile").

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

10 years 6 months ago [\#241238](#241238) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Wrong sales statistics in Google Analytics](/forum/36-reports-statistics/884706-wrong-sales-statistics-in-google-analytics#241238 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5 -- PHP version -- : 5.3.29  Hello, I have enabled HikaShop Google Analytics plugin, but I see wrong statistics in GA. See attached examples. I understand that Orders page in Hikashop doesn't include shipping. Let me choose one of the orders and show detailed view. Let's choose order number 138. I attached screenshot for this order. As you can see from screenshot - user paid 184.4 AUD. But I see 319.5 AUD for this order in GA. I also attached my plugin confuguration.")*

Hi,

I don't see why it would do that.
The GA plugin uses the order_full_price variable of the order, which contains the total amount of the order. And that's what is also used on your backend listing.

One thing I noticed while checking the code of the plugin is that the currency of the order is not sent to GA (it shouldn't matter normally and it's not mandatory), but mainly that could help.
Try to add the code: Code:

, "currency: "'.$currencyInfo-&gt;currency_code.'"

after the code: Code:

"tax": "' . round($tax, 2) . '"

in the file plugins/system/hikashopanalytics/hikashopanalytics.php
and that will add the currency of the order to the request sent to GA. That's all I got.

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

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

Less More

- Posts: 73
- Thank you received: 2
-
-

10 years 5 months ago [\#241846](#241846) by [mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")  Replied by *[mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")* on topic *[Wrong sales statistics in Google Analytics](/forum/36-reports-statistics/884706-wrong-sales-statistics-in-google-analytics#241846 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5 -- PHP version -- : 5.3.29  Hello, I have enabled HikaShop Google Analytics plugin, but I see wrong statistics in GA. See attached examples. I understand that Orders page in Hikashop doesn't include shipping. Let me choose one of the orders and show detailed view. Let's choose order number 138. I attached screenshot for this order. As you can see from screenshot - user paid 184.4 AUD. But I see 319.5 AUD for this order in GA. I also attached my plugin confuguration.")*

Seems all is fine after adding your code except tax value. Have a look at attachments.

- [ ![hika1.jpg](/forum/attachment/31822) ](/forum/attachment/31822 "hika1.jpg") [ ](/forum/attachment/31822?download=1 "hika1.jpg")
- [ ![hika2.png](/forum/attachment/31823) ](/forum/attachment/31823 "hika2.png") [ ](/forum/attachment/31823?download=1 "hika2.png")

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

10 years 5 months ago [\#241875](#241875) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Wrong sales statistics in Google Analytics](/forum/36-reports-statistics/884706-wrong-sales-statistics-in-google-analytics#241875 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5 -- PHP version -- : 5.3.29  Hello, I have enabled HikaShop Google Analytics plugin, but I see wrong statistics in GA. See attached examples. I understand that Orders page in Hikashop doesn't include shipping. Let me choose one of the orders and show detailed view. Let's choose order number 138. I attached screenshot for this order. As you can see from screenshot - user paid 184.4 AUD. But I see 319.5 AUD for this order in GA. I also attached my plugin confuguration.")*

Hi,

Try changing the line:
$tax = $order-&gt;order_subtotal_no_vat + $order-&gt;order_shipping_tax + $order-&gt;order_discount_tax;

to:
$tax = ($order-&gt;order_subtotal - $order-&gt;order_subtotal_no_vat) + $order-&gt;order_shipping_tax + $order-&gt;order_discount_tax + $order-&gt;order_payment_tax;

in the same file.

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

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

Less More

- Posts: 73
- Thank you received: 2
-
-

10 years 5 months ago [\#242616](#242616) by [mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")  Replied by *[mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")* on topic *[Wrong sales statistics in Google Analytics](/forum/36-reports-statistics/884706-wrong-sales-statistics-in-google-analytics#242616 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5 -- PHP version -- : 5.3.29  Hello, I have enabled HikaShop Google Analytics plugin, but I see wrong statistics in GA. See attached examples. I understand that Orders page in Hikashop doesn't include shipping. Let me choose one of the orders and show detailed view. Let's choose order number 138. I attached screenshot for this order. As you can see from screenshot - user paid 184.4 AUD. But I see 319.5 AUD for this order in GA. I also attached my plugin confuguration.")*

Didn't help.

- [ ![Screenshot&#95;115.png](/forum/attachment/31972) ](/forum/attachment/31972 "...enshot&#95;115.png") [ ](/forum/attachment/31972?download=1 "...enshot&#95;115.png")
- [ ![Untitled.png](/forum/attachment/31973) ](/forum/attachment/31973 "Untitled.png") [ ](/forum/attachment/31973?download=1 "Untitled.png")

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

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

Less More

- Posts: 73
- Thank you received: 2
-
-

10 years 5 months ago [\#242927](#242927) by [mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")  Replied by *[mypetfly](/forum/user/39734-mypetfly "View mypetfly's Profile")* on topic *[Wrong sales statistics in Google Analytics](/forum/36-reports-statistics/884706-wrong-sales-statistics-in-google-analytics#242927 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5 -- PHP version -- : 5.3.29  Hello, I have enabled HikaShop Google Analytics plugin, but I see wrong statistics in GA. See attached examples. I understand that Orders page in Hikashop doesn't include shipping. Let me choose one of the orders and show detailed view. Let's choose order number 138. I attached screenshot for this order. As you can see from screenshot - user paid 184.4 AUD. But I see 319.5 AUD for this order in GA. I also attached my plugin confuguration.")*

Any news on it?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 5 months ago [\#243906](#243906) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Wrong sales statistics in Google Analytics](/forum/36-reports-statistics/884706-wrong-sales-statistics-in-google-analytics#243906 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.5 -- PHP version -- : 5.3.29  Hello, I have enabled HikaShop Google Analytics plugin, but I see wrong statistics in GA. See attached examples. I understand that Orders page in Hikashop doesn't include shipping. Let me choose one of the orders and show detailed view. Let's choose order number 138. I attached screenshot for this order. As you can see from screenshot - user paid 184.4 AUD. But I see 319.5 AUD for this order in GA. I also attached my plugin confuguration.")*

Hi,

Cf : [ developers.google.com/analytics/devguide...nalyticsjs/ecommerce](https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce)

Your order have 10% taxes.
Total : 18.05 (16.41 + 1.64)

So we can see how the different parts are composed (with a little approximation due to some rouding).
Subtotal: $12.00 (10.90 + 1.1)
Shipping: $6.05 (5.5 + 0.55)

The 11.46 you have in Google Analytics reports can be processed like that :
12 + 1.1 - 1.64 = 11.46
Which does not have any logical sense.

What you can do is activate the "debug" mode in the Google Analytics plugin so you will have some trace in the HikaShop payment log for the calls made to the analytics plateform.
There you will be able to see what content has been processed for the tax.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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