Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Google Analytics Tracks Only Some Orders Rate Topic   - - - - -

 
  • cristianb
  • Newbie
  • Trial users
  • Join Date: 11-Apr 16
  • 1 posts

Posted 11 April 2016 - 11:15 AM #1

I am having trouble with tracking all orders on the site using google analytics. I've set up an event to appear on the confirmation page but not all orders are recorded.

The value is passed correctly to the script, yet most of the orders are not logged.

Anyone experiencing a similar situation?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 22192 posts

Posted 11 April 2016 - 02:31 PM #2

I am having trouble with tracking all orders on the site using google analytics. I've set up an event to appear on the confirmation page but not all orders are recorded.

The value is passed correctly to the script, yet most of the orders are not logged.

Anyone experiencing a similar situation?

 

app/addons/google_analytics/func.php

 

The fn_google_analytics_change_order_status function here has strange condition:

if (Registry::get('addons.google_analytics.track_ecommerce') == 'N' || AREA != 'A') {
    return false;

It means that it will send requests to GA on order status change from the admin panel only. Try to replace it with 

if (Registry::get('addons.google_analytics.track_ecommerce') == 'N') {
    return false;

and check. Please keep us updated about the result


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)