How to add a web analytics tracking code into the Joomla template?

It is important for webmasters or site owner to have a tool for tracking website visitors.
The most popular tool for generating detailed statistics about a website's traffic and traffic sources is Google Analytics.
To be able to take advantage of its features, you need to download a javascript code which needs to be entered into the <head> section of your website.

 

How does it work in our Joomla templates?

Our latest Joomla templates gives you the possibility to run the Google Analytics at the template parameters.
Just need to enter your Google Analytics account ID in the appropriate field and wait for the successful verification by Google - it may take up to 48 hours.

Login to the administrator backend, go to Extensions->Template Manager and choose your template.
Then select Enabled for the Google Analytics option and enter your account ID as follows:

For Joomla 2.5 templates

 

google-analitics1

 


For Joomla 3.x templates

google-analitics-J3

 

 

However our old templates do not have the possiblity to add the account ID from the template parameters.
Learn below how to add a tracking code in case the tempplate does not  include such functionality as described above.

 

How to add a tracking code into the <head> section?

There are many other tools similar to Google Analytics, e.g. ChartBeat, HitTail, Inspectlet, that require to add a javascript code to the <head> section in order to be able to track your website. How this can be done in our templates?

Let's take Inspectlet as example.
After registration you will get a script, which you will have to copy and paste into the template.

 

Inspectlet

 

 

For Joomla 2.5 templates

You need to edit the jm_head.php or dj_head.php file (depending on the template), which is located in templates/your_template_name/lib/php/.
The script should be entered as follows:

Inspectlet-code-for J25

 

 

For Joomla 3.x templates

You need to edit the head.php file, which is located in templates/your_template_name/tpl/blocks/.
The script should be pasted as follows (make sure that the code is pasted under the <head> tag):

Inspectlet-code-for J3

 

After saving the file, just wait for the successful Inspectlet verification.

Tips for Joomla templates

Latest Template

 
 

News

Get a template 30% off! Check our Special Offer.

2016-04-27 13:06:00
For the next week you have an occasion to purchase a template within our Special Offer. Each template ...

Want to buy a template 30% off? We have 3 proposals for you for the upcoming week. Check it!

2016-04-20 13:06:00
For the next 7 days you have an occasion to purchase a template from our Wednesday Offer. Each templat ...

Blog

Looking for perfect e-commerce template to create successful online store? Do not miss JM Trendy J2store!

2016-04-20 13:16:01
Planning running an online store? Better choose JM Trendy J2Store.

It is really simple! Check out JM Simple accessible Joomla template.

2016-04-12 07:59:33
Do you run a small business? This template is ideal for your company! This template has everything you need to ...

Faq

Utility classes for showing and hiding content by device.

2013-11-04 14:02:29
When customizing your own Joomla 3 site for tablets and mobile devices, you may come to the conclusion that yo ...

What does the subscription mean in practice?

2013-10-10 11:35:35
Customers often have doubts what the subscription exactly means in practice.They seem to be surprised that the ...