Google Analytics plugin doesn´t work properly

  • Posts: 68
  • Thank you received: 0
9 years 10 months ago #181955

-- HikaShop version -- : 2.3.4.

Hi,

I would like to ask for help. I use the google Analytics plugin to see sales in Google Analytics.
All at once the GA stooped receiving the data from my eshop. Nothing was change on the web nor in GA account.
The total traffic is visible, but without data from e-commerce. This is empty.

I checked all but did not find the reason, why it is like that.

I use Universal Analytics code which is also included on the web.

In the plugin is set up:
Use universal analytics: Yes
Google analytics acount: Number is full fil correctly, currency CZK (the same as on GA account)
Debug mode: No

Could you help me to find reason, why the GA didn´t receive the data?

On backend site is changed the order status to confirmed. After 24 hours I should see the data in GA, but nothing is there.

Best regards
Lenka

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

  • Posts: 26146
  • Thank you received: 4026
  • MODERATOR
9 years 10 months ago #181969

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: 68
  • Thank you received: 0
9 years 10 months ago #182234

Hi Jerome,

I made the change in the php as it is mentioned in the thread, but nothing change. The GA did not receive data.
I checked also how should be fill in the Universal Analytics code to the web. I found instruction for developers where is told that there should be add one line to the code.
See: developers.google.com/analytics/devguide...csjs?hl=en#ecommerce

This line should be add to code

ga('require', 'ecommerce', 'ecommerce.js');   // Load the ecommerce plug-in.

under
ga('create', 'UA-XXXX-Y', 'auto');
ga('send', 'pageview');

Could you tell me if it is realy like that? It is strange to me that from my implementation it was working without any problems and now the GA did not receive any data for e-commerce traking.

Regards
Lenka

Last edit: 9 years 10 months ago by kopretina.

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

  • Posts: 26146
  • Thank you received: 4026
  • MODERATOR
9 years 10 months ago #182299

Hi,

The line you mentioned is right added in the plugin

ga("create", "' . $account . '", "auto");
ga("send", "pageview");'.$extra_required.'
ga("require", "ecommerce", "ecommerce.js");
For the moment I can only recommend you to deactivate the "universal analytics" in the plugin.
I'm trying to perform some tests because when I wrote the code for UA, I did it at 4am and send it to the HikaShop team for tests (because I do not have any google analytics account).
The code I shared wasn't supposed to be release without tests, I just write some "proof of concept" for the HikaShop team in order to improve the plugin and add a support to track the transactions when the order are confirmed by payment servers (like the paypal IPN).

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: 68
  • Thank you received: 0
9 years 10 months ago #182308

I deactivated the "Universal Analytics" in the plugin. I am not sure, if it will works, because the code included in the web site is "Universal Analytics" code. Google automaticaly transfer the GA account to this kind of account.
Strange for me is, why the statistics where working for one month without problem and than all at once nothing is received from e-commerce.
The same problem I see also on other pages that we manage.

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

  • Posts: 26146
  • Thank you received: 4026
  • MODERATOR
9 years 10 months ago #182436

Hi,

Which payment method are you using in your website ?
More precisely : how does your orders are confirmed ?
The "universal analytics" code in the plugin can track the order using different ways (javascript, direct call using curl...) so I need to know which way is used in your website in order to reproduce it.

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: 68
  • Thank you received: 0
9 years 10 months ago #182451

Hi,

I use and used on e-shop following payment metods:

  • HikaShop collect on delivery payment plugin
  • HikaShop bank transfer payment plugin
  • HikaShop User Points payment plugin ( this is set up but till now not used by customer)

Orders are confirmed on the backend site of web:
  • first as confirmed
  • than if the payment is done trought bank transfer - the payment was received
  • last step is changed to status shipped

Regards
Lenka

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

  • Posts: 26146
  • Thank you received: 4026
  • MODERATOR
9 years 10 months ago #182698

Hi,

Sorry for the late answer.

I perform several tests and with the modification of the plugin in the post #181833 ; the plugin right displayed the javascript.
I saw the calls in the "real time" overview and Google Analytics but I have to wait in order to get the other results for the "transaction" part.

Did you modify the plugin like explain in the post #181833 ?
www.hikashop.com/forum/reports-statistic...s-plugin.html#181833

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: 68
  • Thank you received: 0
9 years 10 months ago #182720

Hi,
I understand you made the test, so it is not necessary to appologize for later reply.
I corrected the plugin like is mentioned, but nothing changed.

Before I saw the result at Google Analytics in e-commerce part at the day after, when I changed the status of the order to confirm.
Now the GA says:
"Missing Ecommerce Data
View of website is configured for Ecommerce, but no data is flowing."

I realy don´t know how to solve this problem. I tried everything what I know but withour result.

Regards

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

  • Posts: 26146
  • Thank you received: 4026
  • MODERATOR
9 years 10 months ago #182744

Hi,

Is your "Enhanced Ecommerce Settings" deactivated ?
Because the plugin is using the classical Ecommerce API ; not the Enhanced one.

If so, can you please send us a message using the contact-us form ; I'll send you a special version of the Google Analytics plugin with debug trace (stored in the "payment log" file).

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: 68
  • Thank you received: 0
9 years 10 months ago #182748

Hi Jerome,

I don´t have active the "Enhanced Ecommerce Settings".
I will send you the request trought the contact form.

Regards
Lenka

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

Time to create page: 0.071 seconds
Powered by Kunena Forum