nabeez Posted December 24, 2014 Share Posted December 24, 2014 Hi everyone, I've been struggling with this issue for a while now and I hope someone can help. Since I upgraded my site from 1.4 to 1.6 ( cooleather.com ) Google Analytics module stopped tracking ECommerce Data so now I'm shooting in the dark with conversion tracking etc.. Evern after I upgraded the GAnalytics module to the latest one .. still not tracking any ecomm conversion data. Anyone ha any idea? Much appreciate your help Nabil 1 Link to comment Share on other sites More sharing options...
Marthatpv Posted December 25, 2014 Share Posted December 25, 2014 have the same issue, how it affects my seo? how to fix it? i need help on this too Link to comment Share on other sites More sharing options...
nathanielleee Posted December 26, 2014 Share Posted December 26, 2014 Ive tried many times to fix this same issue. IT happened when i upgraded analytics to the new version. I wish this new prestashop version would let you keep your old versions. Sometimes its best not to update Link to comment Share on other sites More sharing options...
nathanielleee Posted December 28, 2014 Share Posted December 28, 2014 Just wondering if there are any updates to this issue? Link to comment Share on other sites More sharing options...
studio16 Posted December 29, 2014 Share Posted December 29, 2014 Hi everyone, I have/had the same problems. If i check the source code the header.tpl is not used anymore and there is no transaction code on the confirmation page So i checked whether the module was hooked to the displayTop position, it wasn't cause it used to use the header.tpl Now at least i see transaction code on the confirmation page, now just waiting for incoming data * To track transactions */ public function hookTop() { // Add Google Analytics order - Only on Order's confirmation page Link to comment Share on other sites More sharing options...
nabeez Posted December 30, 2014 Author Share Posted December 30, 2014 Hi studio16, Did that work? I look forward to hear the results. Thanks, Nabil Hi everyone, I have/had the same problems. If i check the source code the header.tpl is not used anymore and there is no transaction code on the confirmation page So i checked whether the module was hooked to the displayTop position, it wasn't cause it used to use the header.tpl Now at least i see transaction code on the confirmation page, now just waiting for incoming data * To track transactions */ public function hookTop() { // Add Google Analytics order - Only on Order's confirmation page Link to comment Share on other sites More sharing options...
cedricfontaine Posted December 31, 2014 Share Posted December 31, 2014 You can try to reset the module, cause it was not hooked to the new position by default. Link to comment Share on other sites More sharing options...
nabeez Posted January 1, 2015 Author Share Posted January 1, 2015 (edited) I did that multiple time with cash flush and doesn't help! I did some testing .. placed an order on COD. Here is what I saw in the order confirmation page, data seems to be added properly to Javascript but I see nothing in Google Analytics: <script type="text/javascript">/* <![CDATA[ */;var CUSTOMIZE_TEXTFIELD=1;var FancyboxI18nClose='Close';var FancyboxI18nNext='Next';var FancyboxI18nPrev='Previous';var added_to_wishlist='Added to your wishlist.';var ajax_allowed=true;var ajaxsearch=true;var baseDir='https://cooleather.com/';var baseUri='https://cooleather.com/';var blocksearch_type='top';var contentOnly=false;var customizationIdMessage='Customization #';var delete_txt='Delete';var displayList=false;var freeProductTranslation='Free!';var freeShippingTranslation='Free shipping!';var generated_date=1420121640;var google_conversion_color='ffffff';var google_conversion_currency='USD';var google_conversion_format=3;var google_conversion_id=1064642489;var google_conversion_label='1iMXCJv94QMQuc_U-wM';var google_conversion_language='en';var google_conversion_value=139;var google_remarketing_only=false;var id_lang=1;var img_dir='https://cooleather.com/themes/default-bootstrap/img/';var instantsearch=true;var isGuest=0;var isLogged=1;var loggin_required='You must be logged in to manage your wishlist.';var mywishlist_url='https://cooleather.com/module/blockwishlist/mywishlist';var page_name='order-confirmation';var placeholder_blocknewsletter='Enter your e-mail';var priceDisplayMethod=0;var priceDisplayPrecision=2;var quickView=false;var removingLinkText='remove this product from my cart';var roundMode=2;var search_url='https://cooleather.com/search';var static_token='803d143c769d0b7556a75673c7dc6901';var token='64072b106095389d7efa2b87ce1633ea';var usingSecureMode=true;var wishlistProductsIds=false;/* ]]> */</script><script type="text/javascript" src="https://cooleather.com/themes/default-bootstrap/cache/v_109_3836839901de119894c93769bcb7ddc2.js"></script> <script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js"></script> <script type="text/javascript">/* <![CDATA[ */;var yotpoAppkey=sH3eOi45K1csLY2UUczD3rG1Jt3n4QiAcyhaG5O4";function inIframe(){try{return window.self!==window.top;}catch(e){return true;[spam-filter] var inIframe=inIframe();if(inIframe){window['yotpo_testimonials_active]=true;} if(document.addEventListener){document.addEventListener('DOMContentLoaded',function(){var e=document.createElement("script");e.type="text/javascript",e.async=true,e.src="//staticw2.yotpo.com/"+yotpoAppkey+"/widget.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)});} else if(document.attachEvent){document.attachEvent('DOMContentLoaded',function(){var e=document.createElement("script");e.type="text/javascript",e.async=true,e.src="//staticw2.yotpo.com/"+yotpoAppkey+"/widget.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)});};;(window.gaDevIds=window.gaDevIds||[]).push('d6YPbH');(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','UA-30706855-4','auto');ga('require','ec');;(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K48H3J');;jQuery(document).ready(function(){var MBG=GoogleAnalyticEnhancedECommerce;MBG.setCurrency('USD');MBG.add({"id":null,"name":null,"category":null,"brand":"","variant":null,"type":"typical","position":"0","quantity":"1","list":"orderconfirmation","url":"","price":"0.00"}); MBG.addTransaction({"orderid":"OYNWSDFOY","affiliation":"Cooleather.com", "revenue":"139.00","shipping":"19.00","tax":0, "url":"https:\/\/cooleather.com\/module\/ganalytics\/ajax"});ga('send','pageview');});;jQuery(document).ready(function() {var MBG=GoogleAnalyticEnhancedECommerce;MBG.setCurrency('USD');ga('send','pageview');});/* ]]> */</script></body></html> You can try to reset the module, cause it was not hooked to the new position by default. Edited January 1, 2015 by nabeez (see edit history) Link to comment Share on other sites More sharing options...
studio16 Posted January 2, 2015 Share Posted January 2, 2015 Hi studio16, Did that work? I look forward to hear the results. Thanks, Nabil Unfortunately it didn't As long as this essential marketing tool isn't working prestashop is pretty much useless 1 Link to comment Share on other sites More sharing options...
nathanielleee Posted January 2, 2015 Share Posted January 2, 2015 Still wondering why this post is not getting the traffic it needs. Im sure someone can give some better insight on this issue. Analytics is the heartbeat of any e-commerce site and this is not a small issue. Link to comment Share on other sites More sharing options...
nabeez Posted January 2, 2015 Author Share Posted January 2, 2015 cedricfontaine send me a version of the GA Module today and it seems working fine and tracking ecommerce data. I'm going to test it for few day and confirm it. @cedricfontaine if your fixes are confirmed to be working, can you apply your fixes on the module so everyone can update it through Prestashop and benefit fro it? Still wondering why this post is not getting the traffic it needs. Im sure someone can give some better insight on this issue. Analytics is the heartbeat of any e-commerce site and this is not a small issue. Link to comment Share on other sites More sharing options...
nathanielleee Posted January 2, 2015 Share Posted January 2, 2015 ok let me know if it wrks out i wold like version of that module. ive tried just hard coding the analytics code into the header but still not working out. Link to comment Share on other sites More sharing options...
cedricfontaine Posted January 3, 2015 Share Posted January 3, 2015 Hello, Yes, I will push all the modifications if it works for you. If anyone want to test it also, just send me a message. Link to comment Share on other sites More sharing options...
nabeez Posted January 4, 2015 Author Share Posted January 4, 2015 Update: it only works with COD orders. Orders placed with PayPal module did not work. Can you please take a look? Link to comment Share on other sites More sharing options...
cedricfontaine Posted January 5, 2015 Share Posted January 5, 2015 Hello, I send you a new release. Link to comment Share on other sites More sharing options...
the.rampage.rado Posted January 5, 2015 Share Posted January 5, 2015 Where can we see the modifications? Pull request or something? Link to comment Share on other sites More sharing options...
Morten Borg Posted January 5, 2015 Share Posted January 5, 2015 I have the same problem after updating from 1.x to 2.x. Tried reset and uninstall/install with no luck. Hope a fix will be available soon, this is critical! :-( Link to comment Share on other sites More sharing options...
cedricfontaine Posted January 6, 2015 Share Posted January 6, 2015 You can try the dev branch on Git Hub. Pull requests have been merged. Link to comment Share on other sites More sharing options...
chris0241 Posted January 7, 2015 Share Posted January 7, 2015 Same problem here... 1.6.0.9 Tried the GA module, tried pasting code in the order confirmation.tpl It tracks bank wire, but not PayPal which is 100% of orders. any update welcome! http://www.PROtastic.co.uk Link to comment Share on other sites More sharing options...
cedricfontaine Posted January 8, 2015 Share Posted January 8, 2015 A new release available now should fixed all the problem, I hope. 1 Link to comment Share on other sites More sharing options...
nabeez Posted January 8, 2015 Author Share Posted January 8, 2015 Available where? A new release available now should fixed all the problem, I hope. Link to comment Share on other sites More sharing options...
jetx Posted January 9, 2015 Share Posted January 9, 2015 The one I downloaded from addons and re-installed yesterday is working/ reporting just fine. (presta vs1.6.09). Link to comment Share on other sites More sharing options...
cedricfontaine Posted January 9, 2015 Share Posted January 9, 2015 Is it the module Google Analytics 2.0.5 ? Link to comment Share on other sites More sharing options...
jgagnon Posted January 9, 2015 Share Posted January 9, 2015 Nothing to do with the Google Analytics module. This module is fine. Just make sure that the Property Settings for your PS store are pointing to the correct URL in Google Analytics. I had mine configured to look for an http site whereas my site is https. So it did not record any stats until I updated the Property settings to the proper URL. It's working fine now. Link to comment Share on other sites More sharing options...
nathanielleee Posted January 17, 2015 Share Posted January 17, 2015 It kindve gives more issues for me. Its not tracking but its saying crazy numbers. For instance, at the beginning of the day it had already reported 84 transactions when we only have 4 in our back office. Anyone know what could be causing this issue? Link to comment Share on other sites More sharing options...
frankc83 Posted January 17, 2015 Share Posted January 17, 2015 Also I have the same problem . The values shown are not consistent with reality .is provided an update soon? Link to comment Share on other sites More sharing options...
nabeez Posted January 18, 2015 Author Share Posted January 18, 2015 Problem is resolved that the data is getting reported now BUT it's not being reported accurately. It reported 16 transactions in the Affiliation section see attached while I didn't get any of them! Link to comment Share on other sites More sharing options...
simberak Posted January 18, 2015 Share Posted January 18, 2015 Same here, it shows more transactions than we have Link to comment Share on other sites More sharing options...
frankc83 Posted January 19, 2015 Share Posted January 19, 2015 Hi, analyzing the behavior of the module ganalytics I noticed that some erroneous transactions stem from the fact that when the customer enters orderHistory inserts a new record in the table ps_ganalitycs . Now as to the inclusion in the database is only in the method hookOrderConfirmation , probably there is a bug in the call of hookOrderConfirmation Link to comment Share on other sites More sharing options...
Macddr Posted January 19, 2015 Share Posted January 19, 2015 Hi! I have the same problems with ganalytics 2.0.5. It shows me more transactions than I have, and the total amount of any orders are wrong. 1 Link to comment Share on other sites More sharing options...
frankc83 Posted January 19, 2015 Share Posted January 19, 2015 when it will be released an update that fixes the problem ? Link to comment Share on other sites More sharing options...
cedricfontaine Posted January 19, 2015 Share Posted January 19, 2015 Hello, I think that it could be related to the hook backofficeHeader. Could you try to unhook the module to backofficeHeader and tell me if it solves the problem, I'm currently investigating what the problem is. Link to comment Share on other sites More sharing options...
Jacopo Posted January 19, 2015 Share Posted January 19, 2015 Same problem here; analytics is no tracking any data at all www.belee.it Module2.0.5 PS 1.6.0.5 Many thanks Link to comment Share on other sites More sharing options...
Jacopo Posted January 19, 2015 Share Posted January 19, 2015 Sorry, but I do not understand: what should I do to fix this? Link to comment Share on other sites More sharing options...
Jacopo Posted January 19, 2015 Share Posted January 19, 2015 sorry sticker, but do not understand: what should I do to fix the problem? I tried to install\clear cache\install ando to reset the module. GA panel tells me everything is fine, but I can't get no data at all. many thanks Link to comment Share on other sites More sharing options...
nabeez Posted January 19, 2015 Author Share Posted January 19, 2015 I now unhooked the module from all admin pages. I'll let you know if that solves it. Link to comment Share on other sites More sharing options...
willii Posted January 22, 2015 Share Posted January 22, 2015 Same here. After all 2.x updates my GA stopped working completely I had to install an older version but the Conversions do not work. Link to comment Share on other sites More sharing options...
fatyas Posted January 25, 2015 Share Posted January 25, 2015 I have the same problem on prestashop 1.6.0.6 with GA version 2.0.6. The tag assistant shows the following error/warning: No HTTP response detected Code found outside of <head> tag Did anyone find a solution? Link to comment Share on other sites More sharing options...
niczchin.pl Posted January 26, 2015 Share Posted January 26, 2015 Hi All, I also have Google Analytics 2.0.6 module and I see no data in analytics :/ How is this possible that Presta Society isn't doing everything to solve that kind of issue? Link to comment Share on other sites More sharing options...
cedricfontaine Posted January 26, 2015 Share Posted January 26, 2015 Hello, Could any of you with no data, contact me in PM. I will try to fix the problem. Link to comment Share on other sites More sharing options...
rintrah Posted January 27, 2015 Share Posted January 27, 2015 Hi, Also tried this module but on a old prestashop 1.4, because my conversions stop working. Get a fatal error with: Notice: Undefined property: ShopBackwardModule::$name in /...../modules/ganalytics/ganalytics.php on line 255 Does anyone have an idea ? Happen with latest ganalycs v2.0.6 Link to comment Share on other sites More sharing options...
cedricfontaine Posted January 27, 2015 Share Posted January 27, 2015 Hi, Also tried this module but on a old prestashop 1.4, because my conversions stop working. Get a fatal error with: Notice: Undefined property: ShopBackwardModule::$name in /...../modules/ganalytics/ganalytics.php on line 255 Does anyone have an idea ? Happen with latest ganalycs v2.0.6 Hello, Do you have the module Backward Compatibility ? Link to comment Share on other sites More sharing options...
rintrah Posted January 28, 2015 Share Posted January 28, 2015 Hello, thanks for your reply. Yes backward compatibility is installed and working (latest paypal module is using it) Link to comment Share on other sites More sharing options...
cedricfontaine Posted January 29, 2015 Share Posted January 29, 2015 Hello, thanks for your reply. Yes backward compatibility is installed and working (latest paypal module is using it) Hello, You can try to change the line 'affiliation' => $this->context->shop->name by 'affiliation' => Configuration::get('PS_SHOP_NAME') on line 255 of ganalytics.php Link to comment Share on other sites More sharing options...
Kharding Posted February 2, 2015 Share Posted February 2, 2015 Tried the below and still I get not analytics data. In analytics under tracking info I get "Status: Tracking Not Installed" Even though it is installed. Prestashop 1.6.011 New install, and Ganalytics module 2.0.6 If you want to pm me I can let you have full access to the site should you want a site to troubleshoot on. Hello, You can try to change the line 'affiliation' => $this->context->shop->name by 'affiliation' => Configuration::get('PS_SHOP_NAME') on line 255 of ganalytics.php Link to comment Share on other sites More sharing options...
PaulJW Posted February 9, 2015 Share Posted February 9, 2015 I updated to v 2.0.6 last Friday and since then I've no analytics data . I'm on Prestashop 1.4.3. Link to comment Share on other sites More sharing options...
tuk66 Posted February 9, 2015 Share Posted February 9, 2015 I'm not surprised. The latest versions of modules usually don't care about older PrestaShop versions. Simply try to uninstall the module and install again. It sometime helps. Link to comment Share on other sites More sharing options...
willii Posted February 9, 2015 Share Posted February 9, 2015 I updated to v 2.0.6 last Friday and since then I've no analytics data . I'm on Prestashop 1.4.3. Same here, but I am on PS 1.6.0.9. When I install GA 2.0.6 there is no data at all. When I install 1.8.2 it works but doesn't track orders. I wann go back to an older (working) version. Anyone have got an older version for download? 1 Link to comment Share on other sites More sharing options...
tuk66 Posted February 9, 2015 Share Posted February 9, 2015 https://github.com/PrestaShop/ganalytics and revert to an older commit. Up to 1.4 this module is a part of the installation package. Link to comment Share on other sites More sharing options...
PaulJW Posted February 9, 2015 Share Posted February 9, 2015 I'm not surprised. The latest versions of modules usually don't care about older PrestaShop versions. Simply try to uninstall the module and install again. It sometime helps. Thanks for suggestion, tried that and it still doesn't work. Link to comment Share on other sites More sharing options...
craselrau Posted February 10, 2015 Share Posted February 10, 2015 Hi there, I'm using GA but instead GA tracking code, I'm using it as a tag in GTM. It tracks ok visits but it doen't track neither paypal or payplug transactions. I'm trying to track ths data as tags in enhanced ecommerce with GTM, but I need to declare data in the Data Layer... Does anybody know how to do this? Thank you. Link to comment Share on other sites More sharing options...
cedricfontaine Posted February 10, 2015 Share Posted February 10, 2015 I updated to v 2.0.6 last Friday and since then I've no analytics data . I'm on Prestashop 1.4.3. The module should work with 1.4. Module should be hooked to footer in order to send data to Google Analytics. Link to comment Share on other sites More sharing options...
willii Posted February 10, 2015 Share Posted February 10, 2015 I have just updated GA to 2.0.7 and the real-time tracking is working hurrah! It didn't work before. Let's wait for an order to come in and see whether it's gonna be tracked or not. Link to comment Share on other sites More sharing options...
willii Posted February 11, 2015 Share Posted February 11, 2015 Please ignore my previous post as the GA 2.0.7 does not track anything at all! It was probably cookies from older (working) version. The GA is hooked to the following modules: displayAdminOrder displayBackOfficeHeader displayFooter displayFooterProduct displayHeader displayHome displayOrderConfirmation Am I missing something? Link to comment Share on other sites More sharing options...
cedricfontaine Posted February 11, 2015 Share Posted February 11, 2015 Hello, Could you give me the link to your shop ? 1 Link to comment Share on other sites More sharing options...
willii Posted February 11, 2015 Share Posted February 11, 2015 Hello, Could you give me the link to your shop ? Hi ya, Sure. I have sent you a PM. Cheers. Link to comment Share on other sites More sharing options...
Recommended Posts