Mambo has a wide variety of plugins, but analyzing its traffic is often best done with a program like Google Analytics.  This allows you to evaluate website traffic in order to help determine the areas of the site which may need improvement.  The following article explains how to add Google Analytics in to your Mambo installation using its back end Administration interface.
 

Setting Up Google Analytics on Mambo

 
Setting up Google Analytics for Mambo is a two-part process. You will need to first create an account for Google Analytics.  Through the account you will obtain the code that is necessary for installing Google Analytics into your Mambo website.  The second part takes Google Analytics code and places it within the index page of your Mambo website using the Mambo Administration back end interface.
 

Get your Google Analytics Tracking Code

  1. Login and/or setup your Google Analytics account for your Mambo website.
  2. Obtain the tracking code snippet.  Usually, this will be immediately presented during the creation of your account.  However, if you need to find it later, you can go to the Account list, select your website, and click on the tab labeled TRACKING INFO.  You will see the Code snippet towards the bottom of the screen.  Leave this window open so that you can reference it when you are in your Mambo interface.  Typically, the code is fairly short and should look something like this:

    <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-1234578-1']);
    _gaq.push(['_trackPageview']);

    (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

    </script>  


Edit the Template Index file

  1. Login to the Mambo Administration back end.
  2. Hover over the SITE menu item, then click on TEMPLATE MANAGER>Site Templates when the drop-down menu appears.  

  3. Select template and edit buttonClick on the radial button for the template that you are using in your Mambo front end, then click on EDIT HTML in the top right hand corner.  You will be editing the INDEX.PHP file of the template.  You can verify this by looking at the file name immediately above the code edit window.
  4.  
  5. Edit Template index.php fileFind the "</head>" tag within the code, click in the edit window so that your cursor is blinking in front of this tag, then click on your enter key a few times to add an empty space in the code.  
  6.  
  7. Code inserted into Mambo Template index fileRetrieve the Google Analytics code from the first part of this tutorial.  And paste it into the space you created.  The code should be pasted BEFORE the "</head>" tag.
  8.  
  9. Click on SAVE in the top right hand corner.
 
This completes the installation of the Google Analytics code into your Mambo website.  Remember that you will need traffic going into your website in order to generate records that Google Analytics can track.  If you need more information on using Google Analytics, go to their website on learning to use the application here:  Learn Google Analytics.
Continued Education in Course 102: Adding content to your Mambo site
You are viewing Section 7: Installing Google Analytics in Mambo
Section 6: Using Captcha in Mambo
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!