protocol Posted September 5, 2013 Share Posted September 5, 2013 Could you please help me with problem outlined below? I tried to insert google analytics code (via the Google Analytics v1.4 by PrestaShop module) but I cannot see the Analytics code on the page's source at all. Additionally, I tried to 'hardcode' that piece of code in the header.tpl file (located in my themes directory) and still couldn't see the code. Any help will be highly appreciated... p.s I cleared both prestashop's & browser's cache Link to comment Share on other sites More sharing options...
El Patron Posted September 5, 2013 Share Posted September 5, 2013 what is your prestashop version? it's possible you have smarty compile set to 'never compile' back office-->advanced-->performance Link to comment Share on other sites More sharing options...
protocol Posted September 5, 2013 Author Share Posted September 5, 2013 Thank you very much for your reply. The version that I use is the 1.4.7.0. Additionally I have set smarty compile to yes. Thank you Link to comment Share on other sites More sharing options...
El Patron Posted September 5, 2013 Share Posted September 5, 2013 with analytics module there would be no need for compile as the module is hooked to header.. make sure you see this in module-->positions http://screencast.com/t/AKNf0xj0k I installed the module on a 1.4.7.2 worked fine. Link to comment Share on other sites More sharing options...
protocol Posted September 6, 2013 Author Share Posted September 6, 2013 I've got the module on the right position but I still have that problem. It is also quite strange (to me) that when I am trying to paste the GA code into the header.tpl file (which is located inside my theme's folder) it still does not 'appear' Link to comment Share on other sites More sharing options...
NemoPS Posted September 6, 2013 Share Posted September 6, 2013 Hi there, Do you get any JS error if you open the debug console in chrome/firebug? Link to comment Share on other sites More sharing options...
protocol Posted September 6, 2013 Author Share Posted September 6, 2013 Hi, Thanks for you reply. As you can see I don't get such an error. Thank you Link to comment Share on other sites More sharing options...
NemoPS Posted September 6, 2013 Share Posted September 6, 2013 Try this quick test: Hardcode "SHOW ME THIS" Inside the tpl file of google analytics, and see if it's displayed in the source (just be sure force compile is enabled) If it doesn't go to tools/smarty/compile and erase all files but index.php, then reload the page Link to comment Share on other sites More sharing options...
protocol Posted September 6, 2013 Author Share Posted September 6, 2013 I just eased all files from tools/smarty/compile (except index.php) and the front-end disappeared!!! Link to comment Share on other sites More sharing options...
NemoPS Posted September 6, 2013 Share Posted September 6, 2013 You're having issues with your cache then, as that simply gets rid of the cached files. Go to config/config.inc.,php and turn on display errors Link to comment Share on other sites More sharing options...
protocol Posted September 6, 2013 Author Share Posted September 6, 2013 I dont have any cached files (except an index.php) Link to comment Share on other sites More sharing options...
NemoPS Posted September 6, 2013 Share Posted September 6, 2013 Prestashop caches compiled smarty files If your page gets stuck after removing those ones, then you have caching issues. Did you turn on errors as I mentioned? Link to comment Share on other sites More sharing options...
protocol Posted September 6, 2013 Author Share Posted September 6, 2013 Yes I did. You can see the warnings here Link to comment Share on other sites More sharing options...
NemoPS Posted September 6, 2013 Share Posted September 6, 2013 I see, permission error, try setting al of your site's folders permissions to 755 through CHMOD Also be sure you have this path /tools/smarty/sysplugins/smarty_internal_write_file.php Link to comment Share on other sites More sharing options...
protocol Posted September 6, 2013 Author Share Posted September 6, 2013 I did change the permissions as you suggested and I do confirm that there is the path: /tools/smarty/sysplugins/smarty_internal_write_file.php. But as you can see there are still warnings, and excpet from that you can see and other strange things Link to comment Share on other sites More sharing options...
NemoPS Posted September 6, 2013 Share Posted September 6, 2013 can you screen the whole performance page in the back office? Link to comment Share on other sites More sharing options...
protocol Posted September 6, 2013 Author Share Posted September 6, 2013 Thank you........Here it is Link to comment Share on other sites More sharing options...
NemoPS Posted September 6, 2013 Share Posted September 6, 2013 Okay, try disabling cache, save and test. Then try switching to the custom Blowfish class and save again if the previous held no results Link to comment Share on other sites More sharing options...
protocol Posted September 6, 2013 Author Share Posted September 6, 2013 I did both the requested steps, but still no result! Link to comment Share on other sites More sharing options...
NemoPS Posted September 6, 2013 Share Posted September 6, 2013 At this point try a 777 permission on those folders Link to comment Share on other sites More sharing options...
protocol Posted September 6, 2013 Author Share Posted September 6, 2013 ok i did it.....the warnings disappeared but the site still does not seem to be as it was.....there is some progress though Link to comment Share on other sites More sharing options...
NemoPS Posted September 6, 2013 Share Posted September 6, 2013 Try deleting the browser's cache and see what happens Link to comment Share on other sites More sharing options...
protocol Posted September 6, 2013 Author Share Posted September 6, 2013 I did it but it still seems to have some 'css issues'. You can have a look how it was the previous days or even earlier this morning. Link to comment Share on other sites More sharing options...
protocol Posted September 6, 2013 Author Share Posted September 6, 2013 Hi could you please tell me if all the above changes we made earlier 'affect' somehow the look&feel of the site? For example, I am trying to change bg colour and nothing happens. Link to comment Share on other sites More sharing options...
maio Posted November 28, 2013 Share Posted November 28, 2013 hi, I had a similar problem.. the reason why your page fails after inserting the javascript is because the code contains the { and the } characters. The header.tpl file is pareses by the Smarty template engine and attempts to interpret all instances of { and }. The way to resolve this is to wrap the inserted javascript code in {literal}{/literal} tags. e.g. after inserting the literal Tags it's working fine... I haven't had any side effects so far.... Link to comment Share on other sites More sharing options...
Recommended Posts