Google Ecommerce not tracking where customers have come

  • Posts: 167
  • Thank you received: 2
1 month 4 weeks ago #276887

-- 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?

Please Log in or Create an account to join the conversation.

  • Posts: 59333
  • Thank you received: 8271
  • MODERATOR
1 month 3 weeks ago #276897

Hi,

You're talking about this issue:
www.hikashop.com/forum/integrations/8892...complete.html#265590
We've actually worked on that for the next release of HikaShop and we'll be getting the uuid in the order params so that it can then be used by the plugin when sending the GA ecommerce data after the confirmation of the order.
That should fix that "source" issue.

The following user(s) said Thank You: PolishedGeek

Please Log in or Create an account to join the conversation.

  • Posts: 167
  • Thank you received: 2
1 month 3 weeks ago #277108

Hello, when will the new update be out to fix this issue with the Google Analytics Commerce source tracking?

Please Log in or Create an account to join the conversation.

  • Posts: 11107
  • Thank you received: 1560
  • MODERATOR
1 month 3 weeks ago #277109

Hello,

The next hikashop version will probably be released this week.

Best regards,
Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 156
  • Thank you received: 14
  • Hikashop Business
2 weeks 6 days ago #279613

Did this make it into version 3.2.0?

I'm using 3.2.0 and I'm still only seeing direct as the only source/medium for transactions.

Last Edit: 2 weeks 6 days ago by jazzmang. Reason: grammar

Please Log in or Create an account to join the conversation.

  • Posts: 21140
  • Thank you received: 3321
  • MODERATOR
2 weeks 5 days ago #279664

Hello,

Yes, my patch regarding the uuid passed to the plugin to be used afterwards by the Direct Call API is in the plugin of HikaShop 3.2.0.
Afterwards, we do not have feedback on that feature for the moment.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 156
  • Thank you received: 14
  • Hikashop Business
2 weeks 5 days ago #279683

I have 4 different sites that are all running 3.2.0, all upgraded in the last week of Sept. that have received orders with Direct Call enabled.

All of the orders so far from all 4 sites still show source/medium for the transaction as direct in Google Analytics reports. I have manually reviewed the server logs to track down where the customers came from and they are defiantly not all direct visits.

So at least from my 4 site sample so far, it isn't working.

Please Log in or Create an account to join the conversation.

  • Posts: 59333
  • Thank you received: 8271
  • MODERATOR
2 weeks 3 days ago #279916

Hi,

I've looked into it and found out that the uuid system added by Jerome was only added on the new checkout, not on the legacy checkout.
So if you're using the legacy checkout, it's normal that you're not seing any change.
I've added a patch to make it work with the legacy checkout too in the package that you can download on our website. However, this requires that you don't have a view override on the file "step" of the view "checkout" as I had to add some code in that view file.

So please try again after installing again the install package.

The following user(s) said Thank You: jazzmang

Please Log in or Create an account to join the conversation.

  • Posts: 156
  • Thank you received: 14
  • Hikashop Business
2 weeks 3 days ago #279920

Yeah, so far Legacy has had better luck for us across the board.

I've downloaded the latest build today (HikaShop Business 3.2.0 [1710051818]).

I've installed it on two of the sites to test with that should get orders today so I should know by tomorrow if it is working.

Please Log in or Create an account to join the conversation.

  • Posts: 21140
  • Thank you received: 3321
  • MODERATOR
2 weeks 3 days ago #279922

Hello,

If you want to check if the plugin is recording the information ; you have to check the orders in your database.
For the field "order_payment_params" you will have some serialized data and the Analytics plugin will store the customer tracker ID in there. So, once the order is confirmed, it can read the ID to perform the server-to-server call.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 156
  • Thank you received: 14
  • Hikashop Business
1 week 6 days ago #280102

OK, it has been several days and I've monitored nothing but "direct" for Source/Medium on both sites.

I've gone to the web logs and confirmed that we are getting orders that are originating from sources such as Google and Yahoo; not direct only (looking at IP address and referrers the tracking all the way from entry point to after_end view checkout URL).

The order_payment_params field in the orders table are empty in those orders I have manually reviewed too.
In fact, I cannot find any order with entry in the order_payment_params field.

And doesn't matter if the person is paying via PayPal or Authorize.net payment methods.

It is interesting to note that I can see in Google Analytics things like which domain the transactions come from.
And the one site that has AdWords conversion tracking code in the after_end file is registering conversions there.

I'm thinking of trying to put Nicolas's code from the step field in the after_end file just to see if I get anything but not sure how that will interact with the direct call, I'm worried I get duplicates. Beyond that, I'm not sure what else to look at.

