enzor Posted June 6, 2012 Share Posted June 6, 2012 Hi! i need some hlep for Google Analytics v1.4.1. module The site tracks only 'category' and 'product' words, with this track code: _gaq.push(['_trackPageview', 'category']); _gaq.push(['_trackPageview', 'product']); is this normal??? I need track separately the categories and products name like this: _gaq.push(['_trackPageview', 'category_name']); _gaq.push(['_trackPageview', 'product_name']); i'm using seo frendly urls & prestashop 1.4.8 thx! enzor 1 Link to comment Share on other sites More sharing options...
enzor Posted June 6, 2012 Author Share Posted June 6, 2012 (edited) i find this part in modules/ganalytics/header.tpl: {if isset($pageTrack)}_gaq.push(['_trackPageview', '{$pageTrack}']); i changed this line to: {if isset($pageTrack)}_gaq.push(['_trackPageview', '{$meta_title}']); Works fine! _gaq.push(['_trackPageview', 'The Product name - Your website's name']); _gaq.push(['_trackPageview', 'The Category name - Your website's name']); Edited June 6, 2012 by enzor (see edit history) Link to comment Share on other sites More sharing options...
Radium Posted June 20, 2012 Share Posted June 20, 2012 (edited) I am using prestashop 1.4.8.2 If in modules/ganalytics/header.tpl you change {if isset($pageTrack)}_gaq.push(['_trackPageview', '{$pageTrack}']); to {if isset($pageTrack)}_gaq.push(['_trackPageview', '{$meta_title}']); Google Analytics goals will no longer function properly. I have come up with this solution instead: in /modules/ganalytics/ganalytics.php add the following underneath $file = str_replace(array('.php', '-'), '', basename($_SERVER['SCRIPT_NAME'])); add this: if($file == "category" || $file == "product" || $file == "search" || $file == "cms" || $file == "index") { $file = $_SERVER["REQUEST_URI"]; } Edited June 21, 2012 by Radium (see edit history) 9 Link to comment Share on other sites More sharing options...
Artisans du web Posted July 26, 2012 Share Posted July 26, 2012 (edited) Very good workaround ! Thanks Edited July 26, 2012 by Artisans du web (see edit history) Link to comment Share on other sites More sharing options...
gswant Posted August 16, 2012 Share Posted August 16, 2012 Thanks is also ideal for monitoring the site search. Link to comment Share on other sites More sharing options...
Mias-Accessories Posted September 13, 2012 Share Posted September 13, 2012 Nice one Radium! Thanks for that. Link to comment Share on other sites More sharing options...
totallighting.sk Posted September 29, 2012 Share Posted September 29, 2012 Yeah, now GA is working fine! I`m using PS 1.4.9!!! Link to comment Share on other sites More sharing options...
Gaqua77 Posted October 4, 2012 Share Posted October 4, 2012 Yess dear , these all are normal no any mistake. I m also using the same & it is working fine at my end. Link to comment Share on other sites More sharing options...
BubbleWorld Posted October 4, 2012 Share Posted October 4, 2012 thanks radium ! It works perfectly with PS 1.4.9.0 Link to comment Share on other sites More sharing options...
suraj0123 Posted October 10, 2012 Share Posted October 10, 2012 Yeah really nice thanks for sharing ..... Link to comment Share on other sites More sharing options...
Pippo3000 Posted October 15, 2012 Share Posted October 15, 2012 (edited) Just implemented this fix curious to See the results. Right now google IS tracking visits but Interestingly under Pages it shows all traffic under /order/step0.html. Only under Page Titles it then shows the products and cms pages visited. Hope that this will fix it. When should I see First results? After one day? Phil Edited October 15, 2012 by Pippo3000 (see edit history) Link to comment Share on other sites More sharing options...
Pippo3000 Posted October 16, 2012 Share Posted October 16, 2012 Hm. No change. Still the same symptoms.. Link to comment Share on other sites More sharing options...
tonko81 Posted December 1, 2012 Share Posted December 1, 2012 It's working perfectly on my Presta 1.4.8.2 Thank you Radium! Link to comment Share on other sites More sharing options...
Gomlers Posted December 1, 2012 Share Posted December 1, 2012 Can anyone help me setting up GOALS in GA? I'm using 1.4.9.0 + One-page-checkout (default one, by prestashop) My goals aren't tracking anything.. Link to comment Share on other sites More sharing options...
akshaysn Posted December 9, 2012 Share Posted December 9, 2012 After upgrading to 1.4.9 i still have the same issue. My analytics do not show users going through order?step=1, order?step=2, etc... Can anyone help? Thanks in advance Link to comment Share on other sites More sharing options...
madhu.iyengar Posted December 14, 2012 Share Posted December 14, 2012 We spent days trying to track this one out. COD was not getting tracked in google analytics while the orders from payment gateway always was. It always showed as /order/step0.html So the funnel would get messed up no matter what we did. The real issue was the friendly url and the htaccess that got generated from it. For the Order Confirmation page in the SEO/URL naturally we used the friendly url as orderconfirmation. Since htaccess file has order with a rewrite all urls starting with order would default to /order/step0.html You will notice it will show step0 even if you go to order-history page, order-slip or anything starting with an order. So the solution is to change all the friendly url's starting with an order to something unique. Also regenerate the htaccess file. We hope many of u will not go through the same pains. Cheers 1 Link to comment Share on other sites More sharing options...
Pippo3000 Posted December 14, 2012 Share Posted December 14, 2012 We hope many of u will not go through the same pains. Cheers oh, thanks a lot. that may help indeed to nail this down... Link to comment Share on other sites More sharing options...
chetodek Posted December 27, 2012 Share Posted December 27, 2012 I've been looking for these solutions. Thanks for sharing everyone. SamurisSEO Link to comment Share on other sites More sharing options...
mirra99 Posted March 22, 2013 Share Posted March 22, 2013 Hi, We are having the same problem, using PS 1.4.4.1. and GA 1.3, and I cannot find the code in ganalytics.php mention by Radium. I suppose that solution is for the newer version of GA in PS. Could you please help me solve the issue for the 1.3 version of GA? I thought of uploading the newer version of GA from a newer version of PS, but I'm worried that it won't be compatible. Thanks. Link to comment Share on other sites More sharing options...
MacMaster Posted May 27, 2013 Share Posted May 27, 2013 (edited) I can also indeed confirm Radiums (#3) soloution works perfect! Many thanks! However please beware: The code change will only effect future data. So if you like me have data span in GA set to 1 month, it might be difficult to see the effect initially since the new/correct data will be last in the list and sometimes not even visible on the first page. This is of cause only a temporary issue that will disappear over time. Edited May 27, 2013 by MacMaster (see edit history) Link to comment Share on other sites More sharing options...
markjl Posted May 27, 2013 Share Posted May 27, 2013 (edited) Hi thanks for this i find this part in modules/ganalytics/header.tpl: {if isset($pageTrack)}_gaq.push(['_trackPageview', '{$pageTrack}']); i changed this line to: {if isset($pageTrack)}_gaq.push(['_trackPageview', '{$meta_title}']); I assume below that 'The Product name - Your website's name' and 'The Category name - Your website's name' are alternatives for '{$meta_title}' Works fine! _gaq.push(['_trackPageview', 'The Product name - Your website's name']); _gaq.push(['_trackPageview', 'The Category name - Your website's name']); Edited May 27, 2013 by markjl (see edit history) 1 Link to comment Share on other sites More sharing options...
markjl Posted May 28, 2013 Share Posted May 28, 2013 Thanks Radium soln 3 seems to be working for me Link to comment Share on other sites More sharing options...
alesx Posted May 31, 2013 Share Posted May 31, 2013 (edited) Hello, for those who are interrested there is a module for tracking orders correctly in Google Analytics with all payment methods, more information in this post : http://www.prestasho...ost__p__1220594 Edited May 31, 2013 by alesx (see edit history) Link to comment Share on other sites More sharing options...
dorje Posted June 9, 2013 Share Posted June 9, 2013 This is great thanks @radium But anybody knows how to track the add to cart button in google analytics i googled it many times and the solutions are only for others ecommerce platform not for our prestashop. I did tried to edit some codes but i messed them. So please does anyone know how to track them in google analytics ? Link to comment Share on other sites More sharing options...
vekia Posted June 9, 2013 Share Posted June 9, 2013 the solution is available here: http://www.prestashop.com/forums/index.php?/topic/253411-track-add-to-cart-button-in-ga/page__view__findpost__p__1261454 Link to comment Share on other sites More sharing options...
dorje Posted June 11, 2013 Share Posted June 11, 2013 Hey what does this edited code in Google analytics do that is provided by radium . I mean does track any special things that helps to understand the conversion rate or something like that. Please tell Link to comment Share on other sites More sharing options...
markjl Posted June 11, 2013 Share Posted June 11, 2013 Its great because it means that in Google Analytics you can see the exact URL of the pages visited Link to comment Share on other sites More sharing options...
dorje Posted June 11, 2013 Share Posted June 11, 2013 But i can see the exact URL of the pages visited in GA without editing any codes in GA module, You can get it under traffic sources and put the secondary or primary dimension to Landing page and there you can get the reports for the urls..... Link to comment Share on other sites More sharing options...
markjl Posted June 11, 2013 Share Posted June 11, 2013 Well I couldn't before. The only pages I could see in landing page were /product and / category and not the item name v1.4.9 Link to comment Share on other sites More sharing options...
dorje Posted June 15, 2013 Share Posted June 15, 2013 But i can see the pages under traffic sources secondary dimension as landing page Link to comment Share on other sites More sharing options...
markjl Posted June 15, 2013 Share Posted June 15, 2013 Well thats great for you, I don't know why I couldn't but now we both can 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