hzolika Posted April 8, 2015 Share Posted April 8, 2015 Hi, We have had our website working perfectly for months, but last week we noticed that the image slider is not loading up, just keeps showing the little loading circle icon. I've tried to disable the module and enable it again, update it, tried different browsers and different PCs on different locations, but the problem still persists. When I open the code in Google Chrome, I can see the images are there, but they don't load up. Website is http://www.josero.com Anyone with an idea? Thanks! Link to comment Share on other sites More sharing options...
sandipchandela Posted April 8, 2015 Share Posted April 8, 2015 (edited) In this file remove <script> start tag and end tag. http://www.josero.com/Resources/Js/google_analytics.js .js file doesn't need to have <script> tag. Old : <script> (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-39946747-2', 'auto'); ga('send', 'pageview'); </script> New: (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-39946747-2', 'auto'); ga('send', 'pageview'); Edited April 8, 2015 by sandipchandela (see edit history) Link to comment Share on other sites More sharing options...
hzolika Posted April 8, 2015 Author Share Posted April 8, 2015 Hi sandipchandela, Thanks for the suggestion, I have removed the <script> tags from that file, I'm hoping that Google Analytics will work properly now :-) Although, the banner is still doing the same thing :-( Link to comment Share on other sites More sharing options...
sandipchandela Posted April 8, 2015 Share Posted April 8, 2015 <script> tag still showing. Forgot to tell you that clear your cache. Clear cache manually To clear cache manually, you need to access your Prestashop installation directory and delete the content of the following folders: cache/smarty/compile. ... Delete all the files in the folders, except of index.php. Reload your website. Link to comment Share on other sites More sharing options...
sandipchandela Posted April 8, 2015 Share Posted April 8, 2015 In this file please add following code at the end of the file. http://www.josero.com/Resources/Js/google_analytics.js $( document ).ready(function() { $( "div" ).removeClass( "bx-loading", 2000); }); 1 Link to comment Share on other sites More sharing options...
hzolika Posted April 8, 2015 Author Share Posted April 8, 2015 On 4/8/2015 at 12:24 PM, sandipchandela said: In this file please add following code at the end of the file. http://www.josero.com/Resources/Js/google_analytics.js $( document ).ready(function() { $( "div" ).removeClass( "bx-loading", 2000); }); Thank you! This one worked as a charm :-) 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