The new Automattic Stats plugin is available for download. It lets self-hosted WordPress bloggers use the exact same traffic metrics system we provide to WordPress.com users. It tracks post and page views, referrers, search terms, and clicks on your external links. It takes moments to install if you already have a WordPress blog and a WordPress.com API key. And it’s totally free.
Although the code is almost exclusively my work, I must give thanks for Matt’s guidance, Barry’s systems wrangling, and Rudy’s barbecue, each of which were indispensable.
The rest of this post will cover technical details of the system, how it works and why it’s cool. If you have a question I didn’t answer, leave a comment and I’ll do my best to answer.
How does it work?
The plugin adds a tiny image to your blog (
) and that image is hosted on our servers. Every time your blog is viewed by a browser with javascript enabled, the browser downloads that image and we see a new line in our server logs. We then process the server logs and insert the data into a big MySQL database that we use to generate the lists and charts on your stats page.
There’s a little more to it than that. The plugin adds the post ID and referrer to the image URL so we know what the visitor is looking at and where they came from. We examine the referrer and if it looks like a search engine, we sift out the search terms and save those instead. Our servers also communicate with your blog from time to time, such as when you update the title of a post.
What makes it fast?
When you run your own stats system, your blog server has to do a lot of extra work to track each visit. We take that load off your server to keep it snappy.
By serving the javascript from stats.wordpress.com, we take advantage of the browser cache so that no matter how many blogs are visited, the script is only loaded once per week.
Clicks are reported asynchronously. Rather than the more common method of mangling URLs and forcing the visitor to wait during a redirect, the click stats are tracked using elements of AJAX. Your hrefs are safe and your visitors experience no delays.
The tracking gif loads fast because WordPress.com infrastructure just plain rocks.
What’s with the smiley face?
When we started developing stats for WordPress.com in 2005, Matt thought it would be cute. That’s his artwork.
No doubt, people will want to hide the smiley face. There are wrong ways to do this. Basically, anything that causes the image not to be loaded by the browser will break your stats.
Applying “display:none” to the image will break your stats. Don’t do it. If you want to hide the smiley face, add this to your stylesheet:
img#wpstats{width:0px;height:0px;overflow:hidden}
Why do my links point to WordPress.com?
All stats reports are rendered by our servers. We designed it this way for a lot of reasons. It’s faster this way because your server doesn’t have to connect to our server every time you look at your stats. It’s also better because we can update the reporting UI without forcing you to upgrade your plugin.
How much traffic can you handle?
The stats hardware is currently handling millions of views every day and we’re nowhere near capacity. We built this system with growth in mind. The software is ready to run on as many servers as we allocate for the purpose. Growing pains are inevitable but if we’ve done our job, you will never feel them.
Can I install this on my non-WordPress sites?
The short answer is that the system only supports WordPress blogs.
The long answer is that anyone with a thorough understanding of WordPress and XMLRPC could clone the plugin to work with other blogging platforms. I can’t prevent it, I won’t discourage it, I do expect it, and I don’t even mind it. There are pitfalls, however, and I do not plan to document the requirements. Here be dragons.
Anyone found abusing the system, causing undue loads on the servers, or inflicting headaches on me or Barry or anyone else, will be subject to having their API Key revoked and their name written in giant, fiery letters across the night sky to be cursed by all who see it. Please don’t abuse this free service.
Why does the date change before/after midnight?
To keep things fast and consistent, we are ignoring time zones and keeping all stats in UTC.
May 6, 2007 at 12:01 am |
[...] Andy writes about the tech side of things and some FAQs. [...]
May 6, 2007 at 12:49 am |
[...] Si están interesados en saber más detalles técnicos del funcionamiento de este plugin, Andy lo explica en su blog. [...]
May 6, 2007 at 1:26 am |
[...] | เวบคนทำ Posted by au8ust Filed in [...]
May 6, 2007 at 1:42 am |
nice. now I don’t need to go somewhere else to check the stats of my blog.
May 6, 2007 at 2:23 am |
[...] Mehr: WordPress Releases Stats Plugin Andy Skelton: Automattic Stats for self-hosted WordPress [...]
May 6, 2007 at 4:54 am |
Andy,
A handy thing would be if there was some way to link back (get back) to my blog instead of hitting back a few times…
May 6, 2007 at 5:44 am |
Andy writes about the tech side of things and some FAQs.
May 6, 2007 at 5:53 am |
Looks great. Going to install it in a second
May 6, 2007 at 5:54 am |
[...] Statistik-Funktion, die es bei WordPress.com gibt, wurde jetzt auch als “stand alone” Plugin für normale WordPress Blogs veröffentlicht. Wer also auf der Suche nach einem WordPress-internen [...]
May 6, 2007 at 6:15 am |
This is sweet! If i have more than one WordPress self hosted blog can i use this on both of them? Or is it just limited to one blog per user?
May 6, 2007 at 6:23 am |
Best news of the year!
Thanks!
May 6, 2007 at 6:35 am |
This sounds excellent… as a WP.com member I have become accustomed to the Stats provided on this service… I’ll give it a go… by the way, does it ignore hits made by my own server IP? when I’m visiting or updating/viewing pages?
May 6, 2007 at 6:35 am |
I use long time Counterize and a very happy with this. Its shows al I need to see the traffic to the site, so I see no reason to get over.
All is’t a good plugin.
May 6, 2007 at 7:26 am |
[...] enlaces: Ascii Poetry, 8081 (cuidado con el ratón puede dar algunos problemas), Neural.it, Automattic Stats para instalaciones autónomas de WordPress. This was written by Sergio. Posted on Sunday, May 6, 2007, at 1:25 pm. Filed under General. [...]
May 6, 2007 at 7:52 am |
Would this work with a wordpress MU installation?
May 6, 2007 at 8:37 am |
Is this plugin only for WordPress 2.1.x available or can I use it with WordPress 2.0.x, too?
May 6, 2007 at 8:46 am |
This is beyond stellar!
May 6, 2007 at 8:47 am |
[...] do excelente plugin firestats para ter estatísticas no blog e que vejo eu no painel de controlo? O anúncio do plugin de estatisticas, fresquinho do dia, que oferece a mesma informação ao dispor dos utilizadores da plataforma [...]
May 6, 2007 at 9:35 am |
Yay! Finally!
May 6, 2007 at 9:41 am |
interesting idea, I definitely need to check it out next weekend or so!
May 6, 2007 at 9:57 am |
Thank you very much !!!
It’s a very useful plugin, and i think every wordpress user should get it.
May 6, 2007 at 10:41 am |
My blog is located on my own site. When I select Dashboard / Blog stats, it asks me to sign into the WP site. Consequently, I went and got a WP API, and inserted it into the plugin.
My expectation is that the stats will reflect the blog on my site, NOT the one I had to sign up for at the WP site. Is this correct? Call me dumb, but I’m a newbie.
May 6, 2007 at 10:47 am |
Hmm. That can’t be true. When I sign in from Dashboard, it tells me I have no blogs yet.
May 6, 2007 at 12:06 pm |
[...] Andy Skelton had just recently release its new Automattic Stats plugin for self-hosted WordPress users. What it does is letting self-hosted WordPress bloggers to use the same exact traffic metric system as provided to those users at WordPress.com. [...]
May 6, 2007 at 12:13 pm |
Up and running, now to wait for those clicks to show up!
May 6, 2007 at 1:35 pm |
[...] Stats might work for some of us. This plugin used to be available for wordpress.com users only, but now released for use by anyone self–hosting their WordPress [...]
May 6, 2007 at 1:45 pm |
Hmm. When I log in to get stats, it takes me to the WP site, where I’ve signed up, but where I don’t have a blog.
May 6, 2007 at 2:44 pm |
[...] now the same thing is available for those of us who look after our own WordPress. Andy Skelton made the announcement and the plugin is available for download [...]
May 6, 2007 at 2:54 pm |
WordPress Stats
A new and wonderful stats tracker. SCREW YOU COUNTERIZE!!
…
May 6, 2007 at 3:38 pm |
Andy, this is very nice. Thank you.
May 6, 2007 at 4:54 pm |
[...] guys over at Automattic has made the Automattic Stats plugin available for download, which makes it possible for self hosted WordPress installations to get the [...]
May 6, 2007 at 5:05 pm |
[...] now. Now you can get those same stats for self-hosted WP blogs as well. The new Automattic Stats plugin is available for download. It lets self-hosted WordPress [...]
May 6, 2007 at 5:48 pm |
[...] my trusty Mint, I know quite a few bloggers out there who will benefit from this. Learn more about the technical details of Automattic Stats on Andy Skelton’s [...]
May 6, 2007 at 6:03 pm |
[...] e instalei o Automattic Stats, mais um trabalho bem-feito da Automattic; as estatísticas básicas que você precisa, de maneira [...]
May 6, 2007 at 7:28 pm |
[...] night a long awaited unveiling of the oh-so-wanted wordpress.com stats plug in. I accidentally came across the post when I was just surfing around. I installed it a few moments [...]
May 6, 2007 at 9:38 pm |
On More WordPress Work
It’s a Sunday, so that means “Let’s mess around with WordPress!”
Today was no exception. Changes were made, but they’re nothing that you, readers, would see. Rather, I installed two new plug-ins that make changes on the …
May 6, 2007 at 9:52 pm |
How do I go about getting my name in big firey letters anyway? Sounds like it could be amusing…
May 7, 2007 at 1:07 am |
[...] has released the blog statistics tools available for WordPress.com blogs as a plugin. Andy Skelton fills in with the behind-the-scenes workings and provides good [...]
May 7, 2007 at 1:25 am |
[...] è possedere una API key che si può ottenere gratuitamente su WordPress.com. Il plugin, opera di Andy Skelton, permette di spostare il lavoro per gestire i dati di traffico sui server di WordPress, non [...]
May 7, 2007 at 2:21 am |
[...] Stats入れようかどうしようか…と考えてて、というのも前、Fire Statsを使ってたんだけど、国旗とかブラウザとかなんとかのイメージファイルがめちゃめちゃ多くて、それをまたアップするのがめんど〜と思ったりして(えぇ、まだADSLです、鯖はアメリカです…)、すこし前にGoogle Analyticsを入れてはみたものの、地図眺めて遊ぶくらい…だもんで、あんまり意味ないかも…と思ってたら、wordpress.comのアカウントを持っていたら使えるAutmattic Statsというプラグインがリリースされていた!まだ入れたところだし、ここを見に来ている人はそうそういないので…あんまり意味ないんだけど、どんな感じなのか試してみたいと思ってます。インストールしてから20分後くらいから表示が見れるようになるようです。 [...]
May 7, 2007 at 2:57 am |
Andy, thanks so much for this plugin! I downloaded it the moment I saw it and waited impatiently the first twenty minutes for stats to appear. Okay. I didn’t wait. I gave up and took my kids to the park. But what do you imagine was the first page I checked out upon my return?
Now that you’ve got this going on, my chief complaint about services like Technorati’s “authority” ranking could be dealt with through this tool. If WordPress can effectively provide this service on a cross-blog-platform basis, metrics like number of comments, number of inbound links to actual posts, and site traffic could actually be combined to give a real “authority” ranking based on real data that is much harder to game.
Here’s hoping!
Regards,
Rich
BlogRodent
May 7, 2007 at 3:24 am |
[...] Avoti: WordPress blog [Stats Plugin], Andy Skelton blogs [Automattic Stats for self-hosted WordPress] [...]
May 7, 2007 at 4:32 am |
[...] Stats By Sue Get your free WordPress stats plugin here (for self-hosted WordPress blogs, which yours is if it’s on our servers). All you have to [...]
May 7, 2007 at 5:15 am |
[...] now able to use Automattic’s WordPress stats system for your self-hosted WordPress blog. This could be pretty neat for those not wanting to clog up [...]
May 7, 2007 at 5:57 am |
[...] announced a new WordPress stats plugin that uses the polished WordPress.com traffic graphs on your own [...]
May 7, 2007 at 6:40 am |
[...] Automattic Stats for self-hosted WordPress « Andy Skelton [...]
May 7, 2007 at 8:03 am |
[...] Stats creado por Andy Skelton es el plugin de estadisticas que se usa en los blogs de WordPress.com y han decidido liberarlo para [...]
May 7, 2007 at 8:07 am |
[...] Thanks Andy for extending stats console to self-hosted sites. [...]
May 7, 2007 at 8:17 am |
awesome stuff! …thank you!
May 7, 2007 at 11:59 am |
[...] pimping this nifty new plug-in “Automatic Stats for Self-Hosted WordPress” by Andy Skelton. Here’s a short blurb on what it does… “It lets [...]
May 7, 2007 at 12:07 pm |
[...] the feature set of the recently released Stats plugin for self-hosted WP users. It was releasedw to us via the WP Dashboard, and many of us immediately gave it a go, and are still using [...]
May 7, 2007 at 12:16 pm |
I have problem getting my API key to work with the stats plugin. I am sure the API key is correct and valid as it’s being used for Akismet.
Could it be the WordPress version?
May 7, 2007 at 1:16 pm |
Excellent. Now I can get really depressed about how few people read the content. Seriously, thank you for the hard work!
May 7, 2007 at 1:50 pm |
[...] with the new Automattic Stats Plugin that uses the WordPress.com statistics infrastructure to track traffic. So far, so good… [...]
May 7, 2007 at 7:11 pm |
[...] oni povas havi statistikon en sia propra blogo, kiu ne estas gastigata de WordPress.com. Oni devas havi ŝlosilon pro la WordPress-a API, ĝuste [...]
May 7, 2007 at 9:28 pm |
[...] Blogs hosted on WordPress.com have a nice statistics module that integrates into the dashboard. Yesterday, the folks at Automattic released this as a standalone plugin for self-hosted WordPress blogs. The developer, Andy Skelton, has more info. [...]
May 7, 2007 at 9:59 pm |
Nice plugin, but you spelled “sarsaparilla” incorrectly on the dashboard screen (the one that displays before any stats are counted).
May 8, 2007 at 3:57 am |
[...] habe das neue WordPress Stats-Plugin mal auf dem Familien-Weblog installiert um es zu testen. Bis jetzt eigentlich ganz chic. Nur etwas [...]
May 8, 2007 at 4:34 am |
You might also want to add the attribute border:0 to hide the smiley face image, this obviously depends on the stylesheet of each individual blog but in many cases, including my own, people will see a tiny box in the bottom left corner of their screen if they have a border around images by default.
Hope this is useful feedback. Jono
May 8, 2007 at 9:25 am |
[...] Automattic Stats for self-hosted WordPress « Andy Skelton The new Automattic Stats plugin is available for download. It lets self-hosted WordPress bloggers use the exact same traffic metrics system we provide to WordPress.com users. It tracks post and page views, referrers, search terms, and clicks on your external links. It takes moments to install if you already have a WordPress blog and a WordPress.com API key. And it’s totally free. [...]
May 8, 2007 at 12:01 pm |
Finally! Thank you for sharing your work.
May 8, 2007 at 2:51 pm |
[...] more about that plugin on wordpress.com blog, and download the killer plugin [...]
May 9, 2007 at 9:00 am |
[...] can try and download the plugin here. Share this page:These icons link to social bookmarking sites where readers can share and discover [...]
May 11, 2007 at 5:27 am |
[...] stats but I’m sure I’ll get back into now. Coming Monday I’ll talk about the new wordpress.com stats for self hosted [...]
May 13, 2007 at 1:06 pm |
[...] Andy writes about the tech side of things and some FAQs. [...]
May 15, 2007 at 7:25 am |
[...] Automattic Stats for self-hosted WordPress lets self-hosted WordPress bloggers use the exact same traffic metrics system we provide to WordPress.com users. (download, info, via h0bbel). [...]
May 20, 2007 at 8:24 pm |
[...] it is very painless to get and the statistics generated are fantastic. There has been a lot of good press surrounding this plugin and Andy and the Automattic team have done a bang up job on [...]
May 21, 2007 at 6:23 am |
Thanks for this plugin, I’m going to try and install it on my blog now
May 21, 2007 at 1:28 pm |
[...] wenn man sich auf WordPress.com anmeldet. Die Kommentare zum Plugin sind zahlreich (1, 2, 3, 4) und sehr positiv was beweisen sollte dass Andy und das Team von Automattic ganze Arbeit geleistet [...]
May 23, 2007 at 6:16 am |
[...] 在 WordPress.com 上拥有非常漂亮的统计工具已经有一段时间了。这个插件可以增加同样的统计工具到你个人的 WordPress blog。在安装的时候,Automattic 需要每个用户有一个 WordPress.com API key,当然这很容易获得,统计的生成是非常神奇的。虽然有很多很好的同类型的插件,但是 Andy 和 Automattic team 还是把这个统计插件做的非常好。 [...]
May 23, 2007 at 2:39 pm |
[...] bien fácil de obtener y las estadísticas generadas son fantásticas. Ha habido mucha buena prensa alrededor de este plugin y Andy y el equipo de Automattic han hecho un trabajo increíble con [...]
June 7, 2007 at 5:00 pm |
nice one!. i’ll try it now.
July 25, 2007 at 11:26 am |
[...] is WordPress Stats By Andy Skelton, the regular statistic that WordPress.com offers on their WordPress self-hosted blog. Flashy. It [...]
September 7, 2007 at 4:43 pm |
[...] All you data is belong to us The guys over at Automattic has made the Automattic Stats plugin available for download, which makes it possible for self hosted WordPress installations to get the [...]
September 8, 2007 at 3:56 am |
it’s nice!
thanks for your effort
but is it possible to release all request methods of wpStats XMLRPC call?
because I wanna add the stats information to my blog sidebar, such as: total views, today views…etc.
thanks again :]
October 30, 2007 at 9:52 am |
[...] una API key che si può ottenere gratuitamente su WordPress.com. Il plugin, opera di Andy Skelton, permette di spostare il lavoro per gestire i dati di traffico sui server di WordPress, non [...]
November 22, 2007 at 3:12 pm |
[...] Okay, dat weten we dan ook weer, maar daarmee was het mij nog altijd niet duidelijk hoe en waarom die smiley verschijnt of verdwijnt. Verder zoeken dus. Niet veel later vond ik op de blog van één van de auteurs van de plugin uiteindelijk de oplossing: [...]
February 8, 2008 at 5:01 am |
I am using Sitemeter and Google Analytics to get my stats but this plugin is worth looking into. I will download and try.
Thanks.
Ash
March 31, 2008 at 9:11 am |
Ah, now I finally know what that smiley face actually means. I’ve seen that smiley face occur at many blogs here and there and always wondered what the heck it was for. Now, at last I know. What a strange coincidence – that I’ve managed to stumble upon this blog and find out what that smiley face is all about. I’m keen to take a look at a system like this – so, let me see how I can use what you’ve made here to get some decent, proper, results for my blog.
May 6, 2008 at 11:45 pm |
I checked my WP blog and saw the API keys which is responsible for this auto-stats. I saw BLOG STATS at my right nav links with a number of hits. Am I seeing the right one? Can I customize it so it will show some sort of a line graph or something or is it fixed?
May 15, 2008 at 10:28 am |
There seems to be an inconsistency between this post and the one on wordpress.org about how to hide the smiley. Could you please email me the answer and correct one of them?
You say “Applying “display:none” to the image will break your stats.”
But at http://wordpress.org/extend/plugins/stats/faq/ it says “Can I hide the smiley? Sure, just use display:none. ”
Please advise.
Thanks!
November 3, 2008 at 4:54 am |
[...] And, while I also include Google Analytics on my self-hosted blogs for in-depth analysis, the Automattic Stats plugin gives me the same WordPress Stats on my Self-Hosted [...]
January 21, 2009 at 8:49 am |
Anyway we can get a fix that lets us change our timezone? I’ve tried other ways to track stats and this plugin is the best, but I need to keep the others just because of the time issue.
February 4, 2009 at 11:42 am |
[...] for WordPress geeks, wp-stats is set up to cycle through to the next day on UTC time. This is a great, because it helps wp-stats remain fast, [...]
March 31, 2009 at 5:39 am |
Never felt this much relief about such a user firendly stats tool. I’m not a technical person but has found this tool handy. Good work, I hope you never remove the service, otherwise we would donate to the survival of this powerful tool.