We never have touched the "step" file and I see the code added in the default one Nicolas added.

Hoping to get this figured out as we head into heart of online shopping season since this information is important when trying to decide where to put SEO and advertising efforts.

Last Edit: 1 week 6 days ago by jazzmang.

Please Log in or Create an account to join the conversation.

  • Posts: 59333
  • Thank you received: 8271
  • MODERATOR
1 week 6 days ago #280104

Hi,

When you click on the "finish" button at the end of the checkout (new or legacy), you should normally have a parameter named checkout[analytics][ga] passed in the POST request to the server.
Do you see that parameter if you look at the request with your browser's network tool ?
It should contain the clientId from GA which is then pushed by the GA plugin in the order in the onBeforeOrderCreate trigger.
If it's there, then it must be an issue with the filtering on the server side, mainly with that line from the plugin:
$formData = hikaInput::get()->get('checkout', array(), 'array');
If it's missing, then it must be an issue with the hidden input field added to the checkout by the onHikashopBeforeDisplayView function of the GA plugin.
Ideally, we would need a link to the shop and instructions to reproduce so that we could check on that hidden input field and the POST request, and maybe a FTP access if the issue is on the server side so that we can debug the filtering.

Please Log in or Create an account to join the conversation.

  • Posts: 156
  • Thank you received: 14
  • Hikashop Business
1 week 4 days ago #280277

I capture the network via Chrome Developer Tools and I cannot find a parameter named checkout[analytics][ga].

Closest thing I can see in the Request Payload is:

checkout
------WebKitFormBoundary
Content-Disposition: form-data; name="task"

It goes from /cart/checkout/task-step/step-4.html to /index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id=##&Itemid=##

I've tried this with and without JCH Optimize turned on - same results.

I'll submit you some details privately to see if you can see it.

Please Log in or Create an account to join the conversation.

  • Posts: 59333
  • Thank you received: 8271
  • MODERATOR
1 week 3 days ago #280315

Hi,

We got your message, thanks.
Checking your website checkout, I see that the HTML that should be added to it just before the "next"/"finish" button isn't added.
The causes can be:
- That the file plugins/system/hikashopanalytics/hikashopanalytics.php hasn't been updated and that its version isn't 3.2.0 (check at the top of that file), which would indicate that the overwrite of the file wasn't possible during the update due to permission issues on the file. Fixing the permission on it and installing again the install package would fix it.
- That the file "step" of the view "checkout" has a view override and thus the code added in it to support the addition of that extra HTML is not in the override view file. You can check that via the menu Display>Views.
- a bug somewhere that we can't understand without debugging.

So please check the 2 first points. If you don't see any problem there, we'll need a backend and FTP access in order to better understand the situation you have.

Please Log in or Create an account to join the conversation.

  • Posts: 156
  • Thank you received: 14
  • Hikashop Business
1 week 3 days ago #280339

Like I said, we have never have touched the "step" file.



And I just checked the date on plugins/system/hikashopanalytics/hikashopanalytics.php, and it is 10/5/2017.

Same with components/com_hikashop/views/checkout/tmpl/step.php.

That matches the Build # - HikaShop Business 3.2.0 [1710051818]

That is also the same date I upgraded to the latest version after Nicolas made the changes for legacy.

Is there a later version than that that I need to be using?

Attached are the two files for your review.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 59333
  • Thank you received: 8271
  • MODERATOR
1 week 3 days ago #280341

Hi,

These look fine. could you provide a FTP access ?

Please Log in or Create an account to join the conversation.

  • Posts: 156
  • Thank you received: 14
  • Hikashop Business
1 week 2 days ago #280408

FTP information sent.

Please Log in or Create an account to join the conversation.

  • Posts: 59333
  • Thank you received: 8271
  • MODERATOR
1 week 2 days ago #280410

Hi,

I've found the issue. I've added a patch on your website and on our end which should help.

The following user(s) said Thank You: jazzmang

Please Log in or Create an account to join the conversation.

  • Posts: 156
  • Thank you received: 14
  • Hikashop Business
1 week 2 days ago #280427

Great.

I need to apply it to 3 other sites however.

Is it in the latest build download?
If not, which file(s) do I need to copy over?

Please Log in or Create an account to join the conversation.

  • Posts: 156
  • Thank you received: 14
  • Hikashop Business
1 week 2 days ago #280429

FYI can confirm too in Analytics reports that a recent order was tagged as something other than direct.

Please Log in or Create an account to join the conversation.

Time to create page: 0.163 seconds
Powered by Kunena Forum