yomas Posted December 28, 2013 Share Posted December 28, 2013 (edited) Solved in this topic : http://www.prestashop.com/forums/topic/298703-module-universal-analytics/ Hi all !Having little issues with integrating Google Analytics on prestashop :-(In google chrome javascript console I get "Uncaught ReferenceError: ga is not defined"I followed some topics to configure GA to e-commerce nicely, added my tracking code in the module but it isn't working...Here's the website I'm working on :www.quentincros.comFurther more when I look in ga tracking code part it says that no tracking is detected...Can't find what I'm doing wrong :-(I just want to have classical traking on pages and if possible a little information with commands...If someone has an idea I'm ready !!!Thanks in advance.Best regards Edited January 4, 2014 by yomas (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted December 28, 2013 Share Posted December 28, 2013 how you added analytics script? with module? or manually? Link to comment Share on other sites More sharing options...
Ster Posted December 28, 2013 Share Posted December 28, 2013 Hello, I have the same problem. I installed the analytics module and filled in the tracking code, but it doesn't work. In the analytics account it says: "Google Analytics is not detected in your website" I also tried to put the script into the Header.tpl but when i do this (between the <HEAD> and </HEAD> the website is not visible anymore. Url; www.ster-sieraden.nl Prestashop version: 1.5.6 Theme: 560 Do you now what to do Milos? Thanks. Greets Reinier Link to comment Share on other sites More sharing options...
yomas Posted December 28, 2013 Author Share Posted December 28, 2013 (edited) Hi Ster & vekia! Exactly the same issue than Ster... Passing by the module gives me ga isn't defined and manually adding gives me a blank page:-/ Edited December 28, 2013 by yomas (see edit history) Link to comment Share on other sites More sharing options...
yomas Posted December 30, 2013 Author Share Posted December 30, 2013 Up please I can't solve this it's getting me crazy :'( Link to comment Share on other sites More sharing options...
yomas Posted December 30, 2013 Author Share Posted December 30, 2013 Ok stupid am I I havn't seen the {} in the google script... Using literal solved the problem but the module doesn't seem to work I added the Ga script in footer.tpl. Regards. Link to comment Share on other sites More sharing options...
vekia Posted December 30, 2013 Share Posted December 30, 2013 so it's solved or not? you marked it as solved, but said that it doesnt work. Link to comment Share on other sites More sharing options...
bannerclick Posted December 30, 2013 Share Posted December 30, 2013 I am not sure what version you are using. I tried the latest version on Github, but that does not work for Analytics.js (the latest version of the analytics script) Went back to the old one, and all is fine again. Seems presta developers are so busy with version 1.6, they forget proper support for the existing version. (i have issues with gsitemap for months now...) Link to comment Share on other sites More sharing options...
yomas Posted December 30, 2013 Author Share Posted December 30, 2013 Solved by adding it directly in footer.tpl, but the module himself doesn't work^^ Bannerclick I agree there's some debug to do in prestashop but it worth better than nothing, don't you think ? ;-) After all I don't really understand the advanced settings of analytics for e-shops, the manual add of the script is ok for my use^^ See you soon for other debug post;-) Link to comment Share on other sites More sharing options...
Ster Posted December 30, 2013 Share Posted December 30, 2013 Hi Yomas, Good to hear you solved it. Can you provide the right script i have to put in the footer.tpl? It still doesn't work with my website. Must i only remove the {} Please let me know Link to comment Share on other sites More sharing options...
yomas Posted December 30, 2013 Author Share Posted December 30, 2013 Hello! You just have to copy/paste the tracking code given By google in footer.tpl (I put it just before the </body> ) But you have to put the entire script into {literal} {/literal}. So it will look like : {literal} here your google script {/literal} </body> Hope this is clear for you I'm writing with my phone;-) 1 Link to comment Share on other sites More sharing options...
Ster Posted December 31, 2013 Share Posted December 31, 2013 Thx it seems to work, GA now says "Status: tracking installed" Thx Link to comment Share on other sites More sharing options...
bannerclick Posted January 2, 2014 Share Posted January 2, 2014 @ Yomas, I have the multishop enabled, and then this solution doesnt work, so i need the settings via the module... And true, its better than nothing (but i really think presta dev team needs to get priorities right, and it could be so much better Link to comment Share on other sites More sharing options...
bannerclick Posted January 2, 2014 Share Posted January 2, 2014 The module found here: http://www.prestashop.com/forums/topic/298703-module-universal-analytics/ works fine on 1.5+ and multistore Link to comment Share on other sites More sharing options...
yomas Posted January 3, 2014 Author Share Posted January 3, 2014 Ok thanks it's working !! May you explain further in few lines the how to of objectives ? I've settled the checkout to one page checkout so I'm really not sure how to configure the objective... I've settled one to aim on product.php, and skipped the tunnel proccess since I have only one page for checkout. Is this settle right ? Thanks again and wishing you a happy new year !! 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