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

  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. I also encountered the same errors as jessy did and the only fix at this time is removing/renaming the StatCounter-Wordpress-Plugin.php file.

  3. It is really cool that you guys come up with so many different ideas.

    Best of luck to you.

  4. This is really interesting… We’ll definitely give it a shot.

    Thanks StatCounter Team.

  5. 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 ..

  6. 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 🙂

  7. 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!

  8. 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.

  9. This is a brilliant move – so many were forced to use other stats that simply did not have the full range of features that StatCounter has.

    Sitemeter is also great – but sometimes geeks needs two or more to get all the analytic features they crave. 😀

    Hopefully, more blogs will allow their clients to take advantage of StatCounter – and hopefully they will allow them to take advantage of the JavaScript version.

    It really adds an extra dimension to a blog to know what referrers and keywords were used to get there.

    In future versions, could there be an option to organize search terms by search engines AND time frames – for real in depth SEO analysis.

  10. Great work. Now I shouldn’t copy-paste the code every time I change the theme.

  11. I’m very excited about the first StatCounter plug-in for wordpress being offered today…….can’t wait to get this program started !

  12. Putting the StatCounter code into your footer.php is a fine solution. The plugin has the advantage of being very easy to install and won’t be effected by wordpress software upgrades.

    StatCounter Team

  13. With several wordpress blogs ( and often adding more) this will be a great feature. Thanks

  14. Nice. 🙂

    I’ve always loved both StatCounter and WordPress. I’m already using StatCounter on my WordPress, though. It’s working very smoothly.

    What difference does this plugin make? Isn’t it just a simple matter of inserting the code on your footer.php file? Are there additional features?

  15. WOW! That’s a great plus for StatCounter.com – hopefully you’ll see why other Blogging s/w or CMS like Drupal and/or Joomla too might need it.

    This is great news! Thank you for sharing.

Comments are closed.

Try Statcounter free for 30 days

No credit card required. Downgrade to the free plan anytime.

Try it for FREE!