How do I install StatCounter on a Joomla site using a Joomlashack Wright Framework template?
Joomla templates built using the Wright Framework have a different structure to traditional templates. The index.php file no longer holds the template content. Instead the template.php file holds the content.
You can learn more about the Wright Framework template structure here.
(Want to check if you have a Joomlashack Wright Framework template?)
When using a Joomlashack Wright Framework template, here is what you should do to install StatCounter:
- Log in to your server - this is usually done using your FTP details - and navigate to your Joomla files.
- Go to your templates and then to your TEMPLATE NAME (e.g. Jubilee) folder. (The TEMPLATE NAME depends on the template you are using.)
- Inside this folder you will see a file called template.php. Copy this file and save the copy as custom.php. (Don't make changes to template.php - just leave that file there unchanged so you have a backup of the original file if you ever need it.)
- Paste your StatCounter code in the custom.php file, just before the closing < /body> tag.
- Save the changes and that's it! StatCounter will now begin tracking stats for your website.
Note 1: If you change your template, you should reinstall your StatCounter code to ensure continued collection of your stats.
Note 2: Several other alternative methods for installing StatCounter on Joomla are available.
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.
Answers to the majority of questions we receive can be found here in the knowledge base.
Installation
- How do I install StatCounter?
- How to resolve a caching problem
- How do I install StatCounter using Facebook Instant Articles?
- How do I install StatCounter using Cargo Collective?
- How do I install code inside phpbb forum?
- How do I install StatCounter using Shopify?
- How do I install StatCounter using Blogger / Blogspot?
- How do I install StatCounter using MySpace?
- How do I install StatCounter using Multiply?
- How do I install StatCounter using Friendster?
- How do I install StatCounter using ComfyPage?
- How do I install StatCounter using GoDaddy Website Builder?
- How do I install StatCounter using Tripod?
- How do I install StatCounter using Register.com?
- How do I install StatCounter using Britnett-Carver Webpage Editor?
- How do I install StatCounter using Yahoo! Commerce site / Yahoo! Online Store?
- How do I install StatCounter using NVU editor?
- How do I install StatCounter using PBase?
- How do I install StatCounter using Dreamweaver?
- How do I install StatCounter using Microsoft Office Live?