The steps are as follows:
1. Login in to your Administration Control Panel.
2. Click “Style Tab”
3. At the left hand side under “Style components”, click “Templates”
4. If you are using phpbb3 template prosilver, then at Option Column, click “Edit”.
5. Then Select template file : “overall_footer.html”
6. Find
- Code: Select all
</body>
, add your google analytic code before it. I have add in div code to start and end of my analytic code
- Code: Select all
<div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-6955063-2");
pageTracker._trackPageview();
} catch(err) {}</script>
</div>
7. Click Submit, after few minutes google will detect the code.