Go Back   Webmaster Tips and Tricks Forums - web master resources > Web design and development articles > Tutorials and 'how to' articles > phpBB

phpBB Tutorials and codes for phpBB.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-20-2006, 06:22 PM
dojo's Avatar
dojo dojo is offline
dojo
Site AdminWtricks GURU
 
Join Date: Sep 2008
Location: Romania
Age: 31
Posts: 5,667
Rep Power: 0
dojo is an unknown quantity at this point
Lightbulb How to ad Google Analytics code in a phpBB forum

I just answered to this question at another forum I post at and thought it's a good time to start a small thread about this here too.

So ... my hint.

You get a nice code from Google Analytics and that must appear in all your forum pages. In order to do this you have to either put it in the header template or the footer template since the 2 controll ALL the paages.

Here we go.

Start your FTP client and go to your site. In the forums directory try to locate templates. If you're using the default skin, then open subSilver, if not, the template you use. Locate: overall_header.tpl or overall_footer.tpl

I have personally chosen overall_footer.tpl

Open it in your editor and go at the end. Plug in the code you've got from Analytics and UPLOAD the modified script.

ALWAYS BACK UP THE ORIGINAL FILE before making any changes. This goes for any modifications you make. Failing to do this might cause in a tpl files's case just some weird alignments or stuff, but for php pages you might get parse errors and they're really ugly

Yeah, hope that helped

---
Our Romanian visitors can read this tutorial on Invatam Net: Cum sa plasezi codul de la Google Analytics intr-un forum phpBB
__________________
Don't forget to read our rules!
The Ad Broker - sell / buy ads. FREE listings

Last edited by dojo; 12-01-2006 at 08:55 PM.
Reply With Quote
  #2  
Old 06-03-2007, 04:42 PM
saberry's Avatar
saberry saberry is offline
Lurker
 
Join Date: Jun 2007
Age: 38
Posts: 1
Rep Power: 0
saberry is an unknown quantity at this point
Default

I've heard that using analytics, and consequently the 'script' tag, gives too much power to users who may have malicious intent.
Reply With Quote
  #3  
Old 06-03-2007, 04:54 PM
ODLS's Avatar
ODLS ODLS is offline
Apprentice designer
 
Join Date: Nov 2006
Location: UK
Posts: 148
Rep Power: 0
ODLS is an unknown quantity at this point
Default

Quote:
Originally Posted by saberry View Post
I've heard that using analytics, and consequently the 'script' tag, gives too much power to users who may have malicious intent.
I`ve not heard of that.

I use it on some of my sites and the amount of information that`s shown is amazing.
Reply With Quote
  #4  
Old 06-03-2007, 05:48 PM
DreamerInExile's Avatar
DreamerInExile DreamerInExile is offline
Apprentice designer
 
Join Date: May 2007
Age: 22
Posts: 79
Rep Power: 0
DreamerInExile is an unknown quantity at this point
Default

I really enjoy looking at the stats it brings up!
Reply With Quote
  #5  
Old 06-03-2007, 08:08 PM
Captain Tycoon's Avatar
Captain Tycoon Captain Tycoon is offline
Wtricks member
 
Join Date: Jun 2007
Age: 19
Posts: 20
Rep Power: 0
Captain Tycoon is an unknown quantity at this point
Default

I use it on my services site, and its great. The statistics it brings up is seriously perfect and very useful when I'm doing SEO.
Reply With Quote
  #6  
Old 02-15-2010, 05:58 AM
ezrashem's Avatar
ezrashem ezrashem is offline
Beginner designer
 
Join Date: Jan 2010
Posts: 198
Rep Power: 0
ezrashem is an unknown quantity at this point
Default

Thank you for the information guys. This is really a big help to me specially in my SEO. Good thing you shared this one.
__________________
real estate | houses |
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT +1. The time now is 08:10 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
Theme redesigned by Dojo Design. © 2005, 2006 Dojo Design & Wtricks.com