How to add Statcounter or any hit counter code (JavaScript) in Joomla ?

This very easy to add the statcounter or any JavaScript in Joomla. This can be mainly done in two ways (a) Offline Method (b) Joomla Template Editor method. Just follow the below instruction.

How to Add Javascript Language to a Joomla Webpage: 3 Steps

Image Source:

Offline Method (Method – A)


Open your templates/your template/index.php (templates/Ja_Trona/index.php) file in any editor i.e. MS FrontPage or Notepad.

  • Now copy your Statcounter code.
  • Scroll down to the bottom of the page of index.php file.
  • Paste the Statcounter code anywhere within the body tag of the so opened page (index.php).
  • Save it and upload the file to your web server

Using Joomla Template Editor (Method – B)

  • Login to your Joomla website admin panel (
  • Go to Extension – Template Manager
  • Click on the Current template.
  • Now click on the Edit HTML button.
  • Scroll down to the bottom of the page.
  • Paste the Statcounter code just above the </body> tag.
  • Click on the Save button (Top right corner of the page)
  • It’s all done.
Kata Mutiara Kata Kata Mutiara Kata Kata Lucu Kata Mutiara Makanan Sehat Resep Masakan Kata Motivasi obat perangsang wanita