Is there an alternative way to install StatCounter on a Joomla website? Knowledge Base  ›  Installation

Here are our general instructions for installing StatCounter on Joomla.

If the above method does not work for you, we have outlined some alternative methods here.

Install Extension


The default settings in joomla can interfere with your attempts to install StatCounter code. There are extensions available, however, which allow you to easily add code to your site.

You can see a selection of Joomla extensions here. We tested this extension for this install guide.

Note that StatCounter is not responsible for the content/quality of third party sites/tools and we offer no warranties regarding same.

  1. Download your preferred custom code module and save it (e.g. to your desktop).
  2. Log in to your joomla site and click "Extension Manager".

    Joomla - Extension Manager
  3. Click "Browse" then locate and select the module you downloaded and saved earlier. Click "Upload & Install" and you should see a message confirming a successful installation. (If you are unable to install an extension, then you can ask your web designer to install it for you.)

    Joomla - Upload & Install
  4. Next go to "Extensions", then "Module Manager".

    Joomla - Module Manager
  5. Click "New" and select the newly installed module type. (In our case we select the "Custom Javascript" module. Your module may have a different title depending on the extension you install.)

    Joomla - New Module

    Joomla - Module Type
  6. Paste your StatCounter code into the module, select the "position" (we recommend the footer area), ensure the "Status" is set to "Published" and fill in any other required details.

    Joomla - Paste StatCounter code
  7. Click "Save" and that’s it! StatCounter will now begin tracking stats for your site.


Custom HTML Module


If you try to install StatCounter using a custom HTML module, the code may be partially modified/removed as a result of the default settings in Joomla - you must change these in order to successfully install StatCounter using a custom HTML module. There are two settings which you must change in order to prevent your StatCounter code from being modified - the EDITOR settings and the TEXT FILTERING settings. We explain the procedure below.

  1. Click "Global Configuration".

    Joomla - Global Configuration
  2. Change the "Default Editor" to "Editor - None" and click "Save".

    Joomla - Global Configuration - Editor

  3. OR if you can't see "Global Configuration", click "User Manager" instead. Then click your own username and under "Basic Settings" change the "Editor" to "Editor - None". Click "Save".

    Joomla - User Manager

  4. Now change your TEXT FILTERING settings. Go to "Content" then "Article Manager".

    Joomla - Article Manager

  5. Click "Options".

    Joomla - Article Manager - Options

  6. Go to the "Text Filters" tab and change the "Filter Type" to "No Filtering" for your user type. Click "Save".

    Joomla - Article Manager - Options - Text Filters

  7. Now go to "Extensions", then "Module Manager".

    Joomla - Module Manager

  8. Click "New".

    Joomla - New Module

  9. Next select the "Custom HTML" module.

    Joomla - Custom HTML Module

  10. Paste your StatCounter code into the module, select the "position" (we recommend the footer area), ensure the "Status" is set to "Published" and fill in any other required details.

    Joomla - Paste StatCounter code

  11. Click Save and that’s it! StatCounter will now begin tracking stats for your website.
  12. Note that you MUST make the changes to the Editor and the Text Filters that we describe above for this method to work. If these changes are not made, your StatCounter code will not be correctly saved and will not function correctly.


Basic Installation


If none of the other methods work for you, you can still install the BASIC version of StatCounter on your Joomla website.

  1. Simply generate your StatCounter code and select the BASIC version.

    Joomla - Basic StatCounter Code
  2. Log in to your joomla site and click Module Manager.

    Joomla - Module Manager
  3. Click "New".

    Joomla - New Module

  4. Next select the "Custom HTML" module.

    Joomla - Custom HTML Module

  5. Paste your StatCounter code into the module, select the "position" (we recommend the footer area), ensure the "Status" is set to "Published" and fill in any other required details.

    Joomla - Paste StatCounter code
  6. Click Save and that’s it! StatCounter will now begin tracking stats for your website.
  7. Remember that the BASIC code gives you reduced stats e.g. Came From information is not available – we strongly recommend that you install the Standard StatCounter code if at all possible.

Note: There is a further installation method available if you are using a Joomlashack Wright Framework template.

All these instructions have been compiled and verified using Joomla 1.7 in October 2011. Similar installation procedures apply for Joomla 1.5 and 1.6 and the above instructions will act as a guide in these cases also.

Search Knowledge BaseForum Search


 

Installation