Support » Plugin: Jetpack by » Visitor counter code

  • Resolved alvaradopau


    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 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?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Brandon Kraft


    Happiness Engineer

    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 and leverage the Stats endpoint on our API ( )

    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.


    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.


    Plugin Contributor Brandon Kraft


    Happiness Engineer

    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.