huyle Posted November 4, 2015 Share Posted November 4, 2015 Hi I got a problem with the Google Analytics module that whenever I enable it the customers cannot add the product into cart and the error message says: Impossible to add the product to the cart.<br/>textStatus: 'error'<br/>errorThrown: 'Internal Server Error'<br/>responseText:<br/> Then I disabled the module and it works fine again. After a while I check the Google analytics and look like the analytics is not tracking properly anymore ( see image) Does anyone know if the module is the reason for the wrong tracking on google analytics and how to fix this? Thanks! Link to comment Share on other sites More sharing options...
davidell Posted November 4, 2015 Share Posted November 4, 2015 (edited) Hi huyle, I hope you have better luck posting in these forums than I do... I have to agree, there appears a problem with GA tracking. I have a feeling though this may just be on newer versions of PS? I have a site running 1.6.0.8 and I am 100% certain it isn't tracking correctly. Out of curiosity, what version is the site you are experiencing problems with? There are tonnes of posts on this subject if you search Google. Along with potential newer versions of PS I'm also wondering what impact CCC (Combine, Compress and Cache) has on GA as I tried adding GA code to header.tpl using {literal} and it seems the code still gets stripped, looking almost identical to the module code? Have a read of: https://productforums.google.com/forum/#!topic/analytics/2t_okdyYtVcWhich links to:https://www.prestashop.com/forums/topic/299160-solved-google-analytics-not-working-after-upgrading-to-1541Hopefully we can find a solution, but I'm leaning more and more to CCC 'breaking' the code somehow? Edited November 4, 2015 by davidell (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted November 4, 2015 Share Posted November 4, 2015 Hi I got a problem with the Google Analytics module that whenever I enable it the customers cannot add the product into cart and the error message says: Impossible to add the product to the cart.<br/>textStatus: 'error'<br/>errorThrown: 'Internal Server Error'<br/>responseText:<br/> Then I disabled the module and it works fine again. After a while I check the Google analytics and look like the analytics is not tracking properly anymore ( see image) Does anyone know if the module is the reason for the wrong tracking on google analytics and how to fix this? Thanks! For blank page/500 errors please enable PrestaShop debug mode. https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/ Then recreate the issue to see if you get underlying error, if not make sure to also check your error log (php) from hosting control panel. Let us know what you learn. Hi huyle, I hope you have better luck posting in these forums than I do... I have to agree, there appears a problem with GA tracking. I have a feeling though this may just be on newer versions of PS? I have a site running 1.6.0.8 and I am 100% certain it isn't tracking correctly. Out of curiosity, what version is the site you are experiencing problems with? There are tonnes of posts on this subject if you search Google. Along with potential newer versions of PS I'm also wondering what impact CCC (Combine, Compress and Cache) has on GA as I tried adding GA code to header.tpl using {literal} and it seems the code still gets stripped, looking almost identical to the module code? Have a read of: https://productforums.google.com/forum/#!topic/analytics/2t_okdyYtVc Which links to: https://www.prestashop.com/forums/topic/299160-solved-google-analytics-not-working-after-upgrading-to-1541 Hopefully we can find a solution, but I'm leaning more and more to CCC 'breaking' the code somehow? This is a community without any PrestaShop developers, that is what forge is for....as a community we ask that you are kinder in your opinion of help you feel you deserve. You get what you put into it. So please don't open off topic about your experience here...it's the best ecommerce community on the planet. Thanks Link to comment Share on other sites More sharing options...
huyle Posted November 5, 2015 Author Share Posted November 5, 2015 Hi all I am using Prestashop 1.6.1.2 version. I upgraded the module and reinstalled it but it's still not working. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now