SOLVED: How to Add Google Analytics Code To a PHPBB

php_bb_logo-smIf you are using PHPBB, the most awesome of all the Bulletin Boards, you will likely want to add in your Google Analytics tracking code.  The question is how?  Well the answer is, in the same place you add in Google AdSense advertisements.  Open the following file, using a text editor (like Notepad++ which is a free download):

phpBB-3.1.xxx\phpBB3\styles\prosilver\template\overall_footer.html

and just before the </BODY> tag (near the very bottom of the file) just paste in your Google Analytics code which should look something like:

<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-1297205-3’, ‘auto’);
ga(‘send’, ‘pageview’);

</script>

 

Questions or Comments?