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

#   On google analytics traffic is registring as direct traffice

##

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

Less More

- Posts: 58
- Thank you received: 0
-
-

7 years 11 months ago [\#301143](#301143) by [iconvisual](/forum/user/30593-iconvisual "View iconvisual's Profile")  *[On google analytics traffic is registring as direct traffice](/forum/27-checkout/896367-on-google-analytics-traffic-is-registring-as-direct-traffice#301143 "-- url of the page with the problem -- :   aditya.iconvm.com.au/  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : Mozilla firefox  Hi Support, I have this issue with hikashop google plugin all works well with google analytics plugin comes with Hikashop. Unfortunately the traffic source is coming as direct. Please refer to the screen shoots. w = website g = google w1-g1 w2-g2 w3-g3 w4-g4  Any help be appreciated.  Thanks Aditya")* was created by *[iconvisual](/forum/user/30593-iconvisual "View iconvisual's Profile")*

-- url of the page with the problem -- : [ aditya.iconvm.com.au/](http://aditya.iconvm.com.au/)
-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.1
-- PHP version -- : 7.2.7
-- Browser(s) name and version -- : Mozilla firefox

Hi Support,
I have this issue with hikashop google plugin all works well with google analytics plugin comes with Hikashop. Unfortunately the traffic source is coming as direct. Please refer to the screen shoots.
w = website
g = google
w1-g1
w2-g2
w3-g3
w4-g4

Any help be appreciated.

Thanks
Aditya

- [ ![g1.PNG](/forum/attachment/45537) ](/forum/attachment/45537 "g1.PNG") [ ](/forum/attachment/45537?download=1 "g1.PNG")
- [ ![g2.PNG](/forum/attachment/45538) ](/forum/attachment/45538 "g2.PNG") [ ](/forum/attachment/45538?download=1 "g2.PNG")
- [ ![g3.PNG](/forum/attachment/45539) ](/forum/attachment/45539 "g3.PNG") [ ](/forum/attachment/45539?download=1 "g3.PNG")
- [ ![g4.PNG](/forum/attachment/45540) ](/forum/attachment/45540 "g4.PNG") [ ](/forum/attachment/45540?download=1 "g4.PNG")
- [ ![w1.PNG](/forum/attachment/45541) ](/forum/attachment/45541 "w1.PNG") [ ](/forum/attachment/45541?download=1 "w1.PNG")
- [ ![w2.PNG](/forum/attachment/45542) ](/forum/attachment/45542 "w2.PNG") [ ](/forum/attachment/45542?download=1 "w2.PNG")
- [ ![w3.PNG](/forum/attachment/45543) ](/forum/attachment/45543 "w3.PNG") [ ](/forum/attachment/45543?download=1 "w3.PNG")
- [ ![w4.PNG](/forum/attachment/45544) ](/forum/attachment/45544 "w4.PNG") [ ](/forum/attachment/45544?download=1 "w4.PNG")

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

7 years 11 months ago [\#301155](#301155) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[On google analytics traffic is registring as direct traffice](/forum/27-checkout/896367-on-google-analytics-traffic-is-registring-as-direct-traffice#301155 "-- url of the page with the problem -- :   aditya.iconvm.com.au/  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : Mozilla firefox  Hi Support, I have this issue with hikashop google plugin all works well with google analytics plugin comes with Hikashop. Unfortunately the traffic source is coming as direct. Please refer to the screen shoots. w = website g = google w1-g1 w2-g2 w3-g3 w4-g4  Any help be appreciated.  Thanks Aditya")*

Hello,

Please details the "traffic" you're talking about and please provide details about your GA plugin settings.

Regards,

---

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

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

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

Less More

- Posts: 58
- Thank you received: 0
-
-

7 years 10 months ago [\#302252](#302252) by [iconvisual](/forum/user/30593-iconvisual "View iconvisual's Profile")  Replied by *[iconvisual](/forum/user/30593-iconvisual "View iconvisual's Profile")* on topic *[On google analytics traffic is registring as direct traffice](/forum/27-checkout/896367-on-google-analytics-traffic-is-registring-as-direct-traffice#302252 "-- url of the page with the problem -- :   aditya.iconvm.com.au/  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : Mozilla firefox  Hi Support, I have this issue with hikashop google plugin all works well with google analytics plugin comes with Hikashop. Unfortunately the traffic source is coming as direct. Please refer to the screen shoots. w = website g = google w1-g1 w2-g2 w3-g3 w4-g4  Any help be appreciated.  Thanks Aditya")*

Hi,
Sorry for late reply,
We for traffic coming from facebook, paid clicks, etc.

Thanks
Aditya

- [ ![6.PNG](/forum/attachment/45758) ](/forum/attachment/45758 "6.PNG") [ ](/forum/attachment/45758?download=1 "6.PNG")

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

7 years 10 months ago [\#302280](#302280) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[On google analytics traffic is registring as direct traffice](/forum/27-checkout/896367-on-google-analytics-traffic-is-registring-as-direct-traffice#302280 "-- url of the page with the problem -- :   aditya.iconvm.com.au/  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : Mozilla firefox  Hi Support, I have this issue with hikashop google plugin all works well with google analytics plugin comes with Hikashop. Unfortunately the traffic source is coming as direct. Please refer to the screen shoots. w = website g = google w1-g1 w2-g2 w3-g3 w4-g4  Any help be appreciated.  Thanks Aditya")*

Hi,

We replied in private by email in order to send you a modified version of the plugin.

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

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

Less More

- Posts: 58
- Thank you received: 0
-
-

7 years 10 months ago [\#302795](#302795) by [iconvisual](/forum/user/30593-iconvisual "View iconvisual's Profile")  Replied by *[iconvisual](/forum/user/30593-iconvisual "View iconvisual's Profile")* on topic *[On google analytics traffic is registring as direct traffice](/forum/27-checkout/896367-on-google-analytics-traffic-is-registring-as-direct-traffice#302795 "-- url of the page with the problem -- :   aditya.iconvm.com.au/  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : Mozilla firefox  Hi Support, I have this issue with hikashop google plugin all works well with google analytics plugin comes with Hikashop. Unfortunately the traffic source is coming as direct. Please refer to the screen shoots. w = website g = google w1-g1 w2-g2 w3-g3 w4-g4  Any help be appreciated.  Thanks Aditya")*

Hi Team,

The issue is that Hika Shop transactions are appearing as Direct transactions in Google Analytics.

This is being cause by multiple redirects occurring on the confirmation page. Can you please let us know how to remove this?

Images attached for reference.

- [ ![imgpsh&#95;mobile&#95;save.jpg](/forum/attachment/45858) ](/forum/attachment/45858 "...obile&#95;save.jpg") [ ](/forum/attachment/45858?download=1 "...obile&#95;save.jpg")
- [ ![2019-01-21&#95;150453.png](/forum/attachment/45859) ](/forum/attachment/45859 "...-21&#95;150453.png") [ ](/forum/attachment/45859?download=1 "...-21&#95;150453.png")

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

7 years 10 months ago [\#302889](#302889) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[On google analytics traffic is registring as direct traffice](/forum/27-checkout/896367-on-google-analytics-traffic-is-registring-as-direct-traffice#302889 "-- url of the page with the problem -- :   aditya.iconvm.com.au/  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : Mozilla firefox  Hi Support, I have this issue with hikashop google plugin all works well with google analytics plugin comes with Hikashop. Unfortunately the traffic source is coming as direct. Please refer to the screen shoots. w = website g = google w1-g1 w2-g2 w3-g3 w4-g4  Any help be appreciated.  Thanks Aditya")*

Hi,

The redirects are normal and cannot be avoided.
But I don't see the link between the redirects and the fact that the transactions would appear as direct transactions ?
Also, did you try the new plugin version which now handles the campaigns ? It should normally help.

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

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

Less More

- Posts: 58
- Thank you received: 0
-
-

7 years 10 months ago [\#302908](#302908) by [iconvisual](/forum/user/30593-iconvisual "View iconvisual's Profile")  Replied by *[iconvisual](/forum/user/30593-iconvisual "View iconvisual's Profile")* on topic *[On google analytics traffic is registring as direct traffice](/forum/27-checkout/896367-on-google-analytics-traffic-is-registring-as-direct-traffice#302908 "-- url of the page with the problem -- :   aditya.iconvm.com.au/  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : Mozilla firefox  Hi Support, I have this issue with hikashop google plugin all works well with google analytics plugin comes with Hikashop. Unfortunately the traffic source is coming as direct. Please refer to the screen shoots. w = website g = google w1-g1 w2-g2 w3-g3 w4-g4  Any help be appreciated.  Thanks Aditya")*

Hi Nicolas,
Thanks for your response.

We tried the new version and it now logs the transactions as (Other) in Google Analytics. This is still incorrect. It needs to log whichever channel the user arrived by i.e Paid Social, Paid Search, Organic etc.

We need a work around for the redirect, it is not normal to have 2 redirects before the confirmation page. If it cannot be removed then is there an alternative? This issue is causing us to capture incorrect data in Google Analytics.

To answer your question, what is the link between redirects and direct transactions? Redirects can often keep GTM code from launching and properly identifying the traffic as having come from a paid search campaign. For example, if your ad leads to [ www.mydomain.com/index.html](http://www.mydomain.com/index.html), but you've created a 301, 302, or JavaScript redirect from that URL to [ www.mydomain.com/page2.html](http://www.mydomain.com/page2.html), the campaign information that was originally appended to the landing page is lost upon redirection.

The browser is redirecting before the java script call from the code can be made.

For more information please refer to the following:
[ support.google.com/analytics/answer/1034383?hl=en](https://support.google.com/analytics/answer/1034383?hl=en)
[ support.google.com/analytics/answer/1009614](https://support.google.com/analytics/answer/1009614)

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

7 years 10 months ago [\#302920](#302920) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[On google analytics traffic is registring as direct traffice](/forum/27-checkout/896367-on-google-analytics-traffic-is-registring-as-direct-traffice#302920 "-- url of the page with the problem -- :   aditya.iconvm.com.au/  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.1 -- PHP version -- : 7.2.7 -- Browser(s) name and version -- : Mozilla firefox  Hi Support, I have this issue with hikashop google plugin all works well with google analytics plugin comes with Hikashop. Unfortunately the traffic source is coming as direct. Please refer to the screen shoots. w = website g = google w1-g1 w2-g2 w3-g3 w4-g4  Any help be appreciated.  Thanks Aditya")*

Hi,

Your links explain that having a redirection on the landing page is a problem because the referer data and the utm parameters are lost when the javascript is loaded and so it doesn't from which source the user came as the utm parameters in the URL are not available anymore.
However, this is not a problem with what we're talking about here because the checkout pages are not landing pages.

Having redirects in a checkout (because of many things) is totally normal. For example, if you access a step of the checkout where you have a login/registration view and you're already logged in, it will redirect you to the next step of the checkout.
That's something which is done on any website's checkout, even Amazon.
Disabling the redirects will make the checkout wrok strangely for your customers and that's not something you want anyways.
Tracking the customers sohuld be feasible even with redirects as long as the redirect don't happen on the landing page which is apparently not the case on your website.
So again, I don't think that your problem comes from the redirects.
It must be something else.

Can you please check what data you have in the column order_payment_params of the hikashop_order table for the new orders you got since you updated to the 4.0.2 ?
You can check on that via your phpmyadmin.
That will tell us if the source is properly found and stored with the order so we'll at least know if the problem happens before the order is created (during the checkout), or after (when the order is confirmed and the data is sent to GA).

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

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