How to Retrieve and Display WordPress.com/JetPack Site Stats
read more

How to Retrieve and Display WordPress.com/JetPack Site Stats


JetPack is a very useful plugin for, among many other things, monitoring your website’s traffic statistics via WordPress.com. In this tutorial, I will show you how to programatically retrieve these stats for your entire website and specific posts. This will let you show off your site’s traffic to your readers (or do whatever you want the data)!

In case you’re not familiar with JetPack, it’s a plugin that includes a variety of different features for your WordPress website. Among these features are things like the JSON API, comment form, markdown, mobile theme, and a bunch more.

Most of JetPacks features, I don’t use. However, I love the site stats component. This allows me to connect my blog to my WordPress.com account and preview statistics about my traffic right from within the WordPress dashboard. While I use Google Analytics as well, the JetPack site stats gives me information that I want and presents it in a way that I prefer. For me, Google Analytics throws more at me than I typically care about.