Forums

[resolved] adding stat counter (3 posts)

  1. photogirl
    Member
    Posted 5 years ago #

    Hi, I wanted to add an invisible stat counter to my wordpress blog but i can't figure out where to put the code. i am using the code generated by statcounter.com

    the code is here below:

    <!-- Start of StatCounter Code -->
    <script type="text/javascript" language="javascript">
    var sc_project=1910178;
    var sc_invisible=1;
    var sc_partition=17;
    var sc_security="7a013124";
    </script>

    <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/"><img src="http://c18.statcounter.com/counter.php?sc_project=1910178&java=0&security=7a013124&invisible=1" alt="best website stats" border="0"></a> </noscript>
    <!-- End of StatCounter Code -->

    can anyone tell me where to insert this?
    thanks!

  2. moshu
    Member
    Posted 5 years ago #

    Footer.php of yout theme?
    Also read: http://codex.wordpress.org/Using_Javascript

  3. v2006
    Member
    Posted 4 years ago #

    I placed the statcounter javascript code in footer.php of a WP blog but the stat counter image did not appear (appears fine on html sites that are not WP blogs).

    I could not follow the instructions at
    http://codex.wordpress.org/Using_Javascript

    Please advise
    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic