Install StatCounter on Joomla

Discussion in 'Installation' started by Arne, Mar 4, 2009.

Tags:
  1. Arne

    Arne New Member

    Joined:
    Sep 25, 2004
    Messages:
    5,464
    Likes Received:
    0
    Install StatCounter on Joomla 1.5
    Solution to the problem with StatCounter code showing on web page after installing to Joomla 1.5 found by forum member "Waterloo".

    A Joomla extension called Joomla Mod PHP allows you to create and add custom PHP, HTML, JS and CSS to modules. All you need to do after installing the extension in to Joomla, is to paste the generated StatCounter code to it.
     
    Last edited: Feb 11, 2012
  2. Arne

    Arne New Member

    Joined:
    Sep 25, 2004
    Messages:
    5,464
    Likes Received:
    0
    Install StatCounter on Joomla 1.6

    1. Login to Joomla
    2. Select Extensions, then Template Manager, then Site Templates
    3. Click the circle next to the current theme then click the "Edit" button towards the top
    4. Click the "Edit HTML" button in the upper right hand corner
    5. Scroll down to the bottom and paste the code just before the
    6. </body></html> code
    7. Click the Save button at the top
    The StatCounter code should now be active on your site.

    Depending on the template you currently use, steps 3 and 4 may be slightly different.
    Instead of checking current template, straight click on it and then find "Edit HTML" link next to name of template.

    After adding counter code, if you receive the error message "file index.php could not be saved"; that directory and file itself don't have writing permissions.
    So chmod them from control panel, and then save.
     

Share This Page