Jump to content

Problem tracking sales in Google Analytics


Recommended Posts

I have a problem tracking my sales/orders in Prestashop - I can't see them in Google Analytics.

I can see my traffic, but not my orders. I have enabled 'Ecommerce tracking' in Analytics.

 

Anyone who can help with tips/ideas on where the error is ?

 

Thanks in advance

 

Naalen

Link to comment
Share on other sites

  • 9 months later...

Same here. Anyone could help? After upgade for google analytics module I can't track transactions on G ECommerce.

1.6.09 - latest GA module 2.0.4 (upgraded twice for this week)

 

Found errors in log:

PHP Fatal error:  Class 'ganalyticsajaxModuleFrontController' not found in /home/userid/public_html/classes/controller/Controller.php on line 135, referer: http://mysite.com/admin123/index.php?controller=AdminModules&token=fa8b0ebe92b62552fb4ac8493ee406df&anchor=Ganalytics
[Wed Dec 17 23:01:22 2014] [error] [client 50.179.237.75] PHP Fatal error:  Class 'ganalyticsajaxModuleFrontController' not found in /home/userid/public_html/classes/controller/Controller.php on line 135, referer: http://mysite.com/admin123/index.php?controller=AdminModules&token=fa8b0ebe92b62552fb4ac8493ee406df&conf=32
 
On 12/17 Browser Console showed: 
Origin null is not allowed by Access-Control-Allow-Origin

I added to .htaccess code I found on google:

 

<IfModule mod_headers.c>
   Header set Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
   Header set Access-Control-Allow-Credentials true
   Header set Access-Control-Allow-Headers "accept, authorization"
</IfModule>  
 
No more error in browser, but Ecommerce tracking still not showing transactions

 

 

Edited by valkor (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

 

Same here. Anyone could help? After upgade for google analytics module I can't track transactions on G ECommerce.

1.6.09 - latest GA module 2.0.4 (upgraded twice for this week)

 

Found errors in log:

PHP Fatal error:  Class 'ganalyticsajaxModuleFrontController' not found in /home/userid/public_html/classes/controller/Controller.php on line 135, referer: http://mysite.com/admin123/index.php?controller=AdminModules&token=fa8b0ebe92b62552fb4ac8493ee406df&anchor=Ganalytics
[Wed Dec 17 23:01:22 2014] [error] [client 50.179.237.75] PHP Fatal error:  Class 'ganalyticsajaxModuleFrontController' not found in /home/userid/public_html/classes/controller/Controller.php on line 135, referer: http://mysite.com/admin123/index.php?controller=AdminModules&token=fa8b0ebe92b62552fb4ac8493ee406df&conf=32
 
On 12/17 Browser Console showed: 
Origin null is not allowed by Access-Control-Allow-Origin

I added to .htaccess code I found on google:

 

<IfModule mod_headers.c>
 
   Header set Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
   Header set Access-Control-Allow-Credentials true
   Header set Access-Control-Allow-Headers "accept, authorization"
</IfModule>  
 
No more error in browser, but Ecommerce tracking still not showing transactions

 

 

 

Can anybody explain how this lines in googleanalytics.php works if url doesn't have controller anymore starting from 1.6, and this is what I found  on  lines 235-238:

// Add Google Analytics order - Only on Order's confirmation page
$controller_name = Tools::getValue('controller');
 
if ($controller_name == 'orderconfirmation')
Same for 'order' and 'orderopc' in hookFooter later on lines 284 and 295 ($controller_name == 'orderconfirmation')
Should it use url /order-confirmation?id_cart= ?
Link to comment
Share on other sites

Is it possible to find earlier version of this module? Same as Prestashop on github. Seems like earlier versions works fine concerning analytics order / conversion tracking.

 

Anyone knows if this one is working?

http://addons.prestashop.com/en/analytics-stats-prestashop-modules/6507-google-analytics-e-commerce-php.html

 

I think it's soon worth paying for it...

Link to comment
Share on other sites

Me too, google analytics module I can't track transactions on G ECommerce. 

 

Elaine

 

Seems like there is a problem in the version from Prestashop Ganalytics. Many have this problem,

 

Which version do you use?

 

Use some older version to make it work until there is an updated version released. Please find the working ganalytics module 1.8.2 to be downloaded above.

Link to comment
Share on other sites

Correct, with the old version it works fine!

 

Now I have to find a solution for tracking sales correct in adwords / multishop....

 

I think there can't be too much time before prestashop team fix this. This is a very very imortant part of the e-commerce platform and it has to work correctly.

Link to comment
Share on other sites

  • 8 months later...

I know this thread is fairly old, but it is not marked as resolved, and the problem is definitely still there.

 

I have a client who runs multistore. PrestaShop 1.6.0.9 - GA module version 2.2.0. Like someone else writes in this thread, it seems to definitely be the later versions of the GA module that causes the issues.

 

We have tried the following:

Installing the 1.8 version of the module. This did not change anything

Disable Google Analytics API module - in case it caused a conflict (it wasn't used anyway). Did not help

Check to see if it is a certain payment method that is not tracked - that can be ruled out, as all payment methods are traced at one point or another

There are no errors in the error log on the webhost and the other logs show nothing with regards to Google Analytics as far as I can tell

 

Here is some proof that conversions are not tracked:

 

EDIT: Attached as screen dump as tables didn't work out very well

 

I have found several different topics about Google Analytics problems, but none that are resolved (This one https://www.prestashop.com/forums/topic/388140-google-analytics-ecommerce-tracking/?do=findComment&comment=1900261 just links to this thread, but like I wrote, downgrading does not work in this shop).

 

I hope someone has an idea - or perhaps it should just be admitted as a bug to PrestaShop?

post-59716-0-97935800-1443184141_thumb.jpg

Edited by Prestafan1234 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...