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

#   google analytics plugin code not tracking correctly.

##

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

Less More

- Posts: 165
- Thank you received: 3
-
-

9 years 11 months ago -  9 years 11 months ago [\#257643](#257643) by [jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")  *[google analytics plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#257643 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")* was created by *[jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 2.6.4

Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?

The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.

Can you please help me, this is a major issue?

- [ ![analytics.PNG](/forum/attachment/35196) ](/forum/attachment/35196 "analytics.PNG") [ ](/forum/attachment/35196?download=1 "analytics.PNG")
- [ ![analytics-statistics.PNG](/forum/attachment/35197) ](/forum/attachment/35197 "...statistics.PNG") [ ](/forum/attachment/35197?download=1 "...statistics.PNG")

Last edit: 9 years 11 months ago by [jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile").

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

9 years 11 months ago [\#257681](#257681) 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 plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#257681 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Hi,

We've actually added several fixes to the Google Analytics plugin in HikaShop 2.6.4 in order to fix the calculated amounts sent to GA which could be incorrect in some cases.
So you must be in one of these cases.
I would recommend to update to the latest version of HikaShop and the new data which will be sent to GA should be correct. Regarding the data already sent to GA, I'm afraid there is nothing that can be done.

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

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

Less More

- Posts: 165
- Thank you received: 3
-
-

9 years 11 months ago [\#257713](#257713) by [jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")  Replied by *[jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")* on topic *[google analytics plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#257713 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Thank you for the response I was afraid that was going to be your response. Our client is about through with all the holiday sales so I will have to attempt to upgrade after they are finished. We had a 3rd party price by zip code component made for hikashop 2.6.3 and it is not guaranteed to work with 2.6.4. I will just have to update and thoroughly test everything and hope that the zip code component does not break because from what you said analytics will not be accurate which is a major issue because of the size of the client.

Thanks,

Josh

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

9 years 11 months ago [\#257715](#257715) 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 plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#257715 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Hi,

What you can do then is download the 2.6.4 install package, get the google analytics plugin files from the folder back/extensions in the install package, zip them and install them on your website. It should work fine with the 2.6.3 and it will contain the fixes for the calculations.

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

- **[PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")**
- [![PolishedGeek's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")
- [ Offline](/forum/user/8378-polishedgeek)
- Official HikaShop Development Partner

Less More

- Posts: 329
- Thank you received: 94
-
- [](http://PolishedGeek.com/?utm_source=hikashop)
-

9 years 8 months ago [\#263848](#263848) by [PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")  Replied by *[PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")* on topic *[google analytics plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#263848 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Were there any patches made to the 2.6.4 Google eCommerce plugin after 2.6.4 was released? We are using it on a client site and experiencing some issues. Wondering if there is a more up to date version available than what we have on file.

Also - where can we download the last official v2.6.4, with all patches? Under the account we only see v 3.x of course.

---

~ Deb Cinkus, CEO

Polished Geek: more with monday․com
eCommerce Business Process Automation Experts

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

9 years 8 months ago [\#263854](#263854) 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 plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#263854 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Hi,

Yes. We've made a fix patches since then.
I would recommend using the one from HikaShop 3's install package. It will work with the 2.6.4 but will contain all the latest patches.

The following user(s) said Thank You: [PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")

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

- **[PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")**
- [![PolishedGeek's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")
- [ Offline](/forum/user/8378-polishedgeek)
- Official HikaShop Development Partner

Less More

- Posts: 329
- Thank you received: 94
-
- [](http://PolishedGeek.com/?utm_source=hikashop)
-

9 years 8 months ago [\#264130](#264130) by [PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")  Replied by *[PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")* on topic *[google analytics plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#264130 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Hello - We updated the site with the latest version of the google ecommerce analytics plugin, and the stats are not quite right yet.

We looked at only new orders placed a day after the code was updated, to make sure we were testing against the newest code.

I'm attaching a copy of our configuration settings. We are using direct call, single submission.

1) When comparing the numbers in Google vs. the HikaShop orders, most transactions are showing up DOUBLED in Google for number of transactions, revenue and product sales. This is happening on almost every new order.

2) When a confirmed order is CANCELLED, it is added to the Google Analytics stats again instead of reversed. Cancelling an order ads the revenue again, increases the transaction count and increases the sales revenue for the products on the order. It should be reversing those stats, not increasing them, when an order is marked as Refunded or Cancelled.

---

~ Deb Cinkus, CEO

Polished Geek: more with monday․com
eCommerce Business Process Automation Experts

- [ ![google&#95;analytics&#95;settings.png](/forum/attachment/36807) ](/forum/attachment/36807 "...s&#95;settings.png") [ ](/forum/attachment/36807?download=1 "...s&#95;settings.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODc5MzAtZ29vZ2xlLWFuYWx5dGljcy1wbHVnaW4tY29kZS1ub3QtdHJhY2tpbmctY29ycmVjdGx5P3RtcGw9bWFya2Rvd24=) 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 8 months ago [\#264131](#264131) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[google analytics plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#264131 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Hello,

The "single submission" algorithm is based on the HikaShop invoice order statuses setting. Code:

if($this-&gt;params-&gt;get('single_submission', 0) &amp;&amp; in_array($confirmed_status, $invoice_statuses) &amp;&amp; !empty($order-&gt;old) &amp;&amp; !empty($order-&gt;old-&gt;order_invoice_id)) return true;

So you have to check that you right have statuses for the "invoice" and that the status "confirmed" is right in that list.
Thus, the first time the order will be confirmed (so the order do not have an "order_invoice_id") the submission will be made.

I don't see any code which allow the plugin to record a cancelled order, nor code to handle that specific order status to send a negative value.
And due to the "single submission" setting, I don't even know how it could be possible to not submit several time a cancelled order... (but I first don't understand how a cancel order can be submitted)

So I think we would need more details about your order statuses configuration.

Regards,

---

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

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

- **[PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")**
- [![PolishedGeek's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")
- [ Offline](/forum/user/8378-polishedgeek)
- Official HikaShop Development Partner

Less More

- Posts: 329
- Thank you received: 94
-
- [](http://PolishedGeek.com/?utm_source=hikashop)
-

9 years 8 months ago -  9 years 8 months ago [\#264172](#264172) by [PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")  Replied by *[PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")* on topic *[google analytics plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#264172 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Hi, Jerome -

Thanks for the reply over the weekend. I've retested and think that I've narrowed down that the cancellation didn't trigger additional analytics, I cancelled it almost immediately after doing the test and the duplication was not immediate, leading me to believe that the cancellation caused it.

Attached are some screenshots, including the order status settings.

[ ![DN&#95;order&#95;status&#95;config.PNG](/forum/attachment/36817) ](/forum/attachment/36817 "...tus&#95;config.PNG")

Double entries are definitely happening in the analytics. Everything is being recorded exactly twice as much as it should be.

**Google Analytics for today, before my test order**
[ ![DN&#95;analytics&#95;before&#95;order.PNG](/forum/attachment/36820) ](/forum/attachment/36820 "...fore&#95;order.PNG")

**My test order information**
[ ![DN&#95;order&#95;confirmed&#95;summary.PNG](/forum/attachment/36816) ](/forum/attachment/36816 "...ed&#95;summary.PNG")

[ ![DN&#95;order&#95;confirmed.PNG](/forum/attachment/36819) ](/forum/attachment/36819 "...&#95;confirmed.PNG")

**Google Analytics doubled**
[ ![DN&#95;analytics&#95;after&#95;order&#95;double&#95;counted.PNG](/forum/attachment/36818) ](/forum/attachment/36818 "...le&#95;counted.PNG")

---

~ Deb Cinkus, CEO

Polished Geek: more with monday․com
eCommerce Business Process Automation Experts

- [ ![DN&#95;order&#95;confirmed&#95;summary.PNG](/forum/attachment/36816) ](/forum/attachment/36816 "...ed&#95;summary.PNG") [ ](/forum/attachment/36816?download=1 "...ed&#95;summary.PNG")
- [ ![DN&#95;order&#95;status&#95;config.PNG](/forum/attachment/36817) ](/forum/attachment/36817 "...tus&#95;config.PNG") [ ](/forum/attachment/36817?download=1 "...tus&#95;config.PNG")
- [ ![DN&#95;analytics&#95;after&#95;order&#95;double&#95;counted.PNG](/forum/attachment/36818) ](/forum/attachment/36818 "...le&#95;counted.PNG") [ ](/forum/attachment/36818?download=1 "...le&#95;counted.PNG")
- [ ![DN&#95;order&#95;confirmed.PNG](/forum/attachment/36819) ](/forum/attachment/36819 "...&#95;confirmed.PNG") [ ](/forum/attachment/36819?download=1 "...&#95;confirmed.PNG")
- [ ![DN&#95;analytics&#95;before&#95;order.PNG](/forum/attachment/36820) ](/forum/attachment/36820 "...fore&#95;order.PNG") [ ](/forum/attachment/36820?download=1 "...fore&#95;order.PNG")

Last edit: 9 years 8 months ago by [PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile"). Reason: added titles to images for clarity

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODc5MzAtZ29vZ2xlLWFuYWx5dGljcy1wbHVnaW4tY29kZS1ub3QtdHJhY2tpbmctY29ycmVjdGx5P3RtcGw9bWFya2Rvd24=) 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 8 months ago [\#264246](#264246) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[google analytics plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#264246 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Hello,

I see that you're using not using HikaShop 3.0, so I don't know what version of the plugin you have exactly.
Because your order is created "confirmed", there is just one trigger called. So I don't understand how you can have two transaction on one single trigger.
So it would mean that you also have a call made via the trigger "onAfterRender", which looks weird because the session should not contain the information..

So I would recommend to change the function "googleProcess" to add a new parameter Code:

function googleProcess($order_id = 0, $render = false) {

So in that function, the direct call won't be done if it's in render Code:

if($this-&gt;params-&gt;get('universal_always_directcall', 0)) { $call = true; if($render) return true; }

And for sure, in the onAfterRender, the function should be call with the new parameter Code:

$content = $this-&gt;googleProcess($order_id, true); if(!empty($content) &amp;&amp; is_string($content)) {

Let us know if it solve the issue.

Regards,

---

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

The following user(s) said Thank You: [PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")

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

- **[PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")**
- [![PolishedGeek's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")
- [ Offline](/forum/user/8378-polishedgeek)
- Official HikaShop Development Partner

Less More

- Posts: 329
- Thank you received: 94
-
- [](http://PolishedGeek.com/?utm_source=hikashop)
-

9 years 8 months ago [\#264266](#264266) by [PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")  Replied by *[PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")* on topic *[google analytics plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#264266 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Hi, Jerome - We are using the latest 3.0 version of the plugin in a 2.6.4 site (I was told in another thread this should be compatible and would have the latest fixes).

Will give your suggestions a try - thanks!

---

~ Deb Cinkus, CEO

Polished Geek: more with monday․com
eCommerce Business Process Automation Experts

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

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

- **[PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")**
- [![PolishedGeek's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")
- [ Offline](/forum/user/8378-polishedgeek)
- Official HikaShop Development Partner

Less More

- Posts: 329
- Thank you received: 94
-
- [](http://PolishedGeek.com/?utm_source=hikashop)
-

9 years 8 months ago [\#264314](#264314) by [PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")  Replied by *[PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")* on topic *[google analytics plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#264314 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Hi, Jerome -

We updated the code as suggested and installed it a few hours ago. The client has had multiple orders since the new code was installed and now the numbers being reported to Google are exactly right!

I hope you will put this code into the standard plugin. It definitely solved the problem of double counted orders in GA.

Thanks!

---

~ Deb Cinkus, CEO

Polished Geek: more with monday․com
eCommerce Business Process Automation Experts

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODc5MzAtZ29vZ2xlLWFuYWx5dGljcy1wbHVnaW4tY29kZS1ub3QtdHJhY2tpbmctY29ycmVjdGx5P3RtcGw9bWFya2Rvd24=) 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 8 months ago [\#264320](#264320) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[google analytics plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#264320 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Hi,

It's commit.

I still don't understand why you got that glitch because the "display_ga" variable in the session is reset to 0 when the "direct call" is made, but I commit the patch.
So it will be included in the next release.

Regards,

---

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

The following user(s) said Thank You: [PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")

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

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

Less More

- Posts: 127
- Thank you received: 6
-
-

9 years 7 months ago -  9 years 7 months ago [\#266256](#266256) by [Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")  Replied by *[Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile")* on topic *[google analytics plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#266256 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

> nicolas wrote: Hi,
>
> Yes. We've made a fix patches since then.
> I would recommend using the one from HikaShop 3's install package. It will work with the 2.6.4 but will contain all the latest patches.

Hi Nicolas - I'd like to try the same fix.
Which files should be used please? Those from /administrator/components/com_hikashop/extensions/plg_system_hikashopanalytics ?

And do I just replace those (**2.6.1**) files with those from 3.0.1 ? Or are there any other steps involved...

Last edit: 9 years 7 months ago by [Bobwales](/forum/user/30257-bobwales "View Bobwales's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODc5MzAtZ29vZ2xlLWFuYWx5dGljcy1wbHVnaW4tY29kZS1ub3QtdHJhY2tpbmctY29ycmVjdGx5P3RtcGw9bWFya2Rvd24=) 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 7 months ago -  9 years 7 months ago [\#266264](#266264) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[google analytics plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#266264 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Hello,

The Joomla plugins are installed in the "plugins" folder of Joomla.
The "extensions" folder under HikaShop is just there to allow HikaShop to install or reinstall his plugins.

And yes, you can just replace the files in the plugin folder with the ones from the install package.

Regards,

---

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

Last edit: 9 years 7 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

- **[PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")**
- [![PolishedGeek's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")
- [ Offline](/forum/user/8378-polishedgeek)
- Official HikaShop Development Partner

Less More

- Posts: 329
- Thank you received: 94
-
- [](http://PolishedGeek.com/?utm_source=hikashop)
-

9 years 6 months ago [\#269120](#269120) by [PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")  Replied by *[PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")* on topic *[google analytics plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#269120 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Was this patch incorporated into the latest HikaShop v 3.0.1 package? I downloaded it a day or so ago and don't see this code in the analytics plugin. But perhaps you refactored it a little differently?

---

~ Deb Cinkus, CEO

Polished Geek: more with monday․com
eCommerce Business Process Automation Experts

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84ODc5MzAtZ29vZ2xlLWFuYWx5dGljcy1wbHVnaW4tY29kZS1ub3QtdHJhY2tpbmctY29ycmVjdGx5P3RtcGw9bWFya2Rvd24=) 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 [\#269122](#269122) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[google analytics plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#269122 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Hello,

The patch has been added in the plugin last month but with slightly differences than the one I proposed here.

Regards,

---

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

The following user(s) said Thank You: [PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")

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

- **[PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")**
- [![PolishedGeek's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")
- [ Offline](/forum/user/8378-polishedgeek)
- Official HikaShop Development Partner

Less More

- Posts: 329
- Thank you received: 94
-
- [](http://PolishedGeek.com/?utm_source=hikashop)
-

9 years 6 months ago [\#269306](#269306) by [PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")  Replied by *[PolishedGeek](/forum/user/8378-polishedgeek "View PolishedGeek's Profile")* on topic *[google analytics plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#269306 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Another question. This plugin requires that the site already be using Google Analytics via a plugin or inserted into the template. Has this been tested with Google Tag Manager as well?

Google Tag Manager can be set up with the GA code to feed analytics data to Google, so when done properly will it work with your ecommerce tracking plugin or do you have to stick to just GA on the site?

---

~ Deb Cinkus, CEO

Polished Geek: more with monday․com
eCommerce Business Process Automation Experts

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

9 years 6 months ago [\#269333](#269333) 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 plugin code not tracking correctly.](/forum/30-integrations/887930-google-analytics-plugin-code-not-tracking-correctly#269333 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 2.6.4  Hi, I am having a very weird issue. I attached a screenshot of both my plugin settings as well as the report sales for analytics. There is something very off in the analytics plugin in hikashop. It is reporting equal values for both the revenue and tax column in analytics. However, I don't even have tax on any product in the entire cart currently so, I have no idea how this could be happening?  The total sales that should be showing up currently should be approx. twice what it is right now and tax should be 0.  Can you please help me, this is a major issue?")*

Hi,

We didn't test it with Google Tag Manager.
So I don't know if it can work with it or not.
The subject [ www.hikashop.com/forum/checkout/890197-a...-before-payment.html](https://www.hikashop.com/forum/checkout/890197-analytics-missing-on-last-checkout-page-before-payment.html) seems to indicate that something is missing but I don't know if that's normal or if it's specific to that person due to the way the shop is configured. More information will be needed.

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

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