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. I don’t use WordPress, but I have a question: my Statcounter stats for yesterday read 14 unique visits to my Wilderness Diary site. The publishing platform I use recorded 1,250 unique visits during the same period. As you can see, this is a HUGE discrepancy. Any ideas why it might be happening? I have the Statcounter code copied into the footer of my website, so it logs each page.

  2. I already have “installed” the statcounter a long time ago …
    I simply copied the code into a text widget on my site at wordpress and voila .. it worked …
    Will try out the new plugin to see if it makes a real difference.

  3. I’ve installed the plugin and tried to fill in the 3 required values, but my statcounter project doens’t generate a security string:

    var sc_project=516093;
    (…)
    var sc_security=””;

    My beta counter does generate a security string. Is this a bug in your system, or should I reconfigure my counter?

    StatCounter Team Response:

    Hi Krispijn,

    No need to reconfigure your counter. This simply means you created your project before we added this extra security measure to StatCounter. You can simply leave this field blank in the wordpress plugin install.

    If in the future you ever want to enable this security feature of StatCounter you simply

    – login to your account
    – click the wrench icon beside your project name
    – click the ‘security code’ link
    – follow the instructions on the page

  4. I have to echo Anime fan’s comment above – where’s the need for a plugin here? When I migrated my site from Movable Type to WordPress, I simply inserted the counter code into my theme/template as usual. What’s the advantage of a plugin?

    StatCounter Team Response:

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

    Thanks for your comment!

Comments are closed.