Transaction not recorded at Google Analytics

  • Posts: 197
  • Thank you received: 5
  • Hikashop Business
10 years 2 months ago #167627

-- url of the page with the problem -- : livelaughlove.com/
-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.3
-- Browser(s) name and version -- : n/a
-- Error-message(debug-mod must be tuned on) -- : n/a

The other day we tested 2 transactions at pretty much the same time but only one of them actually showed up at Google analytics. Here is a screenshot of the 2 orders in hikashop below
(Note that the "refunded" was done just recently and after the sale showed up on analytic)



This is what was sold in the order that did not show up:
(note: this order had a coupon so the total is about $16 but the price of the product was about $30)


While this is the list of products from the hikashop order system for the order that is showing up:



and finally this is what GA is showing us:




The only difference between the two orders, as I tracked their lifespan between Hikashop, Authorize.net, GA and so forth was the difference in price, of course, and the fact that the product that's not showing up on GA had a coupon discount applied to it.
Otherwise, they were made approximately at the same time (2014-08-13 09:56 for the one that's not showing up and 2014-08-13 09:20 for the one that's working fine)

We are just wondering what could possibly be causing this. It's good news that one product shows up.

Here is the order export, in case that may help. I redacted names and emails but left everything else alone.


File Attachment:

File Name: hikashop_export.csv
File Size:20 KB


I would appreciate some insight because I am completely lost and of course my clients are looking at me as if I were gaining joy by creating these problems on purpose.

Thank you.

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

  • Posts: 26146
  • Thank you received: 4026
  • MODERATOR
10 years 2 months ago #167632

Hi,

The problem with Google Analytics is that it uses Javascript to work.
developers.google.com/analytics/devguide...nalyticsjs/ecommerce

The HikaShop google analytics plugin add the javascript into the webpage when an order is confirmed (to track it).
If the webpage is not displayed when the order is confirmed (a redirect is made or something like that), the plugin store in the session that it has to track the order and it will display the javascript in the next rendering webpage.

When you are using payment plugins like Authorize.net ; the payment platform confirm the order using a notification. There is not processed webpage, the plugin can't display the google javascript and even if it display it to the payment platform, the script won't be processed.

If you update the order in the backend, the plugin will be able to add the javascript and your browser will process it correctly.

We have a task in our issue tracker to improve the google analytics plugin (in order to add the support of "Universal Analytics" and also fix the problem when having a payment notification).
There are several way to fix the "payment notification" stuff, like adding some code in the user "return" page in order to check the order status and call the javascript from the user page (but if the user don't come back to your website, the track won't be possible).
Another solution is to use the "Measurement Protocol" of Google Analytics.
developers.google.com/analytics/devguide...lection/protocol/v1/
At this moment, your server will contact directly google analytics to track the sales ; but we have to investigate more about his new feature in order to know if it is viable or not.

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: 197
  • Thank you received: 5
  • Hikashop Business
10 years 2 months ago #167916

Thank you very much, I think I understand what the issue is. What I don't understand is how come one of the two orders was recorded properly and the other wasn't? Especially considering that both used authorize.net. Was it the way the purchase was made?

If neither payment was recorded, your explanation would make more sense to me but since only one failed I am trying to figure out what the difference may have been.

Is there anything we can do on our side to improve this? A return URL for Authorize.net? Anything at all?

I am going to be asked to fix this and the people I deal with have very limited technical understanding of these things (and life in general it seems) and to them they see this as a "bug" in the shop I built them.

Any help or suggestions will be greatly appreciated.

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

  • Posts: 26146
  • Thank you received: 4026
  • MODERATOR
10 years 2 months ago #167918

Hi,

We have worked on the new implementation of the "Google Analytics" plugin using "Universal Analytics" and the "Measurement Protocol".
This new version hasn't been test for the moment but we will perform some verification and after that, the plugin will be include in the next HikaShop release.

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.
The following user(s) said Thank You: conticreative

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

  • Posts: 136
  • Thank you received: 1
10 years 2 weeks ago #175254

Hi Jerome,

Has the upgrade to Universal been completed yet?

If not, when will it be released?

Thanks,
Mike

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
10 years 2 weeks ago #175260

Hi,

Not yet. It will be in next release which is to be released this month.

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

Time to create page: 0.118 seconds
Powered by Kunena Forum