Bogdans Posted October 29, 2010 Share Posted October 29, 2010 Does anyone know where the script should be inserted Google Analytics?Thanks for any help Link to comment Share on other sites More sharing options...
rocky Posted October 29, 2010 Share Posted October 29, 2010 Go to Modules > Google Analytics v1.2 (in the Stats section) > Configure, then enter your username and PrestaShop will insert the code for you. Link to comment Share on other sites More sharing options...
Bogdans Posted November 2, 2010 Author Share Posted November 2, 2010 I'm interested where this script insert: [removed] var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-19263145-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s[removed].insertBefore(ga, s); })();[removed] Link to comment Share on other sites More sharing options...
rocky Posted November 2, 2010 Share Posted November 2, 2010 You don't need to insert it. You just have to enter your username on the configuration page and PrestaShop will insert the code for you with your username. Link to comment Share on other sites More sharing options...
Bogdans Posted November 2, 2010 Author Share Posted November 2, 2010 This is extraordinarily good, but forget as it appears in my Google Analytics account Link to comment Share on other sites More sharing options...
Bogdans Posted November 2, 2010 Author Share Posted November 2, 2010 receive this message in my Google Analytics account: Link to comment Share on other sites More sharing options...
rocky Posted November 2, 2010 Share Posted November 2, 2010 That's strange. It works on my site. View the source of your website and check to make sure that PrestaShop added the Google Analytics code to your website. Can you provide a link to your site? Link to comment Share on other sites More sharing options...
Bogdans Posted November 2, 2010 Author Share Posted November 2, 2010 Where can I check if PrestaShop added google analytics code? Link to comment Share on other sites More sharing options...
rocky Posted November 2, 2010 Share Posted November 2, 2010 In your browser, right-click on your website and click "View source". Link to comment Share on other sites More sharing options...
Bogdans Posted November 2, 2010 Author Share Posted November 2, 2010 I checked and it has notI tried to put it manually before tab </ body> but if I do that no longer upload site Link to comment Share on other sites More sharing options...
rocky Posted November 2, 2010 Share Posted November 2, 2010 That's weird. It works on my website. What version of PrestaShop are you using? Go to Modules > Positions and make sure that the "Google Analytics v1.2" module is in the "Footer" hook. Link to comment Share on other sites More sharing options...
Bogdans Posted November 2, 2010 Author Share Posted November 2, 2010 I checked and was not in the footerI moved in but still not put footer scriptusing PrestaShop 1.2.5 Link to comment Share on other sites More sharing options...
Bogdans Posted November 2, 2010 Author Share Posted November 2, 2010 I gave and I veririficat reinprospatare page in the source and the script is there,now is good Link to comment Share on other sites More sharing options...
Bogdans Posted November 2, 2010 Author Share Posted November 2, 2010 footer module must be moved as you've saidthank you Link to comment Share on other sites More sharing options...
Recommended Posts