Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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.