Official WordPress Plugin for StatCounter

For all you users out there, we’re delighted to announce the release of our official WordPress Plug-In – this will allow you to easily install StatCounter on your blog and enjoy the full range of StatCounter stats!

We’ve also updated the install guide for to make it easier for you to add a html-only counter to your blog.


How do I use the StatCounter plug-in?

  • Log into your StatCounter account.
  • Click the wrench icon beside your project name.
  • Click the ‘install’ code link.
  • Follow the wizard and when asked for your web editor choose “”.
  • Follow the remaining instructions and hey presto!

How do I add StatCounter to my blog?

  • Log into your StatCounter account.
  • Click the wrench icon beside your project name.
  • Click the ‘install’ code link.
  • Follow the wizard and when asked for your web editor choose “”
  • Follow the remaining instructions and Bob’s your uncle!

What’s is the version of wordpress that YOU host on your own server. This means you have full access to modify the blog template as you wish i.e. you can add the full StatCounter javascript code.

What’s is the version of wordpress that WORDPRESS hosts on its servers. This means that access to modify the blog template is restricted according to what wordpress allows i.e. you can only install the StatCounter html-only code.

What’s a html-only counter?
Where you can’t install a full javascript counter, StatCounter offers you the option to install a html-only counter. While a html-only counter can’t offer you the same range of stats as the full code can, it does provide you with information on hits, browsers, location of visitors. You need to install the full javascript code to see referrers – the html counter can’t capture this information.

Why won’t wordpress allow javascript code?
For security reasons wordpress don’t allow you to install javascript code on blogs hosted by them i.e. blogs. We’re sure though that, if enough of you request the full StatCounter code on your blogs, then Matt & Co would be happy to oblige! We would certainly be happy to work with wordpress on this. So get emailing and don’t forget to pop back here to let us know how you get on!

PS: Thanks to Luke Stevenson for developing the first StatCounter plug-in for wordpress!

Update: Any problems installing the plugin? Let us know!
A few members had trouble installing the plugin. We believe this may have been a problem with the difference between return characters in windows and unix. If you try to download and install the plugin again it should work now. If it is still not working for you we would love to investigate the problem for you. Please send us the login details of your blog and server and a report of the problem you are experiencing.

186 comments on “Official WordPress Plugin for StatCounter

  1. It’s saying
    * No Project ID has been provided
    * No Partition ID has been provided
    * No Security String has been provided
    Tracking will not occur.

    And I can’t find reference to these IDs on my statcounter account or in your support FAQs

    StatCounter Team Response:

    Hi Soggyindo,

    Very sorry to hear that you’re having trouble but did you really think that we would abandon you to figure out the plug-in on your own..? Of course not!

    Full instructions are provided which explain re project id etc. Go to your plug-ins page within your WordPress console. Scroll down to your StatCounter plug in. Then click the options page!

    Here you will find the instructions to guide you through:

    From the generated StatCounter Code, copy the bolded sections:
    ‘var sc_project=1234567’ – Your Project ID
    ‘var sc_partition=12’ – Your Partition ID
    ‘var sc_security=”a1b2c3d4″‘ – Your Security String (Don’t grab the inverted commas)

    If you’re still having trouble, please submit a support ticket to us – click on the support link when logged into your StatCounter account!

    PS: Will update the FAQs per your suggestion – thanks!

  2. what happens if you’ve already generated your project and didn’t take down the numbers? how do you find them after the fact?
    the page you said says

    4. Click the “Configure & Install Code” button
    5. Select and configure the type of counter your would like
    6. Select “ (I pay for the hosting)” from the drop down list, then click “Next”
    7. From the generated StatCounter Code, copy the bolded sections:
    ‘var sc_project=XXXXXXX – Your Project ID
    ‘var sc_partition=XX’ – Your Partition ID
    ‘var sc_security=”XXXXXXXX”‘ – Your Security String (Don’t grab the inverted commas)
    8. Enter those details into the relevant fields below

    i’ve X’d out the numbers here but i guess they’re just blank examples on my wordpress page – 123 etc. how do i – or anyone else- find them at statcounter? or do we have to make a new project?

    StatCounter Team Response:

    Hi again!

    Finding the numbers is easy! Just log into your account. Click the “wrench” icon beside your project. (This is the Configure & Install Button) and then follow the directions you have above!

    Essentially, all you’re doing is repeating what you did the first time! Only that this time, you don’t need to download the plug-in zip file again.

    Please contact us if you have further trouble!

  3. sorry, i mention it here just because i guess a lot of people would’ve ignored those codes until they realised they needed them!

    StatCounter Team Response:

    No need to apologise!

    We’re very happy to help!

  4. The plugin doesn’t work for me either. Not counting page views.

    Putting the code in the footer is giving me an error…must be the way the footer is built.

    Too bad you didn’t respond to people in the comments with workarounds …I could’ve used some help.

  5. what about can we use statcounter easily with our company blogs?

    thanks so much,

    StatCounter Team Response:

    You can of course Sandy – just log into your StatCounter account and create a new project.

    Follow the instructions in the “Install Code” wizard.

    Under “Installation Options” you will be asked to “please choose your Blog/Web Page Editor” – pick blogger from the list and away you go!

  6. I’m confused with the statcounter codes and wordpress themes. All I am recording for stats are every page load as a unique visitor. My unique visitors and Page Loads increment exactly the same.

    I have tried both the plugin and pasting the code into my footer.php

    Is there something else I’m missing?
    Any response would be greatly appreciated

  7. The site”s very professional! Keep up the good work! Oh yes, one extra comment – maybe you could add more pictures too! So, good luck to your team!

  8. Thanks for providing the plugin.

    with regards to putting the code in footer:

    If we are changing the theme we must add plugin to new theme. 🙂

  9. Think I’m being thick!

    I have a blog and not a blog hosted from the route. I’ve installed Statcounter but many of the reporting features don’t show detail – is this expected or have I made a mess of my StatCounter installation?

  10. I’ve been debating on whether to install WP on my website. I think with StatCounters new plugin it will be a no brainer. Thanks for your hard work guys!

  11. Hello Wow what a fantastic article about My Ip Adress! Your keen insight into My Ip Adress is informative and creative. I look forward to reading other articles you have. Thanks.

  12. Hi Guru, I fell blessed that I found your post while searching for spyware program. I agree with you on the subject Official WordPress Plugin for StatCounter. I was just thinking about this matter last Friday.

  13. I have been using this plugin on most of my WP blogs. I find more comfortable working with statcounter instead of Google Analytics. Thanks guys. Keep up the good work.

Comments are closed.