Official WordPress Plugin for StatCounter

For all you wordpress.org 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 wordpress.org blog and enjoy the full range of StatCounter stats!

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

Wordpress

How do I use the StatCounter wordpress.org 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 “wordpress.org”.
  • Follow the remaining instructions and hey presto!

How do I add StatCounter to my wordpress.com 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 “wordpress.com”
  • Follow the remaining instructions and Bob’s your uncle!

What’s wordpress.org?
Wordpress.org 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 wordpress.com?
Wordpress.com 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. wordpress.com blogs. We’re sure though that, if enough of you request the full StatCounter code on your wordpress.com 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. Hi,

    Good idea but I have a little bug.
    My WordPress is a 2.3.2 version and when the Statcounter plugin is enabled, when I write a new post on my blog, the toolbar (bold, italic, links, etc.) of the visual editor has disapear.
    When the plugin is disabled, the toolbar is back.

    Hope this will help you !

  2. Statcounter is the best free system for stats. it’s really a good news to have plugins for wordpress.com. it could be good to have plugins for typepad, blogspirit too because very often, it’s complicated for people to paste a javascript ..

  3. Very cool.
    This will probably come in handy for people that are not comfortable modifying their theme + if people change their theme regularly they don’t have to remember to add the StatCounter code every time 🙂

  4. Good move, congratulations 🙂

    My website is hosted on a mutualized server and, with 20k uniques per day and 80k pages seen, this is almost the limits of the hosting, so to avoid being kicked out I am trying to cause the use of as little CPU/RAM/hits as possible.

    Could you please tell if your plugin might cause additional hits, cpu or ram usage, compared to your simple code in footer.php ?

    Regards,
    Oliver

    StatCounter Team Response:

    Hi Oliver,

    I’m afraid that we haven’t benchmarked the performance of the plugin versus adding it to your footer.php yourself. It is, however, just one tiny extra function call so the increase of cpu/ram usage should be negligible.

    Thanks for your interest!

  5. Great work

    however, i can’t login into my wordpress admin area and i got this weird error message instead

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/m/o/o/moopy2735454/html/moopy/blog/wp-content/plugins/StatCounter-Wordpress-Plugin.php:1) in /home/content/m/o/o/moopy2735454/html/moopy/blog/wp-login.php on line 12

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/m/o/o/moopy2735454/html/moopy/blog/wp-content/plugins/StatCounter-Wordpress-Plugin.php:1) in /home/content/m/o/o/moopy2735454/html/moopy/blog/wp-login.php on line 24

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/m/o/o/moopy2735454/html/moopy/blog/wp-content/plugins/StatCounter-Wordpress-Plugin.php:1) in /home/content/m/o/o/moopy2735454/html/moopy/blog/wp-includes/pluggable.php on line 391

    The only way for me to get out of this is to access my server using ftp and rename or delete “StatCounter-Wordpress-Plugin.php” plugin file

    so, any idea??

    StatCounter Team Response:

    Hi Jessy,

    That is a strange error. Could you supply us with your web host login information so we can troubleshoot this problem for you. I’ve sent you an email.

Comments are closed.