Title: Visitor counter code
Last modified: August 21, 2016

---

# Visitor counter code

 *  Resolved [alvaradopau](https://wordpress.org/support/users/alvaradopau/)
 * (@alvaradopau)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/visitor-counter-code/)
 * Hello there, I’m sorry if this has already been asked but I cannot find a thread..
   I’m wondering if it’s possible to display a visitor counter from WordPress.com
   stats inside my self-hosted blog?
 * I do not have widgets enabled, so I need the code to include the number on the
   footer. Is this possible?
 * Thanks
 * [https://wordpress.org/plugins/jetpack/](https://wordpress.org/plugins/jetpack/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Brandon Kraft](https://wordpress.org/support/users/kraftbj/)
 * (@kraftbj)
 * Code Wrangler
 * [11 years, 11 months ago](https://wordpress.org/support/topic/visitor-counter-code/#post-4993475)
 * This isn’t a feature of Jetpack and beyond the level of support we can provide.
 * What you (or a developer) can do is create a simple app at [http://developer.wordpress.com](http://developer.wordpress.com)
   and leverage the Stats endpoint on our API ( [https://developer.wordpress.com/docs/api/1/get/sites/%24site/stats/](https://developer.wordpress.com/docs/api/1/get/sites/%24site/stats/))
 * You wouldn’t want to directly call the API on each page load, so an app that 
   would pull down the numbers and store it as a transient (maybe check once every
   30m?), then output that value on the front end.
 * This is a cool idea. I’ll see if I can put a tutorial together (that said, it
   could be this week or six months from now). I’ll make a note to post an update
   here once/if I get to it.
 * Cheers!
 *  Thread Starter [alvaradopau](https://wordpress.org/support/users/alvaradopau/)
 * (@alvaradopau)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/visitor-counter-code/#post-4993530)
 * Thank you very much for the response, it would be even cooler if one could choose
   to display average weekly/monthly stats, perhaps calling the API once a day or
   so. Unfortunately I’m not a developer but I’ll see if there is something I can
   do.
 * cheers!
 *  Plugin Author [Brandon Kraft](https://wordpress.org/support/users/kraftbj/)
 * (@kraftbj)
 * Code Wrangler
 * [11 years, 11 months ago](https://wordpress.org/support/topic/visitor-counter-code/#post-4993531)
 * That is a cool thought too. It’s on my wish list 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Visitor counter code’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [wordpress.com stats](https://wordpress.org/support/topic-tag/wordpress-com-stats/)

 * 3 replies
 * 2 participants
 * Last reply from: [Brandon Kraft](https://wordpress.org/support/users/kraftbj/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/visitor-counter-code/#post-4993531)
 * Status: resolved