A quick way to add a ‘sparkline’ to your blog.

See that little graph thing at the bottom of this blog? It’s called a sparkline and shows the number of visitor over the last month. Here’s how to add one to your own blog, courtesy of Google Analytics and a WordPress plugin!

The only slightly tricky bit is replacing:

http://www.google.com/xxxxxxxxxx

with

http://chart.apis.google.com/xxxxxxxxxx

It shows you how to do it here, but it over-complicates things and is slightly out-of-date.

If you want to brush up on your HTML, you could do worse than this guide! :-D

Possibly related posts:



Comments policy
  • http://twitter.com/kevinmulryne Kevin Mulryne

    Hi – a nice idea and really well described/explained – good stuff. However, I’m not sure I’m confident enough to let people see how few hits I get ;-)

    • http://dougbelshaw.com Doug Belshaw

      Ah… but therein lies the beauty! It doesn’t have any frame of reference so
      it would look similar if displaying tens instead of thousands of visits. ;-)