archproject Posted April 7, 2010 Share Posted April 7, 2010 I enabled the google analytics module and all it ask for is the Username for the google anaylytics account. But when I check in my google analytics site profile the tracking code is not installed. I have read the below post and I tried to put my analytics code at /themes/mythemes/footer.tpl but didn't work. http://www.prestashop.com/forums/viewthread/49516/installation_de_prestashop/resolugoogle_analyticsCan someone help me ?RegardsArchproject Link to comment Share on other sites More sharing options...
jocelynucf Posted April 17, 2010 Share Posted April 17, 2010 Hello there! Can you please help me, I would like to know how to get google analytics on my prestashop page. First of all I do not see a module for it therefore I cannot enable it. Where can I download a module for it or how or where can I see it. Please be specific. Thanks!!!! Link to comment Share on other sites More sharing options...
archproject Posted April 17, 2010 Author Share Posted April 17, 2010 I can't help you there since I am also stuck hehehehe ... We need somebody to reply to this thread. we need to get noticed hehehe Link to comment Share on other sites More sharing options...
Prestafan1234 Posted April 17, 2010 Share Posted April 17, 2010 Have you looked under Modules, Stats and Google Analytics? I believe it's a standard module Link to comment Share on other sites More sharing options...
archproject Posted April 18, 2010 Author Share Posted April 18, 2010 yes it is there but when I input the ID for my analytics account ... nothing happens ... and google analytics site says that I have not installed the code yet ... Link to comment Share on other sites More sharing options...
Banibooi Posted April 18, 2010 Share Posted April 18, 2010 Woudln't adding the javascript code in the header.tpl or footer.tpl suffice? Link to comment Share on other sites More sharing options...
archproject Posted April 18, 2010 Author Share Posted April 18, 2010 Well I tried to add the javascript in the footer.tpl in the mythemes folder and when I refresh google analytics page it says that the code was not installed. Usually the page will say that it's fetching data from site and would get the data within about 24 to 48 hrs or so but not at the moment it's not doing so. maybe I will try to add it in the header.tpl .. later ... Link to comment Share on other sites More sharing options...
Banibooi Posted April 19, 2010 Share Posted April 19, 2010 The real benefit of having javascript code in the footer, is that the browser will render the html/css code - so the user will see a page - then after it has output the html - it will render javascript.Keep in mind that the browser gets the code from your server - but also from google's server -> which means a couple of milliseconds in extra delay.But try the footer and keep us updates! Link to comment Share on other sites More sharing options...
Phatcat1987 Posted April 19, 2010 Share Posted April 19, 2010 Where exactly in the header and/or footer do you place the javascript? Between what tags? I'm having the same problems as the OP and jocelynucf Link to comment Share on other sites More sharing options...
Banibooi Posted April 19, 2010 Share Posted April 19, 2010 Well, there should be instructions on google's site. A couple of years ago you had to put the code after <body>. Try after body, if that failsthen after the last meta-tag. Goo luck! Link to comment Share on other sites More sharing options...
Oncilla Posted April 22, 2010 Share Posted April 22, 2010 You need to use the Google Analytics module built into Presta.It's in there about halfway down the modules page. Link to comment Share on other sites More sharing options...
GeraiMayaku Posted April 22, 2010 Share Posted April 22, 2010 in BO -> Modulesfind stats section, install google analytics module and configure it, just input your analytics tracking id. like U-9889898 Link to comment Share on other sites More sharing options...
abetts Posted July 16, 2010 Share Posted July 16, 2010 I'd like 2 different analytics on my site, is that possible with the module or otherwise? Link to comment Share on other sites More sharing options...
BWT Posted April 6, 2011 Share Posted April 6, 2011 Hi in version 1.3 i had the google analytics working just fine but since i upgraded i can't seem to get the satats to work in the 1.4 version any advice? Also i know it takes about 24 hours after you make any changes before you can see results from googles analytics. So, testing it out could take days! I tried adding it with transplant to another hook to see if it would track and the same thing happened NOTHING! lol. I wish i could help i am going through the same thing.I am going to make another GA module I hate this one I'll post when I'am done with it! Link to comment Share on other sites More sharing options...
miradoro Posted April 21, 2014 Share Posted April 21, 2014 can i add the script without using their modules? Link to comment Share on other sites More sharing options...
vekia Posted April 21, 2014 Share Posted April 21, 2014 you can, just paste the code of google analytics to your header.tpl file with {literal}{/literal} tags 2 Link to comment Share on other sites More sharing options...
miradoro Posted April 22, 2014 Share Posted April 22, 2014 Awesome !!! It worked !!! how do you get to block scripts like that? can you share some info? Link to comment Share on other sites More sharing options...
vekia Posted April 22, 2014 Share Posted April 22, 2014 what you mean? can you explain please what you expect now ? sorry for my misunderstanding Link to comment Share on other sites More sharing options...
miradoro Posted April 22, 2014 Share Posted April 22, 2014 i was wondering why it only works between {literal}{/literal} tags Link to comment Share on other sites More sharing options...
vekia Posted April 22, 2014 Share Posted April 22, 2014 it's simple. prestashop is based on smarty engine. smaty syntax uses brackets. so, if you paste script with brackets, compiler thinks that it's a smarty syntax, but in fact - it isn't. After that, page crashes. if you use {literal} {/literal} tags you will inform compiler that code between these tags arent a part of smarty code, so compiler will not compile it 2 Link to comment Share on other sites More sharing options...
medred Posted April 23, 2014 Share Posted April 23, 2014 Thank you vekia. Now I understand why I get a blank page when I insert google analytics script at version 1.5.6. On the other hand I have a few ps 1.5.2 websites that work just fine with script code without {literal} {/literal} tags. Do I have to change the code at those sites as well? What would you suggest? Thanks in advance. Link to comment Share on other sites More sharing options...
vekia Posted April 23, 2014 Share Posted April 23, 2014 i will suggest to change it on each site you've got this code can cause problems in the future Link to comment Share on other sites More sharing options...
medred Posted April 24, 2014 Share Posted April 24, 2014 Thank you Vekia. Link to comment Share on other sites More sharing options...
BoKr Posted June 19, 2014 Share Posted June 19, 2014 I would like to know whether the Presta google analytic module does something more than adding the code on the fly to the pages (footer.tpl) like a proxy. Is there someting enhanced or magic in google analytics module or does it merely add the tracking code into the e.g. footer.tpl? thank you. 1 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