Google Ecommerce Tracking Fault

  • Posts: 3
  • Thank you received: 0
10 years 3 months ago #162781

-- url of the page with the problem -- : www.birthdaycakeshop.com.au
-- HikaShop version -- : Business 2.3.1
-- Joomla version -- : 2.5.14
-- PHP version -- : 5.2.17
-- Browser(s) name and version -- : Chrome 35.0.1916.153 m
-- Error-message(debug-mod must be tuned on) -- : No Error_message

Hi, I set up Hikashop back in January and everything seems fine other than the fact that only a very small percentage of sales are being recorded via the Google Analytics plugin. It appears that only direct traffic is being recorded as sales.

I am running a google adwords campaign as well as SEO for this client and not being able to record all sales from all sources is becoming very frustrating. I rely on the Hikashop google analytics plugin to report to Google Analytics and then import this to Google Adwords because conversions between the two are linked.

We are using the offline credit card payment option and orders are set to "confirmed" status manually. I state this because this may be the reason why conversions are not being reported in Google analytics. Perhaps if I change the ecommerce tracking plugin to record "created" status of orders instead of confirmed it would work properly?

I would greatly appreciate some support on this matter. My lack of reporting ability has become embarrassing.

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

  • Posts: 82683
  • Thank you received: 13338
  • MODERATOR
10 years 3 months ago #163034

Hi,

In order to record the sales the Google analytics plugin has to display javascript code in a page that is displayed on a browser.
So when you confirm an order in the backend, unless you display another page after do that, the sale won't be taken into account as the plugin doesn't have the possibility to add that javascript with the status change procedure.
So make sure that when an order status is changed to confirmed, you display another page on your backend and it will take the sale into account on that page automatically.

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

  • Posts: 3
  • Thank you received: 0
10 years 3 months ago #163066

Understood.

It sounds easier to track orders as they are created. So what do I need to change in the Hikashop Google Analytics plugin tracking code to successfully track orders at the "created" status?

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

  • Posts: 82683
  • Thank you received: 13338
  • MODERATOR
10 years 3 months ago #163094

Hi,

Tracking them on the creation is possible.
For that, you need to change the line:
if($order->order_status!=$confirmed){
to:
if($order->order_status!='created'){
in the file plugins/system/hikashopanalytics/hikashopanalytics.php
That however will lead to having orders taken into avvount even though you didn't receive payment for them (and that's why we do it on the confirmation of the order).

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

  • Posts: 3
  • Thank you received: 0
10 years 3 months ago #163421

Ok thanks. I'll see if this makes a difference and let you know

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

Time to create page: 0.060 seconds
Powered by Kunena Forum