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

#   Analytics plugin sending incorrect number of items and amounts to GA

##

- **[ogosense](/forum/user/29096-ogosense "View ogosense's Profile")**
- [![ogosense's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar29096.png)](/forum/user/29096-ogosense "View ogosense's Profile") Topic Author
- [ Offline](/forum/user/29096-ogosense)

Less More

- Posts: 19
- Thank you received: 0
-
- [](http://www.ogosense.com)
-

9 years 6 months ago [\#269724](#269724) by [ogosense](/forum/user/29096-ogosense "View ogosense's Profile")  *[Analytics plugin sending incorrect number of items and amounts to GA](/forum/30-integrations/890290-analytics-plugin-sending-incorrect-number-of-items-and-amounts-to-ga#269724 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6  Hi,  We are having a problem with HikaShop analytics plugin. We are using two payment methods on the site: - standard PayPal - PayPal Pro (credit card)  Standard Paypal method was sending zero revenue amounts to GA and credit card method was sending revenue and items number multiplied by 2,3 or even 5 in some cases.  Following a similar thread on the forum I decided to update analytics plugin to one from HikaShop version 3.0.1. After that, I got correct numbers for orders completed through standard PayPal plugin, but ones made with credit card were still having issues with multiplied values.  I am assuming that multiplication happens when somebody enters incorrect credit card data and tries again data gets multiplied by the number of retries, because some of the orders made by credit card actually show correct numbers (including two test ones I created).  Attached are the settings for the plugin:  What is your suggestion in this case?  Thanks in advance.")* was created by *[ogosense](/forum/user/29096-ogosense "View ogosense's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6

Hi,

We are having a problem with HikaShop analytics plugin. We are using two payment methods on the site:
- standard PayPal
- PayPal Pro (credit card)

Standard Paypal method was sending zero revenue amounts to GA and credit card method was sending revenue and items number multiplied by 2,3 or even 5 in some cases.

Following a similar thread on the forum I decided to update analytics plugin to one from HikaShop version 3.0.1. After that, I got correct numbers for orders completed through standard PayPal plugin, but ones made with credit card were still having issues with multiplied values.

I am assuming that multiplication happens when somebody enters incorrect credit card data and tries again data gets multiplied by the number of retries, because some of the orders made by credit card actually show correct numbers (including two test ones I created).

Attached are the settings for the plugin:
[ ![Screenshot&#95;1.png](/forum/attachment/38162) ](/forum/attachment/38162 "Screenshot&#95;1.png")

[ ![Screenshot&#95;2.png](/forum/attachment/38163) ](/forum/attachment/38163 "Screenshot&#95;2.png")

What is your suggestion in this case?

Thanks in advance.

- [ ![Screenshot&#95;1.png](/forum/attachment/38162) ](/forum/attachment/38162 "Screenshot&#95;1.png") [ ](/forum/attachment/38162?download=1 "Screenshot&#95;1.png")
- [ ![Screenshot&#95;2.png](/forum/attachment/38163) ](/forum/attachment/38163 "Screenshot&#95;2.png") [ ](/forum/attachment/38163?download=1 "Screenshot&#95;2.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTAyOTAtYW5hbHl0aWNzLXBsdWdpbi1zZW5kaW5nLWluY29ycmVjdC1udW1iZXItb2YtaXRlbXMtYW5kLWFtb3VudHMtdG8tZ2E/dG1wbD1tYXJrZG93bg==) 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)
-

9 years 6 months ago [\#269948](#269948) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Analytics plugin sending incorrect number of items and amounts to GA](/forum/30-integrations/890290-analytics-plugin-sending-incorrect-number-of-items-and-amounts-to-ga#269948 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6  Hi,  We are having a problem with HikaShop analytics plugin. We are using two payment methods on the site: - standard PayPal - PayPal Pro (credit card)  Standard Paypal method was sending zero revenue amounts to GA and credit card method was sending revenue and items number multiplied by 2,3 or even 5 in some cases.  Following a similar thread on the forum I decided to update analytics plugin to one from HikaShop version 3.0.1. After that, I got correct numbers for orders completed through standard PayPal plugin, but ones made with credit card were still having issues with multiplied values.  I am assuming that multiplication happens when somebody enters incorrect credit card data and tries again data gets multiplied by the number of retries, because some of the orders made by credit card actually show correct numbers (including two test ones I created).  Attached are the settings for the plugin:  What is your suggestion in this case?  Thanks in advance.")*

Hello,

Can you confirm the issue ?
Do you have a "step by step" procedure in order to reproduce that multiple submission of data to Google Analytics ?

Regards,

---

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

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

- **[ogosense](/forum/user/29096-ogosense "View ogosense's Profile")**
- [![ogosense's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar29096.png)](/forum/user/29096-ogosense "View ogosense's Profile") Topic Author
- [ Offline](/forum/user/29096-ogosense)

Less More

- Posts: 19
- Thank you received: 0
-
- [](http://www.ogosense.com)
-

9 years 6 months ago [\#270041](#270041) by [ogosense](/forum/user/29096-ogosense "View ogosense's Profile")  Replied by *[ogosense](/forum/user/29096-ogosense "View ogosense's Profile")* on topic *[Analytics plugin sending incorrect number of items and amounts to GA](/forum/30-integrations/890290-analytics-plugin-sending-incorrect-number-of-items-and-amounts-to-ga#270041 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6  Hi,  We are having a problem with HikaShop analytics plugin. We are using two payment methods on the site: - standard PayPal - PayPal Pro (credit card)  Standard Paypal method was sending zero revenue amounts to GA and credit card method was sending revenue and items number multiplied by 2,3 or even 5 in some cases.  Following a similar thread on the forum I decided to update analytics plugin to one from HikaShop version 3.0.1. After that, I got correct numbers for orders completed through standard PayPal plugin, but ones made with credit card were still having issues with multiplied values.  I am assuming that multiplication happens when somebody enters incorrect credit card data and tries again data gets multiplied by the number of retries, because some of the orders made by credit card actually show correct numbers (including two test ones I created).  Attached are the settings for the plugin:  What is your suggestion in this case?  Thanks in advance.")*

Hi Jerome,

Sorry if I made my explanation to convoluted to understand.

Let me try again.

I already updated analytics plugin to one from hikashop 3.0.1, but that did not solve the problem.

Standard PayPal payment method now works fine, it sends correct number of products and revenue amount to analytics.

PayPal Pro payment method works well if I enter all the data correctly on the first try and complete checkout - it sends correct values for products and revenue to GA.

If I make a mistake when entering cc info, try again and succeed second time, number of products and revenue amount in GA for that order will be doubled. If I make mistake two times before succeeding, it will be tripled etc.

Payment method selection is on the last step of the checkout process, I don't know if that information is useful to you.

Does this information help?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTAyOTAtYW5hbHl0aWNzLXBsdWdpbi1zZW5kaW5nLWluY29ycmVjdC1udW1iZXItb2YtaXRlbXMtYW5kLWFtb3VudHMtdG8tZ2E/dG1wbD1tYXJrZG93bg==) 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)
-

9 years 6 months ago [\#270043](#270043) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Analytics plugin sending incorrect number of items and amounts to GA](/forum/30-integrations/890290-analytics-plugin-sending-incorrect-number-of-items-and-amounts-to-ga#270043 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6  Hi,  We are having a problem with HikaShop analytics plugin. We are using two payment methods on the site: - standard PayPal - PayPal Pro (credit card)  Standard Paypal method was sending zero revenue amounts to GA and credit card method was sending revenue and items number multiplied by 2,3 or even 5 in some cases.  Following a similar thread on the forum I decided to update analytics plugin to one from HikaShop version 3.0.1. After that, I got correct numbers for orders completed through standard PayPal plugin, but ones made with credit card were still having issues with multiplied values.  I am assuming that multiplication happens when somebody enters incorrect credit card data and tries again data gets multiplied by the number of retries, because some of the orders made by credit card actually show correct numbers (including two test ones I created).  Attached are the settings for the plugin:  What is your suggestion in this case?  Thanks in advance.")*

Hello,

Yes, but not.

The HikaShop Analytics plugin which is provide within HikaShop Business only interact with "onAfterOrderCreate" and "onAfterOrderUpdate" triggers and it just call the Google API when the order is confirmed.

Knowing that when you enter wrong CC data for the Paypal Pro plugin, the order is not created ; the Google Analytics plugin cannot be called at any moment.
More than that, even if the order is created (like for Paypal Classical), the new order does not have the "confirmed" order status ; the call to Google API is not made.

So, the case that you are describing is, not possible by definition of the plugin source code.
I'm sorry.

Regards,

---

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

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

- **[ogosense](/forum/user/29096-ogosense "View ogosense's Profile")**
- [![ogosense's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar29096.png)](/forum/user/29096-ogosense "View ogosense's Profile") Topic Author
- [ Offline](/forum/user/29096-ogosense)

Less More

- Posts: 19
- Thank you received: 0
-
- [](http://www.ogosense.com)
-

9 years 6 months ago [\#270080](#270080) by [ogosense](/forum/user/29096-ogosense "View ogosense's Profile")  Replied by *[ogosense](/forum/user/29096-ogosense "View ogosense's Profile")* on topic *[Analytics plugin sending incorrect number of items and amounts to GA](/forum/30-integrations/890290-analytics-plugin-sending-incorrect-number-of-items-and-amounts-to-ga#270080 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6  Hi,  We are having a problem with HikaShop analytics plugin. We are using two payment methods on the site: - standard PayPal - PayPal Pro (credit card)  Standard Paypal method was sending zero revenue amounts to GA and credit card method was sending revenue and items number multiplied by 2,3 or even 5 in some cases.  Following a similar thread on the forum I decided to update analytics plugin to one from HikaShop version 3.0.1. After that, I got correct numbers for orders completed through standard PayPal plugin, but ones made with credit card were still having issues with multiplied values.  I am assuming that multiplication happens when somebody enters incorrect credit card data and tries again data gets multiplied by the number of retries, because some of the orders made by credit card actually show correct numbers (including two test ones I created).  Attached are the settings for the plugin:  What is your suggestion in this case?  Thanks in advance.")*

Hi Jerome,

Thank you for your reply.

I will check with one of our developers, there might have been some changes within the code, so this error might have been created on our end.

If I need additional assistance, I will post my questions here.

Thanks.

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

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