Displaying WordPress Posts' JetPack Statistics Using stats_get_csv()


Bar chart showing how many times a blog has been red over a year.

Here's a quick way to display how many times a WordPress post has been read. For this, you will need: A blog running WordPress. The JetPack plugin installed. The ability to edit your themes. Here's the snippet of code I'm using to add "This post has been read 12,345 times". I'll explain how it works in a bit more detail. if( function_exists( 'stats_get_csv' ) ) { $stats_query = "page_stats_for_" . get_the_ID(); if ( false === ( $special_query_results =…

Continue reading →

One Million


It's only a silly number - and not a very accurate one - but it makes me happy. Thank you for reading - it has truly been my pleasure to write for you. …

Continue reading →

Surrey Police and the Case of The Misleading Pie Charts


Surrey County Council have sent every household in the county a booklet explaining how our council tax is being spent. Within it is a highly political comment from Kevin Hurley, the newly elected Police and Crime Commissioner. He presents a pie chart showing how the police force spend its money. Take a look at it and ask yourself this question: what percentage is spent on "Employees". Please use this poll to record your guess - answers at the end of this blog. [polldaddy poll=6969136] …

Continue reading →

What I've Learned From A Crazy Month of Blogging


Well. That was an intense NaBloPoMo! I published a blog post every day in November - as I have for the last few years - but this was unlike anything that went before. I had over 50,000 viewers in a single day due to one of my posts, got hit by reddit and HackerNews, and even got asked to do some paid blogging! I started this month hoping to average 1,000 page views per day. This was so I could hit the (pretty arbitrary) milestone of half a million page views. This is what my November…

Continue reading →

What's The Front Page of HackerNews Worth?


One of the things that jollies me along during NaBloPoMo (where I have to write a blog post every single day in November) is seeing that people are reading my blog. I like watching the visitor counter tick gently upwards. I also love to see people discussing, arguing, and commenting on the posts I write. When I started this month, I looked at the blog's statistics and decided I wanted to get 30,000 views in the month of November. I normally average 600 views per day. So, how to get that up…

Continue reading →

NaBloPoMo - Stats


As we enter another NaBloPoMo - where I try to write a blog post each day in Novemeber - I thought I'd take a look back at how this blog has developed. On Friday, October 30, 2009, I switched on WordPress statistics so I could get a better idea of what was popular on my site. My average traffic back then was 80 visits per day. Not bad for a backwater blog. Since then, my writing has been getting better (I hope), my content has become more interesting, and I've had several stories which have…

Continue reading →

Facebook's Mobile Adverts - Real Stats


Facebook has been getting a lot of criticism for its lack of mobile revenue. A fact it tried to hide from its IPO. Much ink has been spilled, but is it really necessary for Facebook to worry? Here's a quick case study. Facebook has, in its infinite wisdom, decided that I would be interested in adverts for cancer. Or, perhaps, AXA have decided that 30 something males are a prime market. The creator of the advert was Equator's Fiona Dow who, judging from her bitly profile just loves…

Continue reading →

Train Tickets With QR Codes


No, I'm not talking about Masabi's innovative technology, but of this rather odd bit of advertising found on the back of a train ticket. There's no specific call to action - but there's not much space to play with. Let's give it a scan... sigh A non-mobile site. With an Adobe Flash plugin in the top right which won't work on any iPhones. Why on Earth do marketing companies insist on pointing phones to non-mobile sites. It really bemuses me. Stations rarely have good signal (too many people …

Continue reading →

TfL QR Followup - 5,000 scans per month!


At the start of 2012, I revealed how many scans TfL's QR campaign was getting. A lot of comments on Twitter & Google+ dismissed these results as a success. A typical response was: 70 scans a day? In a city of millions? Rubbish! This fails to address something that advertisers are conspicuously loathe to reveal - the true "response rate" of any advert is hard to calculate. How many phone calls, visits to a website, or SMS interactions are directly attributable to a regular poster? No one …

Continue reading →

Real QR Statistics from TfL


Last year, I suggested that TfL should use QR codes to point to their excellent mobile countdown service. Looks like someone was listening! I spotted this poster at a tube station. Nestled in the corner is a QR code pointing at the mobile bus countdown service! This is a close-to-perfect use of QR. Points to a mobile site. Easy to scan code. Good call to action. As I suggested in my original post, TfL could customise the code, or print a separate one for each bus stop. …

Continue reading →

TSA's QR Statistics


The TSA have come under fire for many things. Most recently, Fred Trotter has called them out for using a "dummy" QR code which leads to a page the TSA don't control. An astonishingly lax approach to QR use. Last year, I noticed this QR code as I passed through San Francisco Airport. The code goes to a TSA site (albeit non-mobile), which is odd, as the TSA do have a capable mobile site. What I find most curious is that the TSA are using the Goo.gl URL shortener. This is a bad idea for two…

Continue reading →

NaBloPoMo


NA! BLO! PO! MO! It sounds like a Judoon war cry - "Na Blo Po Mo!" But rather than legions from the Shadow Proclamation, it is an amassed horde of bloggers poised to do battle with the enemy. Gentlemen - the enemy is us. I noticed that I had averaged a blog post every few days in October - I wondered if I could beat that and still retain some vestige of quality. During BarCampLondon I heard Abizer talk about NaNoWriMo - while I didn't think I could manage a novel, I was fairly sure I could…

Continue reading →