Flag This Hub

How to add analytic code in phpbb3 ?

By


To add in the analytic code just follow the simple steps below.

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 the code below

</body>

7. Add your google analytic code before it. I have add in div code to start and end of my analytic code

<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>



8. Click Submit, after few minutes google will detect the code.

Interesting Books

phpBB: A User Guide
Amazon Price: $22.67
List Price: $24.99
Building Online Communities With Drupal, phpBB, and WordPress
Amazon Price: $5.95
List Price: $49.99
Building Online Communities with phpBB 2
Amazon Price: $31.95
List Price: $39.99
Managing Online Forums: Everything You Need to Know to Create and Run Successful Community Discussion Boards
Amazon Price: $9.00
List Price: $24.00

Comments

Leop 2 years ago

Very useful information here. I put them to good use. Thank you.

Submit a Comment
Members and Guests

Sign in or sign up and post using a hubpages account.



    Like this Hub?
    Please wait working