How to install Google Analytics to SMF Forum

by admin on June 3, 2009

What is Google Analytics ?

Google Analytics is a webmaster tool for tracking your traffic and give you a lot of your website’s information. For more information, please go to https://www.google.com/analytics/. The other convenience thing is you can share your Google Analytic  between google accounts. So you and your friends can both monitor your website.

SMF Forum

SMF Forum is a open source source for creating forum from Simple Machine http://www.simplemachines.org/

The theme source is very complicated so it is difficult to know how to modify and add the Google Analytic code in your theme. So now I will help you how to add to your SMF forum:

Step 1

Get the Google analytic code. I use the new tracking code. It should look like that:

<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-4022109-7″);
pageTracker._trackPageview();
} catch(err) {}</script>

or like the Legacy Tracking Code (urchin.js):

<script src=”http://www.google-analytics.com/urchin.js” type=”text/javascript”>
</script>
<script type=”text/javascript”>
try {
_uacct = “UA-4022109-7″;
urchinTracker();
} catch(err) {}</script>

Step 2

Download Global Headers and Footers mod or easily add code in the code in the header or footer of the theme. It can be done by going to Package section under the Main tab in your admin panel.

hb_001

Simple way is to fulfill the URL and name of that package into Download a package by url section and click Download button, and Apply that mod.

Step 3: Add the code

Finally, you will be able to see Global Headers and Footers in the Configuration tab. Now you just paste your tracking code in the footer section:

hb_002

Step 4:Confirm the Google Analytic

You have to confirm google to make sure that everything is going OK by clicking in Edit and Check status button and click check status.

DONE !

VN:F [1.9.3_1094]
Rating: 10.0/10 (2 votes cast)
How to install Google Analytics to SMF Forum, 10.0 out of 10 based on 2 ratings

Related posts:

  1. Google Adsense can accept domain with less than 6 month old Today, I have gone to Digital Point forum and really suprise about 1 testing post with 3 domain and Google Adsense Aproval. As before, I read more posts about new Google Adsense policies and some people confused that only domain site with more than 6 month old can be approval. Let’s have a look at [...]...
  2. LastPass – the best password manager for IE, Firefox, Safari, Google Chrome Homepage: https://lastpass.com/ What is lastpass and its features ? Actually, LastPass is a password manager is used as a add-ons or a plugin in such internet browsers as Firefox, Internet Explorer, Opera, Safari, … I have used LastPass add-on in Firefox for 3 or 4 months when the first version was released I don’t remember [...]...
  3. WordPress 2.8 has been released Image by Søren Hugger Møller via Flickr Today, I am very surprise that the WordPress 2.8 named Jazzes has been released. It comes with a lof of improved features like One click theme installing, edit widgets on fly, highlighting code, … You can see the introduction here: WordPress 2.8 is available to download now. I [...]...
  4. How to install ATI Graphic driver for Ubuntu 9.10, Ubuntu 9.04 How to install ATI package for Ubuntu system is the controversial issue in the Ubuntu community, but just little people have been success to install ATI driver. Drivers which are from Ubuntu resposities don’t support full function for example: dual monitor in Ubuntu 9.04 and Ubuntu 9.10 as well. In this post How to install [...]...
  5. How to install packages from GetDeb Homepage: http://www.getdeb.net Today, I went to the GetDeb website just because I wanted to download the latest Filezilla FTP application for my Ubuntu 9.10, and I was really surprised that now they have a very great website and also their own Repository. Before it was so difficult to access this website, even couldn’t see anything, [...]...
  6. How to install Picasa in Ubuntu Homepage: http://picasa.google.com Today, I am going to upload my pictures from last party, I suddenly remember a such powerful and great image management: Picasa from Google. Actually, I love Google products because of their simple characteristics. Picasa application can run cross-platform on Linux and Windows OS as well. In Windows, it use this one also. [...]...

{ 1 comment… read it below or add one }

Bymnmessine December 18, 2009 at 3:56 am

Your welcome everyone,
My PC worked slowly, many errors. Please, help me to fix errors on my computer.
My operation system is Windows7.
With best regards,
Bymnmessine

Reply

Leave a Comment

Previous post:

Next post: