[resolved] Where to install Statcounter (5 posts)

  1. RaviionWordpress
    Posted 9 years ago #

    Hello guys,

    I just signd up for


    And they gave me a code to put on the site,
    But in what file i have to put the code?

    You can find the code here :

    So, In what file i have to put this code?


  2. DesignPastor
    Posted 9 years ago #


    the code that you got from StatCunter.com will need to inputted into the PHP code for the pages you want to keep tabs on. So, it looks like maybe you "index.php" and other pages ...

    It would work best to place it at the bottom of the PHP file so it does not mess with anything else.

    I could be wrong, but I know I used the above approach in regular HTML files of sites that I have created or assisted with. Should be the same for WP too.


  3. Dickie
    Posted 9 years ago #

    I use statcounter and add the code into the footer.php file in the template you are using... just before the </body> tag

  4. RustedWire
    Posted 9 years ago #

    I like to put mine in the header file. I have mine, just to track, without a visible counter, and putting it in my header, anywhere between <head> </head> causes no problems.

  5. RaviionWordpress
    Posted 9 years ago #

    I put it in the footer.php like Dickie said ,

    I made it invisible, becaus i'm the only one that has to know howmuch visitors i get.

    problem solved.
    Thanks alot guys!

Topic Closed

This topic has been closed to new replies.

About this Topic