phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
adding Google Analytics

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
::  
Author Message
StL_Stadtroller



Joined: 07 Feb 2008
Posts: 4
Location: St. Louis, MO

adding Google AnalyticsPosted: Tue Feb 12, 2008 5:02 am    Post subject: adding Google Analytics

I'm trying to add Google analytics code to my forum pages, and am trying to follow the instructions found here:

https://www.google.com/support/googleanalytics/bin/answer.py?answer=55504&hl=en_US

sorry for the novice question, but I don't think I understand properly.

Are phpBB pages static or dynamic?
What does it mean to add the code in template pages before the </body> tag? If I look in my template pages (tpl files) I don't see BODY tags at all..

thanks!
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3103

adding Google AnalyticsPosted: Tue Feb 12, 2008 8:45 am    Post subject: Re: adding Google Analytics

You just have to past the JS code snippet in overall_footer.tpl (phpBB2), right before the </body> tag (it's there I promise Wink)

_________________
Back to top
StL_Stadtroller



Joined: 07 Feb 2008
Posts: 4
Location: St. Louis, MO

adding Google AnalyticsPosted: Tue Feb 12, 2008 12:55 pm    Post subject: Re: adding Google Analytics

SeO wrote:
You just have to past the JS code snippet in overall_footer.tpl (phpBB2), right before the </body> tag (it's there I promise Wink)


yes, but the code for "Static" pages or "dynamic"?

Sorry - I really am a novice at this! Confused

Thanks!!
Back to top
HB
phpBB SEO Team
phpBB SEO Team


Joined: 16 Oct 2006
Posts: 794

adding Google AnalyticsPosted: Wed Feb 13, 2008 2:51 pm    Post subject: Re: adding Google Analytics

StL_Stadtroller wrote:
yes, but the code for "Static" pages or "dynamic"?

They are all dynamic, build from template (*.tpl) files in V2.0.x. In phpBB3, they switched to HTML files with <!-- comments --> for basic dynamic content (e.g., <!-- IF S_show_google_ads -->blah blah blah<!-- ENDIF -->. dcz is correct, for V2, all you have to do is paste the code provided by Google Analytics into your overall_footer.tpl file (it has the closing </body> tag).

_________________
Dan Kehn
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
Page 1 of 1

Navigation Similar Topics

Jump to: