Google Analytics in forum page?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Kellyann
    Corporal

    • Jan 2008
    • 14

    Google Analytics in forum page?

    How and where do I add the code for google analytics into my PHPbb forums page? I promised I searched first. I have it in my homepage because I developed that. I don't see how to dd it to the bulleting board pages. TIA for your help.

    Kellyann
    -Kellyann
    www.LowCarbChatter.com
  • Kellyann
    Corporal

    • Jan 2008
    • 14

    #2
    Re: Google Analytics in forum page?

    I know how to get into the file manager. Do I upload it as a script into a folder in public_html? If yes which one? Or is there certain code I can open and just plug the GA code into? I can't find any HTML code to add it to in that folder in forums.
    -Kellyann
    www.LowCarbChatter.com

    Comment

    • Aliens Anonymous
      Special Status

      • Jan 2006
      • 1144

      #3
      Re: Google Analytics in forum page?

      This depends on were you want the adds to appear, and whish forum program you are using. if you are using phpbb2 and you just what the adds at the bottom of the page like HERE and HERE then you will need to edit a file called overall_footer.tpl in phpbb2 which can be found in templates/yourstyle down load the file using your ftp manager to your pc open it with your text editer look for,
      The phpBB Group : 2002
      // -->

      after on new line add this

      Code:
      <script type="text/javascript"><!--
      google_ad_client = "[COLOR=red]pub-8139885049862529[/COLOR]";
      google_ad_width = 728;
      google_ad_height = 90;
      google_ad_format = "728x90_as";
      google_ad_type = "image";
      google_ad_channel ="";
      google_color_border = "FF0000";
      google_color_bg = "000000";
      google_color_link = "99CC33";
      google_color_url = "0033FF";
      google_color_text = "FFFFFF";
      //--></script>
      <script type="text/javascript"
        src="[URL]http://pagead2.googlesyndication.com/pagead/show_ads.js[/URL]">
      </script>
      change the red highlighted to your account and depend on the adds change the sizes. then close and save the file, upload using ftp into the same place a you got it from. job done.

      you can get these codes from google for different adds. this one is for the image banner.

      if you are using phpbb3 or any other then you may have to have a mod or hack which will involve editing more files this also goes for putting the banners on the sides of the forum.

      Comment

      • Kellyann
        Corporal

        • Jan 2008
        • 14

        #4
        Re: Google Analytics in forum page?

        I just want analytics...not adsense. I have the code but don't know where to put it. And yes it's a PHPbb2 board. I want to do Ads at some point too but haven't decided what yet.
        -Kellyann
        www.LowCarbChatter.com

        Comment

        • Aliens Anonymous
          Special Status

          • Jan 2006
          • 1144

          #5
          Re: Google Analytics in forum page?

          Sorry my mistake.

          but if the the code is like this one i got from them, then in the same place
          Code:
          <script src="[URL]http://www.google-analytics.com/urchin.js[/URL]" type="text/javascript">
          </script>
          <script type="text/javascript">
          _uryct = "OA-3475631-1";
          urchinTracker();
          </script>
          you can also put this on your bv pages ether in a html box or the page html between the head tags.

          Comment

          • Kellyann
            Corporal

            • Jan 2008
            • 14

            #6
            Re: Google Analytics in forum page?

            Originally posted by Aliens Anonymous View Post
            Sorry my mistake.

            but if the the code is like this one i got from them, then in the same place
            Code:
            <script src="[URL]http://www.google-analytics.com/urchin.js[/URL]" type="text/javascript">
            </script>
            <script type="text/javascript">
            _uryct = "OA-3475631-1";
            urchinTracker();
            </script>
            you can also put this on your bv pages ether in a html box or the page html between the head tags.
            That is the code I mean. What I can't find is any HTML for the bulletin board pages. When I go in file manager and public_html and then forums I just see PHP stuff. If I can find the right file containing HTML for the forum pages I know how to add it. I don't see html in there under forums anywhere.
            -Kellyann
            www.LowCarbChatter.com

            Comment

            • Aliens Anonymous
              Special Status

              • Jan 2006
              • 1144

              #7
              Re: Google Analytics in forum page?

              in your ftp manger open the forum folder, look for a folder called templates open that. now depending and what style you are using open the folder, i will take it your using subSliver ( but could be another if you have installed one ) open this and look for a file named overall_footer.tpl phpbb2 does not have html pages. once you have opened this file with your text editer look for the lines
              The phpBB Group : 2002
              // -->

              enter your code after that on a new line, then save and upload.
              this file is the best place to add the code as the overall_footer appears on all the pages of your forum.

              Comment

              • Kellyann
                Corporal

                • Jan 2008
                • 14

                #8
                Re: Google Analytics in forum page?

                Thank you very much. I think I've got it now.
                -Kellyann
                www.LowCarbChatter.com

                Comment

                Working...
                X