WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to show each author website stats, just for the posts that they have published?

I run WP as a directory service (1 post each) and thought it would be handy for authors to be able to gauge how many hit/unique visitors/etc they are getting each day/week/month. I'm familiar with Google Analytics, and have played around with the google analytics dashboard plugin, but there doesn't seem to be any way to achieve what I am after. Any ideas?

share|improve this question

have played around with the google analytics dashboard plugin, but there doesn't seem to be any way to achieve what I am after

There isn't, because to use that plugin in the manner you want, you need a different GA account for each author to track each author, and select that account in the plugin settings. Like you would have to do with any traditional stats plugin that uses JS to record page hits.

You could possibly make a template file for each author that includes the tracking code for each and then record and display hits that way, either by JS or PHP.

share|improve this answer

You can set custom variables in analytics that would contain the author name. If you happen to use Yoast's google analytics plugin, one its options will let you do just that.

That would be the first step. Collect data for a while (a month, maybe) and see if you're getting what you want.

After that, you'll probably have to write something (or have it built) that interacts with the analytics API to fetch the required data and presents it all pretty-like for your users.

I don't have a more specific solution for you, but hopefully this gets you pointed in the right direction. I doubt you'll find a working, out of the box solution for this.

share|improve this answer
Thanks for your answer. I've familiar with custom variables and Yoast's plugin, but haven't found a way to only show each author their stats and not the whole site's stats. – Andrew Sep 25 '11 at 5:51
I think you'll have to write something to do that. – chrisguitarguy Sep 25 '11 at 14:12

SlimStat is a plugin that will do just what you want with almost no config required. I worked perfect for me. Now my authors can login and they see only what i want them to see and all the stats for their posts/content plus all the other great demographic type info. I'm very lucky to have found it. so far it works great for me!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.