Google eCommerce. How it works?

  • Posts: 47
  • Thank you received: 4
9 years 1 week ago #197499

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.25

Hello

I'm trying to set up ecommerce integration hikashop to google analytics.
It is pretty complex and I can't see any result

1) I already have google script at my website, that collects statistics about visits
2) At Google Analytics I turned on ecommerce page, so now statistics looks like this


3) I turned on Hikashop Google Analytics Plugin and here are settings


4) I made a fake order, changed status to confirmed, and nothins happened at google ecommerce statistics.

I was trying changing status to shipped and other statuses. Nothing happens.
What am I doing wrong? Should I turn on something else?

Thanks in advance

UPDATE:
I was creating fake accounts in UAH currency. I Make order in USD using TorBrouser and it seemed to work well (it appeared not instantly, but I can see it in statistics).
Is it possible UAH currency orders to be translated to USD statistics?
Also, how can I delete fake orders from google statistics?

Attachments:
Last edit: 9 years 1 week ago by amigo.

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

  • Posts: 81478
  • Thank you received: 13061
  • MODERATOR
9 years 1 week ago #197518

Hi,

It is not possible to have UAH currency orders in the USD statistics. That's why we have several settings so that you can have several accounts for different currencies.
I don't think that Google Analytics allow you to delete fake data. You would have to use another account.

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

  • Posts: 47
  • Thank you received: 4
9 years 1 week ago #197568

Hello

Google analytics reaaly don't have decent mechanism of deleting orders. They suggest to submit order with negative cost and amoung.

I have 1 more question
How is it possible to track orders on creation? I don't use backend order management at all.
I made some changes in this file
administrator\com_hikashop\extensions\plg_system_hikashopanalytics\hikashopanalytics.php





But they seems not to help at all. What am I doing wrong? I don't want to change status of order, I want them to be tracked automatically.

Also, while tracking orders in UAH currency, they display at Google Analytics incorrectly, currency rate is slightly different to what is in hikashop. It's like +6.66% higher

Attachments:
Last edit: 9 years 1 week ago by amigo.

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
9 years 1 week ago #197640

Hi,

I am sorry but the rules in Google Analytics is to track only the confirmed orders.
So no, by default it is not possible to track the order creation.

But if you want to do so and you want to modify the HikaShop core plugins ; you can remove the function "onAfterOrderCreate", rename the function "onAfterOrderUpdate" to "onAfterOrderCreate" and remove the lines which check the order status.

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: amigo

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

  • Posts: 47
  • Thank you received: 4
9 years 1 week ago #197714

Thanks. I changed the name of function and created global action to change order status to "confirmed". It seems to work, but after all status stays 'created'.

Anyway, what about second question?
When creating order in UAH it converts to Google USD statictics a bit incorrectly. Why is that?
I think it uses some wrong currency rate.

Last edit: 9 years 1 week ago by amigo.

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

  • Posts: 81478
  • Thank you received: 13061
  • MODERATOR
9 years 1 week ago #197758

Hi,

I'm not following you. There is no currency conversion in the Google Analytics plugin of HikaShop. HikaShop sends the order prices data to Google Analytics in the currency of the order.

The following user(s) said Thank You: amigo

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

  • Posts: 47
  • Thank you received: 4
9 years 1 week ago #197857

Sorry for my English. Probably, I don't explain myself clearly.

Main currency of the shop is USD
Currency for Ukraine region is UAH
When someone makes order in Ukraine, he sees prices in UAH. After that information about order goes to Google Analytics.
As I have account with USD currency in Google, all payment information converts to USD in some way.
Final values arent like they supposed to be.

For example - item Barbasol foam
Price at Hikashop - 2.40 USD
Price, that customer sees from Ukraine - 60 UAH (1 USD = 25 UAH)
Price in Google Analutics - 2.55 USD

What can cause this?

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

  • Posts: 81478
  • Thank you received: 13061
  • MODERATOR
9 years 1 week ago #197912

Hi,

I don't see how that's possible.
Are you sure that you're not mistaking the situation and that the USD price you see in HikaShop is the price without taxes while the USD price you get in GA is the price with the taxes ?
Because the conversion of the prices is only done by HikaShop before the order is created so the amount displayed in GA has to be the same as the one in the order.

The following user(s) said Thank You: amigo

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

  • Posts: 47
  • Thank you received: 4
9 years 6 days ago #198016

Let me show you

Product price



Order details (everything is correct, 65 UAH is 2.6 USD):


Google statistics (price of product):


There are no taxes whatsoever.

Attachments:
Last edit: 9 years 6 days ago by amigo.

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
9 years 6 days ago #198097

Hi,

The HikaShop analytics plugin just send the order details to Google Analytics in the currency of the order.
So if your order is in GA ; the data send to Google Analytics is in GA.
The conversion is not done by HikaShop.

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: amigo

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

  • Posts: 47
  • Thank you received: 4
9 years 5 days ago #198182

So, it's Google, who does wrong conversion. Thanks.

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
9 years 4 days ago #198202

Hi,

I can't say if Google is doing a wrong or right conversion ; but Google does not use the conversion rate that you will set in your HikaShop store ; the conversion is different that in your store.

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: amigo

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

Time to create page: 0.130 seconds
Powered by Kunena Forum