WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Where to install Statcounter (5 posts)

  1. RaviionWordpress
    Member
    Posted 7 years ago #

    Hello guys,

    I just signd up for

    http://www.statcounter.com/

    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 :
    http://www.ravii.nl/statcountercode.txt

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

    ravii.

  2. DesignPastor
    Member
    Posted 7 years ago #

    ravii,

    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.

    DP

  3. Dickie
    Member
    Posted 7 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
    Member
    Posted 7 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
    Member
    Posted 7 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