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

#   Google Ecommerce not tracking where customers have come

##

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

Less More

- Posts: 86293
- Thank you received: 14271
-
-

9 years 2 weeks ago [\#280430](#280430) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#280430 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

Hi,

Yes, it's in the latest build so simply redownload and reinstall and that will be it.
Otherwise, you can also copy the file plugins/system/hikashopanalytics/hikashopanalytics.php where I made the modification.

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

- **[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")**
- [![jazzmang's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5807_2014-05-02.jpg)](/forum/user/5807-jazzmang "View jazzmang's Profile")
- [ Offline](/forum/user/5807-jazzmang)

Less More

- Posts: 291
- Thank you received: 26
-
-
- [](http://www.interkan.net)
-

9 years 1 week ago [\#280545](#280545) by [jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")  Replied by *[jazzmang](/forum/user/5807-jazzmang "View jazzmang's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#280545 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

Thanks.

I've got it going on all our sites now and seems to be working fine.

Only item I've noticed is on one order that was paid via PayPal I got a Source/Medium of "paypal.com / referral".

So far only one order that has paid via PayPal that has done that so may be a fluke.

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

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

Less More

- Posts: 234
- Thank you received: 4
-
-

8 years 6 months ago [\#291239](#291239) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#291239 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

Hello

Could you please pass on the corrected code used for this fix? I am currently using HikaShop Business 3.2.1 and only using the Add to Cart legacy and all other options are NOT using the legacy. The date of my hikashopanalytics.php file is 13/12/2017.

Thanks
Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84OTE2ODAtZ29vZ2xlLWVjb21tZXJjZS1ub3QtdHJhY2tpbmctd2hlcmUtY3VzdG9tZXJzLWhhdmUtY29tZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

8 years 6 months ago [\#291251](#291251) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#291251 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

Hi,

Download the latest version of the HikaShop install package on our website.
Then, you'll find that file in back/extensions/plg_system/hikashopanalytics/
You can just copy it to the plugin folder plugins/system/hikashopanalytics/ in order to get the file with all the patches we made since then.

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

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

Less More

- Posts: 234
- Thank you received: 4
-
-

8 years 6 months ago [\#291306](#291306) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#291306 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

Hello,

I have the latest version and I can not download it from the website, it wants me to buy a new version.

Cheers
Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84OTE2ODAtZ29vZ2xlLWVjb21tZXJjZS1ub3QtdHJhY2tpbmctd2hlcmUtY3VzdG9tZXJzLWhhdmUtY29tZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

8 years 6 months ago [\#291311](#291311) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#291311 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

Hi,

I've checked your account but your subscription is valid and thus there is no reason you can't access the download. Go in the menu My account&gt;My subscriptions on our website once logged and you'll have the download link for the Business edition there.
If you don't, please send a screenshot of the page.

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

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

Less More

- Posts: 234
- Thank you received: 4
-
-

8 years 5 months ago [\#292167](#292167) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#292167 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

Hi

I have downloaded it and left it to see about the tracking and still no joy. It says every visitor is coming from Direct.

Any thoughts?

Cheers
iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84OTE2ODAtZ29vZ2xlLWVjb21tZXJjZS1ub3QtdHJhY2tpbmctd2hlcmUtY3VzdG9tZXJzLWhhdmUtY29tZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

8 years 5 months ago [\#292174](#292174) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#292174 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

Hi,

I've looked again, and I saw that on top of updating the plugin php file, you also have to update the file components/com_hikashop/views/checkout/tmpl/step.php with the one from front/views/checkout/tmpl/step.php
but that's only useful with the old checkout of HikaShop and you said that you're not using the legacy checkout.
So I don't see why that wouldn't help, unless the issue you have is not the same as the issue @jazzmang had.

Normally, with the new GA plugin file, you should have the script below added to the HTML of each of the checkout pages: Code:

&lt;script type="text/javascript"&gt; window.hikashop.ready(function(){ if(!ga &#124;&#124; typeof(ga) != "function") return; ga(function(tracker){ var clientId = tracker.get("clientId"), elem = document.getElementById("hikashop_checkout_analytics_field_ga"); if(elem) elem.value = clientId; }); }); &lt;/script&gt;

do you see it ?

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

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

Less More

- Posts: 234
- Thank you received: 4
-
-

8 years 5 months ago [\#292219](#292219) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#292219 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

Hi

This is for the website Craven-equipment.co.uk which is not using the legacy module.

I have checked ...onents/com_hikashop/views/checkout/tmpl/end.php
and ...nents/com_hikashop/views/checkout/tmpl/cart.php and neither have the code you listed.

Cheers
Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84OTE2ODAtZ29vZ2xlLWVjb21tZXJjZS1ub3QtdHJhY2tpbmctd2hlcmUtY3VzdG9tZXJzLWhhdmUtY29tZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

8 years 5 months ago [\#292228](#292228) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#292228 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

Hi,

It's normal that you don't find the code in these files.
As I said, you need to look for that code in the HTML of the pages of your checkout.
I've done it for you and the code is there:
[ monosnap.com/file/NPtMGsBpvddjLUh7ZebAJo6XkCVNB5](https://monosnap.com/file/NPtMGsBpvddjLUh7ZebAJo6XkCVNB5)
Also, you can check the column order_payment_params of the table hikashop_order via your phpmyadmin. There, you should find the analytics_ga parameter with the client_id for your orders which is used by the Google Analytics plugin to identify the client during direct calls.
All of this means that your correctly got the patch for that capability and so GA should have the client_id send to them.
So if you still have an issue with Ga, it's probably different from the issue that was talked about on this thread.

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

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

Less More

- Posts: 234
- Thank you received: 4
-
-

8 years 5 months ago [\#292275](#292275) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#292275 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

HI Guys

Thanks, the main issue is that all of my transactions are listed as being "Direct / None" as being the source and I know this not to be true.

Thoughts
Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84OTE2ODAtZ29vZ2xlLWVjb21tZXJjZS1ub3QtdHJhY2tpbmctd2hlcmUtY3VzdG9tZXJzLWhhdmUtY29tZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

8 years 5 months ago [\#292284](#292284) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#292284 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

Hi,

This would indicate that the data source is not specified:
[ developers.google.com/analytics/devguide...otocol/v1/parameters](https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters)
And that is indeed the case.
But even if we were adding the parameter to say that the data source comes from "web", you would just have "web" as the source.
I don't see the point in doing that.
Please understand that we're not google analytics/adwords/adsense specialists.
What are you supposed to have there ? And how is it relevant to what you're trying to do ?

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

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

Less More

- Posts: 234
- Thank you received: 4
-
-

8 years 5 months ago [\#292424](#292424) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#292424 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

Hi

Thanks for the response, what I am expecting is that Hikashop will pass information about the customer to GA when the customer completes their purchase. This information will display where the customer came from in the first place, Facebook, referral etc. This is why I have started by search within Hikashop since it must send said details to GA.

Thanks in advance.
Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84OTE2ODAtZ29vZ2xlLWVjb21tZXJjZS1ub3QtdHJhY2tpbmctd2hlcmUtY3VzdG9tZXJzLWhhdmUtY29tZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

8 years 5 months ago [\#292425](#292425) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#292425 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

Hi,

The information of the customer that HikaShop is supposed to send is normally the client_id, and that is done already.
[ stackoverflow.com/questions/26461439/goo...nt-id-sent-with-meas](https://stackoverflow.com/questions/26461439/google-analytics-how-to-get-the-client-id-anonymous-client-id-sent-with-meas)

However, the source is dictacted by several parameters that you're supposed to include in the URLs pointing to your website pages in order to identify the source:
[ support.google.com/analytics/answer/1033863?hl=en](https://support.google.com/analytics/answer/1033863?hl=en)
And if you don't have the correct parameters, it's possible that the source is missing. For example, without the utm_medium parameter it can happen:
[ stackoverflow.com/questions/44974727/utm...ugh-google-analytics](https://stackoverflow.com/questions/44974727/utm-source-not-passing-through-google-analytics)

So since we know that the client_id being passed to GA works in HikaShop and that it is stored for your orders on your website (we confirmed that earlier), I'm inclined in thinking that there is something missing with the source parameters in your URLs. So please review that.

The following user(s) said Thank You: [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")

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

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

Less More

- Posts: 234
- Thank you received: 4
-
-

7 years 8 months ago [\#303823](#303823) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#303823 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

Hi Nicolas,

Thank you for your reply, I've noticed that the code attached with the ("clientid") is on all of my checkout pages. However as soon as the user hits submit and see's the conformation of order page the code is no longer there. Would this be a problem?

Here's the code I'm referring to:
[ monosnap.com/file/NPtMGsBpvddjLUh7ZebAJo6XkCVNB5](https://monosnap.com/file/NPtMGsBpvddjLUh7ZebAJo6XkCVNB5)

Thanks again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy84OTE2ODAtZ29vZ2xlLWVjb21tZXJjZS1ub3QtdHJhY2tpbmctd2hlcmUtY3VzdG9tZXJzLWhhdmUtY29tZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

7 years 8 months ago [\#303827](#303827) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Google Ecommerce not tracking where customers have come](/forum/33-customers/891680-google-ecommerce-not-tracking-where-customers-have-come?start=20#303827 "-- url of the page with the problem -- : restorationuk.com -- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.31 -- Browser(s) name and version -- : Chrome  Hello, I have been running Analytics and Ecommerce Tracking but I have noticed in Analytics Ecommerce that its not displaying the Source/Medium in which means for some reason its not tracking where people have come from after completing a purchase. Everything else seems to be tracking though. Is there something in Hikashop I am missing to enable this?")*

Hello,

The client id is saved in the cart parameters when submitted. It's not problematic if the hidden input is not there afterwards since the data is already stored to be used later when the order is confirmed.

Regards,

---

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

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

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

[](#top)
