google analytics

I want to use google analytics to pull traffic reports of my site. But i have no idea where to paste the script. I only want to monitor the home page. It said to paste the script before </body> tag. Which file should i be looking in for this? I don't see the </body> in index.php.

Quote · 5 Apr 2010

typically you put the GA code in the _footer.html before the /body.  This of course will track your entire site, but you can use filters in GA to get the info you need.

Quote · 5 Apr 2010

I checked in _footer.html and did not see a </body> tag.

At the bottom it has something that looks like:


<div style="width: __main_div_width__; margin-left: auto; margin-right: auto;" class="quotes_block">__daily_quotes__</div>
__includebase _footer.html__

Quote · 5 Apr 2010

which _footer.html file did you check?  The templates/base/_footer.html or the templates/tmpl_(tmpl)/_footer.html file?  It does matter.

Quote · 5 Apr 2010

In templates/base/_footer.html we have:

 

 

       </body>
</html>

 


In templates/tmpl_uni/_footer.html we have:

 

  <div class="clear_both"></div>
  </div>
  <!-- end of body -->
 <script language=";
           document.write('<img '+' src="getStat.php?' + size + bits + reff + ' " width="88"  height="31" border="0" alt="Website statistics">');
          //-->
      </script>
  __banner_bottom__
  
  __boonex_footers__
  
  <div class="bottomCopyright">
   <div class="bottomLinks">
    __BMI_Links__
    __BMI_News__
    __BMI_ContactUs__
    __BMI_About__
    __BMI_Privacy__
    __BMI_Termsofuse__
    __BMI_FAQ__
    __BMI_Feedback__
    __BMI_Aff__
    __BMI_Invitefriend__
    __BMI_Bookmark__
   </div>
   <div class="bottomCpr">__copyright__</div>
  </div>
 </div>

__includebase _footer.html__


Does that tell anyone anything helpful?

Quote · 5 Apr 2010

Very helpful. Thanks to the both of you.

Now I'm just figuring out why their stupid script isn't working. lol.

Quote · 6 Apr 2010

looks like its working. Google takes their time it seems.

Quote · 6 Apr 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.